/* Blog Styles */
.blog-hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover;
    opacity: 0.1;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 0.5rem;
}

.search-box i {
    color: var(--dark-muted);
    margin: 0 1rem;
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--dark-text);
    font-size: 1.1rem;
    padding: 1rem 0;
}

.search-box input::placeholder {
    color: var(--dark-muted);
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
}

.featured-post {
    padding: 5rem 0;
}

.featured-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.featured-content {
    padding: 3rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-category {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.post-date {
    color: var(--dark-muted);
    display: flex;
    align-items: center;
}

.post-date i {
    width: 16px;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-excerpt {
    color: var(--dark-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(67, 97, 238, 0.2);
}

.post-author h6 {
    margin: 0;
    font-weight: 600;
}

.post-author small {
    font-size: 0.85rem;
}

.categories-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-card h5 {
    color: var(--dark-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--dark-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-count {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-posts {
    padding: 5rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.post-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.read-time {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-content {
    padding: 1.5rem;
}

.post-content .post-meta {
    margin-bottom: 1rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h3 a {
    color: var(--dark-text);
    text-decoration: none;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-author span {
    font-size: 0.9rem;
    font-weight: 600;
}

.post-stats {
    display: flex;
    gap: 1rem;
    color: var(--dark-muted);
    font-size: 0.85rem;
}

.post-stats i {
    width: 14px;
}

.popular-posts {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.popular-grid {
    max-width: 800px;
    margin: 0 auto;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.popular-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.popular-rank {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
}

.popular-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.popular-content h4 a {
    color: var(--dark-text);
    text-decoration: none;
}

.popular-content h4 a:hover {
    color: var(--primary-color);
}

.popular-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--dark-muted);
    font-size: 0.9rem;
}

.popular-meta span {
    display: flex;
    align-items: center;
}

.popular-meta i {
    width: 16px;
    margin-right: 0.25rem;
}

.newsletter-section {
    padding: 5rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(114, 9, 183, 0.1));
    border-radius: 30px;
    padding: 4rem;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.newsletter-content .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.newsletter-stats {
    display: flex;
    gap: 3rem;
}

.newsletter-stats .stat {
    text-align: center;
}

.newsletter-stats .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.newsletter-stats .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-form .form-group {
    margin-bottom: 1.5rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.newsletter-form .form-check-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.newsletter-form .form-check-label a {
    color: white;
    text-decoration: underline;
}

.newsletter-form .form-check-label a:hover {
    color: var(--primary-color);
}

.newsletter-form .btn {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
}

.authors-section {
    padding: 5rem 0;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.author-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.author-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.author-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(67, 97, 238, 0.2);
}

.author-content h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: var(--dark-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.author-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Light Mode Styles */
.light-mode .blog-hero {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .search-box {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .search-box input {
    color: var(--light-text);
}

.light-mode .search-box input::placeholder {
    color: var(--light-muted);
}

.light-mode .featured-card,
.light-mode .category-card,
.light-mode .post-card,
.light-mode .popular-card,
.light-mode .author-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .featured-card:hover,
.light-mode .category-card:hover,
.light-mode .post-card:hover,
.light-mode .popular-card:hover,
.light-mode .author-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1);
}

.light-mode .post-title {
    color: var(--light-text);
}

.light-mode .post-excerpt {
    color: var(--light-muted);
}

.light-mode .post-content h3 a {
    color: var(--light-text);
}

.light-mode .post-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-mode .popular-content h4 a {
    color: var(--light-text);
}

.light-mode .popular-meta {
    color: var(--light-muted);
}

.light-mode .newsletter-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
}

.light-mode .newsletter-content h2 {
    color: var(--light-text);
}

.light-mode .newsletter-content .lead {
    color: var(--light-text);
}

.light-mode .newsletter-stats .stat-value {
    color: var(--light-text);
}

.light-mode .newsletter-stats .stat-label {
    color: var(--light-muted);
}

.light-mode .newsletter-form .form-control {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text);
}

.light-mode .newsletter-form .form-control::placeholder {
    color: var(--light-muted);
}

.light-mode .newsletter-form .form-check-label {
    color: var(--light-text);
}

.light-mode .author-bio {
    color: var(--light-muted);
}

.light-mode .author-stats {
    color: var(--light-muted);
}

.light-mode .author-social a {
    background: rgba(0, 0, 0, 0.05);
    color: var(--light-text);
}

/* Responsive */
@media (max-width: 992px) {
    .featured-content {
        padding: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .newsletter-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .popular-rank {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .newsletter-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    .search-box > div {
        display: flex;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .search-box button {
        width: 100%;
        padding: 1rem;
    }
    
    .featured-badge {
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
}
