/**
 * Taxonomy Gallery Category Styles
 * Styling for gallery_category taxonomy template
 */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    --primary-color: #ff6b35;
    --secondary-color: #fc9837;
}

/* Gallery Category Template */
.gallery-category-template {
    background: #f8f9fa;
}

/* Category Banner */
#category_banner_wrap {
    margin-bottom: 0;
}

.category_banner_wrap {
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Category Header */
#cat_description {
    padding: 40px 0 20px;
}

#cat_description .page-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#cat_description .coblog-page-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#cat_description .coblog-page-title i {
    color: var(--primary-color);
}

#cat_description .archive-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* Gallery Filter Tabs */
#gallery_filters {
    padding: 30px 0;
}

.gallery-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.gallery-tab.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.gallery-tab i {
    font-size: 16px;
}

/* Featured Galleries Section */
#featured_galleries {
    padding: 30px 0;
}

.galleries-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.galleries-grid.featured-galleries {
    grid-template-columns: repeat(3, 1fr);
}

/* Gallery Card */
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-card.featured {
    border: 2px solid var(--primary-color);
}

/* Gallery Card Header */
.gallery-card-header {
    position: relative;
    overflow: hidden;
}

.gallery-thumbnail {
    position: relative;
    padding-top: 75%; /* 4:3 ratio */
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumbnail img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 36px;
    color: white;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.featured-badge i {
    font-size: 12px;
}

/* Download Badge */
.download-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Gallery Card Body */
.gallery-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}

.gallery-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-title a:hover {
    color: var(--primary-color);
}

/* Gallery Meta */
.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-top: auto;
}

.gallery-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-meta i {
    color: var(--primary-color);
    font-size: 14px;
}

/* All Galleries Grid */
#allGalleriesGrid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

#allGalleriesGrid .gallery-thumbnail {
    padding-top: 100%; /* Square 1:1 ratio */
}

/* Gallery Tips */
#gallery_tips {
    padding: 40px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.tip-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tip-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.tip-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.tip-card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* SEO Content */
#seo_content {
    padding: 40px 0;
}

.seo-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seo-content h2,
.seo-content h3 {
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-content h2 {
    font-size: 28px;
}

.seo-content h3 {
    font-size: 22px;
}

.seo-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #allGalleriesGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .galleries-grid,
    .galleries-grid.featured-galleries {
        grid-template-columns: repeat(2, 1fr);
    }

    #allGalleriesGrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #cat_description .coblog-page-title {
        font-size: 28px;
        flex-direction: row;
    }

    #cat_description .archive-description {
        font-size: 14px;
    }

    .gallery-filter-tabs {
        flex-direction: column;
    }

    .gallery-tab {
        width: 100%;
        justify-content: center;
    }

    .galleries-grid,
    .galleries-grid.featured-galleries {
        grid-template-columns: 1fr;
    }

    #allGalleriesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tip-card {
        padding: 25px 20px;
    }

    .seo-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    #allGalleriesGrid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }
}
