/**
 * Elegant Template Styles for Category, Article, and Archive Pages
 * Modern, clean, professional design
 */

/* ========================================
   ELEGANT CATEGORY PAGE
======================================== */

.elegant-category-hero {
    background: linear-gradient(135deg, var(--cat-color, #667eea) 0%, var(--cat-color-dark, #5568d3) 100%);
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.elegant-category-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    animation: float-elegant 10s ease-in-out infinite;
}

.elegant-category-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    animation: float-elegant 12s ease-in-out infinite reverse;
}

@keyframes float-elegant {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.elegant-cat-icon {
    font-size: 5rem;
    color: white;
    margin-bottom: 25px;
    opacity: 0;
    animation: fade-in-down 1s ease forwards;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.elegant-cat-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 2;
}

.elegant-cat-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.elegant-cat-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.elegant-stat {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    padding: 18px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.elegant-stat:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-3px);
}

/* ========================================
   ELEGANT ARTICLE GRID
======================================== */

.elegant-articles-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.elegant-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.elegant-section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.elegant-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
}

.elegant-section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-top: 25px;
}

.elegant-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

.elegant-article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.elegant-article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.elegant-article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.elegant-article-card:hover::before {
    opacity: 0.03;
}

.elegant-article-thumb-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.elegant-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.elegant-article-card:hover .elegant-article-thumb {
    transform: scale(1.15) rotate(2deg);
}

.elegant-article-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.elegant-article-content-wrap {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.elegant-article-title-card {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.elegant-article-card:hover .elegant-article-title-card {
    color: #667eea;
}

.elegant-article-excerpt-card {
    font-size: 1rem;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.elegant-article-meta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f7fafc;
}

.elegant-article-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
}

.elegant-article-author i {
    color: #667eea;
    font-size: 1.1rem;
}

.elegant-article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.85rem;
}

.elegant-article-date i {
    color: #cbd5e0;
}

/* ========================================
   ELEGANT SINGLE ARTICLE PAGE
======================================== */

.elegant-single-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.elegant-single-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 3px solid #f7fafc;
}

.elegant-single-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elegant-single-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #1a202c;
    line-height: 1.3;
    margin-bottom: 30px;
}

.elegant-single-meta {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: #718096;
    font-size: 1rem;
}

.elegant-single-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.elegant-single-meta-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.elegant-single-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.elegant-single-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #2d3748;
}

.elegant-single-content p {
    margin-bottom: 1.5em;
}

.elegant-single-content h2,
.elegant-single-content h3,
.elegant-single-content h4 {
    color: #1a202c;
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
    position: relative;
    padding-left: 20px;
}

.elegant-single-content h2::before,
.elegant-single-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 3px;
}

.elegant-single-content ul,
.elegant-single-content ol {
    margin: 1.5em 0;
    padding-left: 30px;
}

.elegant-single-content li {
    margin-bottom: 0.8em;
    line-height: 1.8;
}

.elegant-single-content a {
    color: #667eea;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.elegant-single-content a:hover {
    color: #764ba2;
    text-decoration-color: #764ba2;
}

.elegant-single-content blockquote {
    border-left: 5px solid #667eea;
    background: #f7fafc;
    padding: 25px 30px;
    margin: 2em 0;
    border-radius: 10px;
    font-style: italic;
    color: #4a5568;
}

/* ========================================
   ELEGANT PAGINATION
======================================== */

.elegant-pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 50px 0;
}

.elegant-page-link {
    padding: 14px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #4a5568;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.elegant-page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.elegant-page-link.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .elegant-category-hero {
        padding: 60px 20px 50px;
    }

    .elegant-cat-title {
        font-size: 2.2rem;
    }

    .elegant-cat-stats {
        gap: 15px;
    }

    .elegant-stat {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .elegant-articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .elegant-single-title {
        font-size: 1.8rem;
    }

    .elegant-single-meta {
        gap: 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .elegant-category-hero,
    .elegant-pagination-wrap {
        display: none;
    }

    .elegant-single-article {
        max-width: 100%;
    }
}
