/* Category Archive Page */
.zwr-category-archive {
    min-height: 100vh;
}

/* Category Header */
.zwr-category-header {
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.zwr-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.zwr-category-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.zwr-category-icon-large {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zwr-category-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zwr-category-description {
    font-size: 20px;
    opacity: 0.95;
    margin: 0 0 20px 0;
}

.zwr-category-count {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Category Content */
.zwr-category-content {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
}

/* Pages Grid */
.zwr-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Page Card */
.zwr-page-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.zwr-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Page Thumbnail */
.zwr-page-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.zwr-page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zwr-page-card:hover .zwr-page-thumbnail img {
    transform: scale(1.05);
}

/* Page Card Content */
.zwr-page-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.zwr-page-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.zwr-page-excerpt {
    font-size: 15px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
    flex-grow: 1;
}

/* Page Meta */
.zwr-page-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.zwr-views {
    font-size: 14px;
    color: #999;
}

.zwr-arrow {
    font-size: 20px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.zwr-page-card:hover .zwr-arrow {
    transform: translateX(5px);
}

/* No Pages Message */
.zwr-no-pages {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.zwr-no-pages p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Back Link */
.zwr-back-link {
    text-align: center;
    margin-top: 40px;
}

.button, .button-large {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover, .button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .zwr-category-header {
        padding: 60px 20px;
    }
    
    .zwr-category-icon-large {
        font-size: 60px;
    }
    
    .zwr-category-header h1 {
        font-size: 32px;
    }
    
    .zwr-category-description {
        font-size: 16px;
    }
    
    .zwr-pages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zwr-page-card {
    animation: fadeIn 0.5s ease backwards;
}

.zwr-page-card:nth-child(1) { animation-delay: 0.1s; }
.zwr-page-card:nth-child(2) { animation-delay: 0.2s; }
.zwr-page-card:nth-child(3) { animation-delay: 0.3s; }
.zwr-page-card:nth-child(4) { animation-delay: 0.4s; }
.zwr-page-card:nth-child(5) { animation-delay: 0.5s; }
.zwr-page-card:nth-child(6) { animation-delay: 0.6s; }
