/**
 * Category Page Styles
 * CryptoInsiderHub - Astra Child Theme
 */

/* Category Header Styles */
.category .site-main {
    position: relative;
}

/* Enhanced Card Hover Effects for Category Pages */
.category .card-glass {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category .card-glass:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Pagination Styles */
.category nav[aria-label="Pagination"] {
    margin-top: 3rem;
}

.category .page-numbers {
    transition: all 0.3s ease;
}

.category .page-numbers:hover {
    transform: translateY(-2px);
}

.category .page-numbers.current {
    pointer-events: none;
}

/* Category Stats Badge */
.category-stats {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Related Categories Section */
.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Category Color Variants */
.category-blue {
    --category-color: #3b82f6;
    --category-color-light: #60a5fa;
    --category-color-dark: #2563eb;
}

.category-purple {
    --category-color: #8b5cf6;
    --category-color-light: #a78bfa;
    --category-color-dark: #7c3aed;
}

.category-green {
    --category-color: #10b981;
    --category-color-light: #34d399;
    --category-color-dark: #059669;
}

.category-cyan {
    --category-color: #06b6d4;
    --category-color-light: #22d3ee;
    --category-color-dark: #0891b2;
}

.category-yellow {
    --category-color: #f59e0b;
    --category-color-light: #fbbf24;
    --category-color-dark: #d97706;
}

/* Post Grid Responsive Adjustments */
@media (max-width: 768px) {
    .category .grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .category .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading State */
.category-loading {
    opacity: 0.5;
    pointer-events: none;
}

.category-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--category-color, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty State Styles */
.category-empty {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured Post in Category */
.category-featured-post {
    position: relative;
    overflow: hidden;
}

.category-featured-post::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--category-color, #3b82f6), rgba(139, 92, 246, 0.5));
    border-radius: 1.6rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-featured-post:hover::before {
    opacity: 0.5;
}

/* Post Meta Styling */
.category .post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.category .post-meta span {
    transition: color 0.3s ease;
}

.category article:hover .post-meta span {
    color: rgba(255, 255, 255, 0.7);
}

/* Reading Time Badge */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .category h1 {
        font-size: 2rem;
    }
    
    .category h2 {
        font-size: 1.25rem;
    }
}

/* Smooth Transitions */
.category * {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .category .card-glass {
        border: 1px solid #ddd;
        background: white;
        color: black;
    }
    
    .category nav[aria-label="Pagination"],
    .related-categories-grid {
        display: none;
    }
}







