/* ============================================
   NOVA ARTICLES PAGE STYLES
   Premium Blog/Articles Design
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */
.articles-hero-section {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0a0a1a 0%, #151535 40%, #1a1a40 70%, #0d0d25 100%);
    overflow: hidden;
}

.articles-hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0f0f23, transparent);
    pointer-events: none;
    z-index: 1;
}

.articles-hero-section .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.articles-hero-section .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: articlesFloatOrb 12s ease-in-out infinite;
}

.articles-hero-section .orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    top: -100px;
    right: 15%;
}

.articles-hero-section .orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: -50px;
    left: 10%;
    animation-delay: 4s;
}

@keyframes articlesFloatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.articles-hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.articles-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 50px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    backdrop-filter: blur(15px);
}

.articles-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.articles-content-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
}

.articles-content-section .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.articles-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

/* ============================================
   ARTICLES GRID
   ============================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.article-card {
    position: relative;
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.article-card-image {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    max-height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.article-card-category:hover {
    transform: scale(1.05);
    color: #fff;
}

.article-card-content {
    padding: 24px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: #f59e0b;
}

.article-card-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0;
    min-height: 60px;
}

/* If empty, hide the excerpt */
.article-card-excerpt:empty {
    display: none;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-card-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-card-link:hover {
    color: #fff;
    gap: 10px;
}

.article-card-link svg {
    width: 18px;
    height: 18px;
}

/* No Content */
.articles-no-content {
    text-align: center;
    padding: 60px 40px;
    background: rgba(25, 25, 55, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    grid-column: 1 / -1;
}

.articles-no-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    grid-column: 1 / -1;
}

/* ============================================
   SIDEBAR
   ============================================ */
.articles-sidebar {
    position: sticky;
    top: 100px;
}

.articles-sidebar-card {
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
}

.articles-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.articles-sidebar-title svg {
    width: 20px;
    height: 20px;
    stroke: #f59e0b;
}

.articles-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.articles-sidebar-link {
    display: block;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.articles-sidebar-link:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fff;
    transform: translateX(4px);
}

/* ============================================
   ARTICLE DETAIL PAGE
   ============================================ */
.article-detail-hero {
    position: relative;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #0a0a1a 0%, #151535 40%, #1a1a40 70%, #0d0d25 100%);
    overflow: hidden;
}

.article-detail-hero .hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.article-detail-hero .floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: articlesFloatOrb 12s ease-in-out infinite;
}

.article-detail-hero .orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    top: -100px;
    right: 15%;
}

.article-detail-hero .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.article-detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-detail-breadcrumb a,
.article-detail-breadcrumb span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.article-detail-breadcrumb a:hover {
    color: #f59e0b;
}

.article-detail-title {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Featured Image */
.article-detail-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Article Content */
.article-detail-content {
    background: rgba(25, 25, 55, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4 {
    color: #fff;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-detail-content h1:first-child,
.article-detail-content h2:first-child,
.article-detail-content h3:first-child {
    margin-top: 0;
}

.article-detail-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 20px;
}

.article-detail-content ul,
.article-detail-content ol {
    color: rgba(255, 255, 255, 0.85);
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-detail-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-detail-content a {
    color: #f59e0b;
    text-decoration: none;
}

.article-detail-content a:hover {
    text-decoration: underline;
}

.article-detail-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 24px 0;
}

.article-detail-content blockquote {
    margin: 24px 0;
    padding: 24px 28px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    border-radius: 0 16px 16px 0;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 18px;
}

/* Comments Section */
.article-comments-section {
    background: rgba(25, 25, 55, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1100px) {
    .articles-content-grid {
        grid-template-columns: 1fr;
    }

    .articles-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .articles-sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .articles-hero-section {
        padding: 80px 0 50px;
    }

    .articles-hero-title {
        font-size: 36px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-detail-title {
        font-size: 30px;
    }

    .article-detail-content {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .articles-hero-section {
        padding: 60px 0 40px;
    }

    .articles-hero-title {
        font-size: 28px;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-detail-title {
        font-size: 26px;
    }
}