﻿:root {
    --section-primary: #6366f1;
    --section-secondary: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-hover: 0 15px 45px 0 rgba(31, 38, 135, 0.25);
}

[data-theme="dark"] {
    --glass-bg: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(148, 163, 184, 0.18);
    --shadow-light: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-hover: 0 15px 45px 0 rgba(0, 0, 0, 0.25);
}

/* Section Hero */
.section-hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.shape-1, .shape-2, .shape-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: white;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: white;
    top: 60%;
    right: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.section-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .glass-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

.glass-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: white;
    font-weight: bold;
    opacity: 0.7;
}

/* Modern Search */
.modern-search-container {
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

.modern-search-input {
    width: 100%;
    padding: 15px 55px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .modern-search-input:focus {
        outline: none;
        border-color: var(--section-primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
        background: white;
    }

    .modern-search-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

.modern-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

    .modern-search-btn:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }

/* Modern Article Cards */
.modern-article-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

    .modern-article-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        border-color: rgba(99, 102, 241, 0.3);
    }

.article-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-featured {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.badge-breaking {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    font-weight: 700;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-glow {
    0% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6);
    }

    100% {
        opacity: 1;
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
}

.article-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-article-card:hover .article-image {
    transform: scale(1.1) rotate(1deg);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.read-time-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-content {
    padding: 25px;
}

.article-meta {
    margin-bottom: 15px;
}

.author-avatar {
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.modern-article-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-name {
    color: #1a1a1a;
    font-weight: 600;
}

.article-date {
    color: #64748b;
    font-size: 0.8rem;
}

.article-title {
    color: #1e293b;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.modern-article-card:hover .article-title {
    color: var(--section-primary);
}

.article-summary {
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-stats {
    margin-bottom: 20px;
}

.stat-item {
    color: #94a3b8;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .stat-item:hover {
        color: var(--section-primary);
        transform: translateY(-1px);
    }

.relevance-badge {
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
}

.article-tags {
    margin-bottom: 20px;
}

.modern-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--section-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .modern-tag:hover {
        background: var(--section-primary);
        color: white;
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

.modern-btn {
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

    .modern-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        color: white;
    }

.modern-btn-outline {
    background: transparent;
    border: 2px solid var(--section-primary);
    border-radius: 50px;
    padding: 12px 26px;
    color: var(--section-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

    .modern-btn-outline:hover {
        background: var(--section-primary);
        color: white;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

/* Modern Pagination */
.modern-pagination .page-link {
    border: none;
    margin: 0 4px;
    border-radius: 16px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-pagination .page-item.active .page-link {
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.modern-pagination .page-link:hover:not(.active) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--section-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.pagination-info {
    color: #64748b;
    font-weight: 500;
    margin-top: 15px;
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, var(--section-primary), var(--section-secondary));
    position: relative;
    overflow: hidden;
}

    .newsletter-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        animation: float 20s ease-in-out infinite;
    }

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-input {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 18px 25px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

    .newsletter-input:focus {
        background: white;
        box-shadow: none;
        border-color: transparent;
    }

.newsletter-btn {
    border-radius: 0 50px 50px 0;
    padding: 18px 35px;
    font-weight: 700;
    border: none;
    background: white;
    color: var(--section-primary);
    transition: all 0.3s ease;
}

    .newsletter-btn:hover {
        background: #f8fafc;
        transform: scale(1.02);
    }

/* Empty State */
.empty-state-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

    .empty-state-icon i {
        font-size: 3.5rem;
    }

/* Button Group */
.modern-btn-group .btn-check:checked + .btn {
    background: linear-gradient(45deg, var(--section-primary), var(--section-secondary));
    border-color: var(--section-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.modern-btn-group .btn {
    border-radius: 20px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
    margin: 0 2px;
}

    .modern-btn-group .btn:hover:not(:checked) {
        background: rgba(99, 102, 241, 0.1);
        color: var(--section-primary);
        transform: translateY(-1px);
    }

.btn-ghost {
    background: transparent;
    border: none;
    color: #64748b;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px;
}

    .btn-ghost:hover {
        background: rgba(99, 102, 241, 0.1);
        color: var(--section-primary);
        transform: scale(1.1);
    }

.glass-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

    .glass-dropdown .dropdown-item {
        border-radius: 8px;
        margin: 2px 8px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .glass-dropdown .dropdown-item:hover {
            background: rgba(99, 102, 241, 0.1);
            color: var(--section-primary);
            transform: translateX(4px);
        }

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modern-search-container {
        max-width: 350px;
    }

    .article-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .section-hero {
        padding: 3rem 0 2rem;
        min-height: 300px;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .modern-search-container {
        max-width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .article-image-container {
        height: 180px;
    }

    .modern-btn-group {
        flex-wrap: wrap;
        gap: 8px;
    }

        .modern-btn-group .btn {
            font-size: 0.8rem;
            padding: 6px 12px;
        }

    .glass-card {
        border-radius: 16px;
        margin: 0 10px;
    }

    .modern-article-card {
        border-radius: 20px;
        margin: 0 5px;
    }

    .article-content {
        padding: 20px;
    }

    .shape-1, .shape-2, .shape-3 {
        display: none;
    }

    .newsletter-input, .newsletter-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
    }

        .empty-state-icon i {
            font-size: 2.5rem;
        }
}

@media (max-width: 480px) {
    .article-badges {
        top: 10px;
        left: 10px;
    }

    .badge-featured, .badge-breaking {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .modern-pagination .page-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .newsletter-form .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .modern-article-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }

    .article-title {
        color: #f1f5f9;
    }

    .author-name {
        color: #e2e8f0;
    }

    .glass-dropdown {
        background: rgba(15, 23, 42, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }

    .modern-search-input {
        background: rgba(30, 41, 59, 0.95);
        color: #e2e8f0;
        border-color: rgba(71, 85, 105, 0.3);
    }

        .modern-search-input::placeholder {
            color: rgba(148, 163, 184, 0.7);
        }
}

/* Print styles */
@media print {
    .section-hero,
    .newsletter-cta,
    .modern-pagination,
    .article-badges,
    .btn-ghost,
    .dropdown {
        display: none !important;
    }

    .modern-article-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    .article-image {
        max-height: 200px;
    }
}
