/* ================================================================
   OVERLAY GALLERY CSS - Dashboard Theme
   ================================================================ */

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-14px) rotate(10deg);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}

/* ================================================================
   HERO BANNER (Dashboard Style)
   ================================================================ */
.og-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.45);
}

.og-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.og-hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.og-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.og-hero-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.2;
}

.og-hero-title span {
    background: linear-gradient(135deg, #fde047, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.og-hero-subtitle {
    font-size: clamp(14px, 1.6vw, 17px);
    opacity: 0.92;
    margin: 0 0 26px;
    line-height: 1.6;
}

.og-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.og-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
}

.og-btn-primary {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.og-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.og-btn-glass {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.og-btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.og-hero-graphic {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.og-cricket-orb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: #fde047;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: orbFloat 4s ease-in-out infinite alternate;
}

/* ================================================================
   SECTION TITLE
   ================================================================ */
.og-section-title {
    margin-bottom: 20px;
}

.og-section-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.og-section-title h2 i {
    color: #4f46e5;
}

.og-section-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ================================================================
   GALLERY GRID
   ================================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* ================================================================
   GALLERY CARD (Dashboard Style)
   ================================================================ */
.gallery-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gallery-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #a855f7;
    box-shadow: 0 20px 40px -10px rgba(168, 85, 247, 0.25);
}

/* ================================================================
   CARD IMAGE
   ================================================================ */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* ================================================================
   CARD BADGES
   ================================================================ */
.card-premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.card-premium-badge i {
    font-size: 12px;
}

.card-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================================
   CARD LABEL
   ================================================================ */
.card-label {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
}

.card-number {
    font-size: 12px;
    font-weight: 700;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.card-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    flex: 1;
}

.card-action-btn {
    background: rgba(79, 70, 229, 0.06);
    border: none;
    color: #4f46e5;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-action-btn:hover {
    background: rgba(79, 70, 229, 0.12);
    transform: scale(1.05);
}

/* ================================================================
   IMAGE PREVIEW MODAL
   ================================================================ */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-preview-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.image-preview-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-preview-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.image-preview-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.image-preview-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.image-preview-info {
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.preview-name {
    font-size: 16px;
    font-weight: 700;
}

.preview-category {
    font-size: 13px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-weight: 500;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.og-empty-state {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.og-empty-icon {
    width: 72px;
    height: 72px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #94a3b8;
    margin: 0 auto 16px;
}

.og-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.og-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 991px) {
    .og-hero-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px 24px;
    }
    .og-hero-graphic {
        align-self: center;
    }
    .og-cricket-orb {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 14px 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }

    .og-hero-banner {
        padding: 18px 16px;
        border-radius: 16px;
        margin-bottom: 18px;
    }
    .og-hero-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    .og-hero-title {
        font-size: 20px;
    }
    .og-hero-subtitle {
        font-size: 12.5px;
        margin-bottom: 16px;
    }
    .og-btn {
        padding: 8px 16px;
        font-size: 12.5px;
        border-radius: 10px;
    }

    .og-section-title h2 {
        font-size: 16px;
    }
    .og-section-title p {
        font-size: 12px;
    }

    .card-label {
        padding: 12px 14px;
    }
    .card-name {
        font-size: 13px;
    }
    .card-number {
        font-size: 10px;
        padding: 3px 8px;
    }
    .card-action-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .card-premium-badge {
        font-size: 9px;
        padding: 3px 10px;
        top: 8px;
        right: 8px;
    }
    .card-category-badge {
        font-size: 9px;
        padding: 3px 10px;
        bottom: 8px;
        left: 8px;
    }

    /* Preview Modal Mobile */
    .image-preview-content img {
        max-width: 95vw;
        max-height: 70vh;
    }
    .image-preview-close {
        top: -44px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
    .image-preview-info {
        padding: 10px 16px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .preview-name {
        font-size: 14px;
    }
    .preview-category {
        font-size: 11px;
        padding: 3px 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .og-cricket-orb {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .image-preview-content img {
        max-width: 98vw;
        max-height: 60vh;
        border-radius: 8px;
    }
    .image-preview-info {
        padding: 8px 12px;
        gap: 8px;
    }
    .preview-name {
        font-size: 13px;
    }
}