/* Styles for blog.html only. Shared styles are in css/main.css. */

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-weight: 400;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    letter-spacing: 1px;
}

/* Email Subscribe Section (Buttondown) */
.email-subscribe {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(164, 32, 32, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.2);
}

.email-subscribe-info {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.email-subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.email-subscribe-form input[type="email"] {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.3);
    color: var(--off-white);
    font-family: inherit;
    font-size: 0.95rem;
    min-width: 260px;
    transition: all 0.3s ease;
}

.email-subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
}

.email-subscribe-form button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-red);
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-subscribe-form button:hover {
    background: #8a1b1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(164, 32, 32, 0.3);
}

/* RSS Subscribe Section */
.rss-subscribe {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(164, 32, 32, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.2);
}

.rss-info {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rss-link:hover {
    background: #8a1b1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(164, 32, 32, 0.3);
}

.rss-link i {
    font-size: 1rem;
}

/* Blog Controls */
.blog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.3);
    color: var(--off-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
}

.category-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(164, 32, 32, 0.1);
    border: 1px solid rgba(164, 32, 32, 0.3);
    color: var(--off-white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: lowercase;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(164, 32, 32, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.blog-card:hover {
    border-color: rgba(164, 32, 32, 0.5);
    transform: translateY(-4px);
}

/* Post Modal */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 10000;
    padding: 2rem;
    overflow-y: auto;
}

.post-modal-content {
    background: var(--deep-black);
    border: 1px solid rgba(164, 32, 32, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin-top: 2rem;
}

.post-modal-header {
    position: sticky;
    top: 0;
    background: var(--deep-black);
    padding: 1rem;
    border-bottom: 1px solid rgba(164, 32, 32, 0.2);
    text-align: right;
    z-index: 10001;
}

.close-modal {
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-red);
}

.post-modal-body {
    padding: 2rem;
}

.post-category {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--off-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(164, 32, 32, 0.2);
}

/* Social Sharing in Modal */
.post-social-share {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(164, 32, 32, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.2);
    text-align: center;
}

.post-social-share h4 {
    color: var(--primary-red);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.3);
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-share-btn:hover {
    background: rgba(164, 32, 32, 0.2);
    border-color: var(--primary-red);
    transform: translateY(-1px);
}

.post-share-btn i {
    font-size: 1rem;
}

.post-share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.post-share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.post-share-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.post-share-btn.email:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.post-share-btn.copy:hover {
    background: #6c757d;
    border-color: #6c757d;
}

.share-feedback {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--primary-red);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 10002;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.share-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

.post-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
}

.post-content h1, .post-content h2, .post-content h3 {
    color: var(--primary-red);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.2rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content a {
    color: var(--primary-red);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content strong {
    color: var(--off-white);
}

.post-content em {
    font-style: italic;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: var(--warm-gray);
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--off-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 400;
}

.read-more:hover {
    text-decoration: underline;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(164, 32, 32, 0.05);
    border: 1px solid rgba(164, 32, 32, 0.3);
}

.featured-image {
    background: var(--warm-gray);
    background-size: cover;
    background-position: center;
    min-height: 300px;
    position: relative;
}

.featured-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-red);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--off-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-meta {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--light-gray);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}
@media (max-width: 768px) {

    .container {
        padding: 2rem 1rem;
    }

    .email-subscribe,
    .rss-subscribe {
        margin: 1rem 0;
        padding: 1rem;
    }

    .email-subscribe-form input[type="email"] {
        min-width: 0;
        width: 100%;
    }

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
        margin-bottom: 1rem;
    }

    .category-filters {
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .featured-title {
        font-size: 1.6rem;
    }

    /* Modal Mobile Styles */
    .post-modal {
        padding: 1rem;
    }

    .post-modal-content {
        margin-top: 1rem;
        max-height: 95vh;
    }

    .post-modal-body {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-share-buttons {
        gap: 0.5rem;
    }

    .post-share-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}
