/* Vinyl Record Colors */
:root {
    --red: #c65241;
    --gold: #dcc25d;
    --teal: #75a8ae;
    --tan: #b3a399;
    --primary-blue: #1a2840;
    --text-purple: #4a3c5e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background: white;
    color: var(--primary-blue);
    line-height: 1.8;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
}

/* Social Media Icons */
.social-icons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.social-icons a {
    color: var(--tan);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: var(--teal);
}

@media (max-width: 768px) {
    .social-icons {
        position: static;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

/* Logo Strip */
.logo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.logo-strip img {
    width: 100%;
    height: auto;
}

/* Site Title */
.site-title {
    text-align: center;
    margin-bottom: 3rem;
}

.site-title h1 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.site-title h1 a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s;
}

.site-title h1 a:hover {
    color: var(--gold);
}

.tagline {
    font-size: 1.2rem;
    color: var(--tan);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.nav-link {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 1rem;
    transition: color 0.3s;
    display: inline-block;
}

.nav-link:hover {
    color: var(--teal);
}

.nav-link.disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.subscribe-link {
    color: var(--gold);
    font-weight: 600;
}

.subscribe-link:hover {
    color: var(--teal);
}

/* Page Heading */
.page-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.page-heading h1 {
    font-size: 2.5rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.page-heading p {
    font-size: 1.1rem;
    color: var(--tan);
    font-style: italic;
}

/* Category Cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    text-decoration: none;
    display: block;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.category-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-2px);
}

.category-card h3 {
    color: var(--red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-purple);
    line-height: 1.8;
}

/* Content Section */
.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 2rem;
    text-align: center;
}

/* Search Bar */
.search-bar {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--teal);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary-blue);
}

/* Primary Category Buttons - Big and Colorful */
.primary-category-buttons .filter-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
}

#btn-blog {
    border: 2px solid var(--red);
    color: var(--red);
}

#btn-article {
    border: 2px solid var(--teal);
    color: var(--teal);
}

#btn-resource {
    border: 2px solid var(--gold);
    color: var(--gold);
}

#btn-all {
    border: 2px solid var(--tan);
    color: var(--tan);
}

.filter-btn:hover,
.filter-btn.active {
    transform: translateY(-1px);
}

/* Specific active states for each category */
#btn-all.active {
    background: var(--tan);
    color: white;
    border-color: var(--tan);
}

#btn-blog:hover,
#btn-blog.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

#btn-article:hover,
#btn-article.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

#btn-resource:hover,
#btn-resource.active {
    background: var(--gold);
    color: var(--primary-blue);
    border-color: var(--gold);
}

/* Legacy filter button styles for data-filter approach */
.filter-btn[data-filter="all"].active {
    background: var(--tan);
    color: white;
    border-color: var(--tan);
}

.filter-btn[data-filter="blog"]:hover,
.filter-btn[data-filter="blog"].active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

.filter-btn[data-filter="article"]:hover,
.filter-btn[data-filter="article"].active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.filter-btn[data-filter="resource"]:hover,
.filter-btn[data-filter="resource"].active {
    background: var(--gold);
    color: var(--primary-blue);
    border-color: var(--gold);
}

/* Post List */
.post-list {
    margin: 2rem 0;
}

.post-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.post-item:hover {
    border-bottom-color: var(--gold);
}

.post-category {
    display: inline-block;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.post-item h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.post-excerpt {
    color: var(--text-purple);
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

.post-meta {
    color: var(--tan);
    font-size: 0.9rem;
    font-style: italic;
}

/* Subscribe Section */
.subscribe-section {
    background: #f5f5f5;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 4rem 0;
}

.subscribe-section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.subscribe-section p {
    color: var(--text-purple);
    margin-bottom: 2rem;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
}

.email-input:focus {
    outline: none;
    border-color: var(--teal);
}

.submit-btn {
    padding: 0.8rem 2rem;
    background: var(--gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.submit-btn:hover {
    background: var(--teal);
    color: white;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-text {
    color: var(--tan);
    font-size: 0.9rem;
}

/* Subscribe Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--tan);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
}

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

.modal-content h2 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    color: var(--text-purple);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-strip {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    .main-nav {
        line-height: 2;
    }
    
    .nav-link {
        margin: 0 0.8rem;
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 2rem 1.5rem;
    }
}