/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
}

.subtitle {
    font-weight: 600;
    font-size: 1.2rem;
    font-family: "Play", sans-serif;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-family: "Play", sans-serif;
    font-weight: 700;
}

.create-post-button {
    background-color: #86bbd8;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: "Play", sans-serif;
    font-weight: 700;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
}

.site-title {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 5rem;
    line-height: 1.1;
    margin: 2rem 0;
    letter-spacing: -2px;
    height: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #274c77;
}

.typing-container {
    position: relative;
    display: inline-block;
}

.typing-text {
    white-space: pre-line;
    display: inline;
}

.cursor {
    display: inline-block;
    margin-left: -2px;
    animation: blink 0.7s infinite;
    font-weight: 100;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.category-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Play", sans-serif;
    font-weight: 400;
}

.category-tag:hover {
    background-color: #86bbd8;
    color: #fff;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-post {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.date {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    color: #666;
}

.tag {
    padding: 0.2rem 0.8rem;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    padding: 1rem;
}

.blog-post h2 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.author {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post p {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    width: fit-content;
    padding: 0.4rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Play", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #39393a;
    letter-spacing: 1px;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #86bbd8;
    color: #fff;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 4rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-family: "Play", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
}

.footer-section a {
    font-family: "Play", sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: #666;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-title {
        font-size: 3rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: "Lexend", sans-serif;
    font-weight: 600;
    color: #274c77;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: "Play", sans-serif;
    font-weight: 400;
    color: #39393a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    color: #39393a;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-post-button {
    background-color: #86bbd8;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Play", sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.submit-post-button:hover {
    background-color: #274c77;
}

/* Active category tag */
.category-tag.active {
    background-color: #86bbd8;
    color: #fff;
}

/* Post content expansion */
.post-content {
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    color: #39393a;
    line-height: 1.6;
    margin: 1rem 0;
}

.post-modal-content {
    padding: 1rem 0;
}

.post-modal-content .post-meta {
    margin-bottom: 1.5rem;
}

.post-modal-content img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.post-modal-content .author {
    margin-bottom: 2rem;
}

.post-modal-content .content {
    font-family: "Lexend", sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: #39393a;
    white-space: pre-wrap;
} 