/* ========================================
   BLOG PAGE STYLES
   ======================================== */

/* Blog Hero */
.blog-hero {
    padding: 4rem 1rem 2rem;
    text-align: center;
}

.blog-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    color: #fff;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.blog-hero-text {
    font-size: 0.75rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    padding: 1rem;
    background: #1a202c;
    border-top: 4px solid #4a5568;
    border-bottom: 4px solid #4a5568;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 0.75rem 1rem;
    background: #2d3748;
    color: #cbd5e0;
    border: 3px solid #4a5568;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #1a202c;
}

.category-tab:hover {
    background: #3d4758;
    border-color: #63b3ed;
}

.category-tab.active {
    background: #ffd700;
    color: #1a202c;
    border-color: #ffd700;
    box-shadow: 0 4px 0 #b7950b;
}

/* Featured Blog */
.featured-blog {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.featured-blog-card {
    background: #2d3748;
    border: 4px solid #ffd700;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #ffd700;
    color: #1a202c;
    font-size: 0.6rem;
    padding: 0.5rem 1rem;
    border: 3px solid #1a202c;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.featured-content {
    order: 2;
}

.featured-icon {
    font-size: 5rem;
    text-align: center;
    order: 1;
}

.featured-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-category {
    background: #9f7aea;
    color: #1a202c;
    font-size: 0.55rem;
    padding: 0.375rem 0.75rem;
}

.featured-date {
    font-size: 0.55rem;
    color: #a0aec0;
}

.featured-title {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured-excerpt {
    font-size: 0.65rem;
    color: #cbd5e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.featured-btn {
    font-family: 'Press Start 2P', cursive;
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: #4299e1;
    color: #1a202c;
    border: 3px solid #3182ce;
    text-decoration: none;
    font-size: 0.65rem;
    box-shadow: 0 4px 0 #2c5282;
    transition: all 0.1s;
}

.featured-btn:hover {
    background: #63b3ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2c5282;
}

.featured-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2c5282;
}

/* Blog Grid Section */
.blog-grid-section {
    padding: 3rem 1rem;
    background: #1a202c;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: #2d3748;
    border: 4px solid #4a5568;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    border-color: #63b3ed;
}

.blog-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-card-content {
    text-align: left;
}

.blog-card-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card-category {
    background: #9f7aea;
    color: #1a202c;
    font-size: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.blog-card-date {
    font-size: 0.5rem;
    color: #a0aec0;
}

.blog-card-title {
    font-size: 0.85rem;
    color: #ffd700;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.blog-card-excerpt {
    font-size: 0.6rem;
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-card-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.55rem;
    color: #63b3ed;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s;
}

.blog-card-link:hover {
    color: #ffd700;
}

/* Newsletter Section */
.newsletter-section {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-top: 4px solid #4a5568;
    border-bottom: 4px solid #4a5568;
}

.newsletter-box {
    background: #2d3748;
    border: 4px solid #ffd700;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 1.25rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.newsletter-text {
    font-size: 0.65rem;
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    padding: 1rem;
    background: #1a202c;
    border: 3px solid #4a5568;
    color: #f7fafc;
    outline: none;
}

.newsletter-input:focus {
    border-color: #63b3ed;
}

.newsletter-input::placeholder {
    color: #718096;
}

.newsletter-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 1rem 2rem;
    background: #48bb78;
    color: #1a202c;
    border: 3px solid #38a169;
    cursor: pointer;
    box-shadow: 0 4px 0 #2f855a;
    transition: all 0.1s;
}

.newsletter-btn:hover {
    background: #68d391;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #2f855a;
}

.newsletter-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2f855a;
}

/* ========================================
   TABLET STYLES (768px and up)
   ======================================== */
@media (min-width: 768px) {
    .blog-hero {
        padding: 5rem 2rem 3rem;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .featured-blog-card {
        grid-template-columns: 2fr 1fr;
        padding: 3rem;
    }

    .featured-content {
        order: 1;
    }

    .featured-icon {
        order: 2;
        font-size: 6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-input {
        flex: 1;
    }
}

/* ========================================
   DESKTOP STYLES (1024px and up)
   ======================================== */
@media (min-width: 1024px) {
    .blog-hero-title {
        font-size: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .category-tab {
        font-size: 0.7rem;
        padding: 1rem 1.5rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .featured-blog-card {
        transition: none;
    }
}