/* ===== CATEGORY DETAILS PAGE STYLES ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-details-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===== HERO SECTION ===== */

.category-hero {
    position: relative;
    background: var(--primary-gradient);
    color: white;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.category-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.breadcrumb-nav {
    margin-bottom: 3rem;
}

.breadcrumb-custom {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-custom li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.breadcrumb-custom li a:hover {
    color: white;
}

.breadcrumb-custom li.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-custom li:not(:last-child)::after {
    content: '›';
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.category-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== CONTENT SECTION ===== */

.category-content {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2d3748;
    display: flex;
    align-items: center;
}

/* ===== TAGS SECTION ===== */

.tags-section {
    margin-bottom: 3rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--tag-color, #667eea);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag-pill:hover {
    background: var(--tag-color, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ===== ARTICLES SECTION ===== */

.articles-section {
    margin-bottom: 3rem;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.articles-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: var(--transition);
    min-width: 150px;
}

.sort-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-toggle {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: #667eea;
    color: white;
}

/* ===== ARTICLES GRID ===== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-inner {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: white;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
    line-height: 1.4;
}

.article-summary {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.publish-date {
    color: #64748b;
    font-size: 0.8rem;
}

.article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== PAGINATION ===== */

.pagination-nav {
    margin-top: 3rem;
}

.pagination-custom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(15px);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.pagination-btn.active {
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(15px);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: white;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* ===== SIDEBAR ===== */

.sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.quick-action:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.related-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.related-category:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
    color: #2d3748;
}

.related-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: #2d3748;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 992px) {
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .category-icon-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2.5rem;
    }
    
    .category-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .articles-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .articles-controls {
        justify-content: space-between;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 1.5rem 0 3rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1.1rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .tags-container {
        justify-content: center;
    }
    
    .empty-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .category-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .article-card-inner {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .related-categories,
    .quick-actions {
        gap: 0.5rem;
    }
}

/* ===== ANIMATIONS ===== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card,
.sidebar-card,
.tags-section,
.articles-section {
    animation: fadeInUp 0.6s ease-out;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== LIST VIEW STYLES ===== */

.articles-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.articles-grid.list-view .article-card {
    margin-bottom: 0;
}

.articles-grid.list-view .article-card-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.articles-grid.list-view .article-content {
    flex: 1;
    margin-bottom: 0;
}

.articles-grid.list-view .article-footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .articles-grid.list-view .article-card-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .articles-grid.list-view .article-footer {
        align-items: center;
    }
} 