/* ==========================================================================
   KSPL GALLERY PAGE SPECIFIC STYLING (PREMIUM LIGHT REDESIGN)
   ========================================================================== */

.photos-page-container {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: 90vh;
}

/* Photos Hero Banner Card */
.photos-hero-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 45px;
    box-shadow: var(--elevated-shadow);
    overflow: hidden;
}

/* Glimmer background rotating effect in Hero Card */
.photos-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(242, 192, 31, 0.12) 0%, transparent 75%),
        radial-gradient(circle at 70% 70%, rgba(144, 23, 29, 0.1) 0%, transparent 75%);
    pointer-events: none;
    animation: slow-bg-rotation-photos 25s linear infinite;
}

@keyframes slow-bg-rotation-photos {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photos-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.photos-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 100%);
    border-radius: 3px;
}

.photos-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 25px auto 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Gallery Wrapper Glass Card */
.gallery-wrapper-card {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--elevated-shadow);
    padding: 40px;
    margin-bottom: 50px;
    overflow: hidden;
}

/* Controls Header Layout */
.gallery-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(144, 23, 29, 0.08);
    padding-bottom: 25px;
    flex-wrap: wrap;
}

/* Category Tabs (Pills style) */
.category-tabs-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-tab {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid transparent;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-tab:hover {
    background: rgba(144, 23, 29, 0.06);
    color: var(--burgundy);
    transform: translateY(-1px);
}

.gallery-tab.active {
    background: var(--burgundy);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(144, 23, 29, 0.25);
    border-color: var(--burgundy);
}

/* Gallery Search Bar */
.gallery-search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
    min-width: 280px;
}

.gallery-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid rgba(144, 23, 29, 0.12);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: all 0.3s ease;
}

.gallery-search-input:focus {
    border-color: var(--burgundy);
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(144, 23, 29, 0.08);
}

.gallery-search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.6;
}

/* Gallery Responsive Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
    transition: opacity 0.3s ease;
}

/* Gallery Item Cards */
.gallery-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--elevated-shadow);
    border-color: var(--glass-border-gold);
}

/* Image Container with Hover overlay */
.gallery-img-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-img-box img {
    transform: scale(1.06);
}

/* Dark glassmorphic hover overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(110, 15, 19, 0.8) 0%, rgba(144, 23, 29, 0.3) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.zoom-badge {
    background: #ffffff;
    color: var(--burgundy-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .zoom-badge {
    transform: translateY(0);
}

/* Metadata and captions */
.gallery-item-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
}

.gallery-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Custom Accents for different Category Badges */
.item-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 12px;
}

.tag-events {
    background: rgba(242, 192, 31, 0.1);
    color: #c49504;
    border: 1px solid rgba(242, 192, 31, 0.2);
}

.tag-matches {
    background: rgba(144, 23, 29, 0.08);
    color: var(--burgundy);
    border: 1px solid rgba(144, 23, 29, 0.15);
}

.tag-trials {
    background: rgba(56, 31, 115, 0.08);
    color: var(--deep-purple);
    border: 1px solid rgba(56, 31, 115, 0.15);
}

.item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.gallery-item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-item-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
}

/* No Results State */
.gallery-no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.02);
    border-radius: 20px;
    border: 1px dashed rgba(144, 23, 29, 0.15);
}

.gallery-no-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Ambassador sub heading styles */
.sub-title {
    margin-top: 40px;
}

/* Responsive Overwrites */
@media (max-width: 992px) {
    .gallery-header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gallery-search-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .photos-page-container {
        padding-top: 110px;
    }
    
    .photos-hero-card {
        padding: 40px 20px;
        border-radius: 24px;
        margin-bottom: 30px;
    }
    
    .gallery-wrapper-card {
        padding: 24px;
        border-radius: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-img-box {
        height: 200px;
    }
}
