/**
 * Fenerbahçe Ankara Spor Okulları - Single Galeri
 * Premium Lightbox Gallery Design
 */

/* ===== Fenerbahçe Color Palette ===== */
:root {
    --fb-yellow: #FEE101;
    --fb-navy: #001489;
    --fb-dark-navy: #00104D;
    --fb-light-yellow: #FFF9CC;
}

/* ===== Single Gallery Header ===== */
.single-gallery-header {
    background: linear-gradient(135deg, var(--fb-navy) 0%, var(--fb-dark-navy) 100%);
    padding: 40px 30px;
    margin: 0 -15px 50px -15px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.single-gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(254,225,1,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.single-gallery-header-content {
    position: relative;
    z-index: 2;
}

.single-gallery-breadcrumb {
    text-align: center;
    margin-bottom: 15px;
}

.single-gallery-breadcrumb a {
    color: var(--fb-yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.single-gallery-breadcrumb a:hover {
    opacity: 0.8;
}

.single-gallery-breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.single-gallery-title {
    margin: 0;
    padding: 0;
    color: var(--fb-yellow);
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
}

.single-gallery-meta {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.single-gallery-meta i {
    margin-right: 5px;
    color: var(--fb-yellow);
}

.single-gallery-meta span {
    margin: 0 15px;
}

.single-gallery-social {
    text-align: center;
    margin-top: 20px;
}

.single-gallery-social-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-gallery-social-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-gallery-social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(254, 225, 1, 0.1);
    border: 2px solid var(--fb-yellow);
    border-radius: 25px;
    color: var(--fb-yellow);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-gallery-social-btn i {
    margin-right: 8px;
    font-size: 16px;
}

.single-gallery-social-btn:hover {
    background: var(--fb-yellow);
    color: var(--fb-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(254, 225, 1, 0.3);
    text-decoration: none;
}

/* ===== Gallery Content Wrapper ===== */
.single-gallery-content {
    margin-bottom: 50px;
}

/* WordPress'in default p taglerini temizle */
.single-gallery-content > p:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.single-gallery-content > p {
    margin: 0 0 30px 0;
}

/* ===== Photo Grid ===== */
.single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Multiple galleries - add spacing */
.single-gallery-content .single-gallery-grid + .single-gallery-grid {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .single-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* ===== Photo Item ===== */
.single-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 20, 137, 0.15);
}

.single-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.single-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.single-gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Photo Overlay ===== */
.single-gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 20, 137, 0) 0%, 
        rgba(0, 16, 77, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.single-gallery-item-icon {
    background: var(--fb-yellow);
    color: var(--fb-dark-navy);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(254, 225, 1, 0.4);
}

/* ===== Photo Count Badge ===== */
.single-gallery-count {
    text-align: center;
    margin-bottom: 30px;
}

.single-gallery-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--fb-yellow) 0%, #FFD700 100%);
    color: var(--fb-dark-navy);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(254, 225, 1, 0.3);
}

.single-gallery-count-badge i {
    font-size: 18px;
}

/* ===== Back Button ===== */
.single-gallery-back {
    text-align: center;
    margin: 50px 0;
}

.single-gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--fb-navy) 0%, var(--fb-dark-navy) 100%);
    color: var(--fb-yellow);
    border: 2px solid var(--fb-yellow);
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-gallery-back-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.single-gallery-back-btn:hover {
    background: var(--fb-yellow);
    color: var(--fb-dark-navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 225, 1, 0.4);
    text-decoration: none;
}

.single-gallery-back-btn:hover i {
    transform: translateX(-5px);
}

/* ===== Lightbox2 Custom Styles ===== */
.lb-data .lb-caption {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--fb-yellow) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
}

.lb-data .lb-details {
    padding: 15px 0 !important;
}

.lightbox .lb-image {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 95vw !important;
    max-height: 90vh !important;
}

.lb-outerContainer {
    border-radius: 8px;
}

/* Lightbox navigation buttons - Only arrows visible */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-color: transparent !important;
    opacity: 1 !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background-color: transparent !important;
    opacity: 1 !important;
}

.lb-cancel {
    background-color: var(--fb-yellow) !important;
}

/* ===== Loading State ===== */
.single-gallery-loading {
    text-align: center;
    padding: 60px 0;
}

.single-gallery-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--fb-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.single-gallery-empty {
    text-align: center;
    padding: 80px 20px;
}

.single-gallery-empty-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.single-gallery-empty-text {
    font-size: 18px;
    color: #999;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
    .single-gallery-title {
        font-size: 32px;
    }
    
    .single-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .single-gallery-header {
        padding: 30px 20px;
        margin: 0 -15px 30px -15px;
    }
    
    .single-gallery-title {
        font-size: 26px;
    }
    
    .single-gallery-meta span {
        display: block;
        margin: 5px 0;
    }
    
    .single-gallery-social-buttons {
        gap: 8px;
    }
    
    .single-gallery-social-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .single-gallery-content {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .single-gallery-title {
        font-size: 22px;
    }
    
    .single-gallery-breadcrumb {
        font-size: 12px;
    }
    
    .single-gallery-count-badge {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .single-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .single-gallery-item {
        border-radius: 8px;
    }
}
