/**
 * İddiax Theme - Custom CSS
 * Additional styles, animation helpers, and enhanced effects
 */

/* ============================================
   ANIMATION HELPERS
   ============================================ */
.ix-anim-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   ENHANCED CARD HOVER EFFECTS
   ============================================ */
.ix-card-dark {
    position: relative;
    overflow: hidden;
}

.ix-card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.ix-card-dark:hover::before {
    left: 100%;
}

.ix-card-dark > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   MEMBERSHIP CARD NUMBERING
   ============================================ */
.ix-membership-card ol li::marker {
    color: var(--ix-green-medium);
    font-weight: 700;
}

/* ============================================
   STEP NUMBER ENHANCEMENTS
   ============================================ */

/* ============================================
   SCROLL INDICATOR (Hero bottom)
   ============================================ */
@keyframes ix-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-8px) translateX(-50%);
    }
    60% {
        transform: translateY(-4px) translateX(-50%);
    }
}

.ix-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: ix-bounce 2s infinite;
    z-index: 2;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ix-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--ix-green-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ix-green-dark);
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
    background: var(--ix-green-light);
    color: var(--ix-white);
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ix-gold);
    outline-offset: 2px;
}

/* ============================================
   GAME CARD GRID FIX
   ============================================ */
@media (min-width: 992px) {
    .ix-game-card {
        min-height: 140px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ============================================
   SECTION TITLE UNDERLINE ANIMATION
   ============================================ */
.ix-section-divider {
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ix-section-divider.ix-animated {
    animation: ix-divider-grow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes ix-divider-grow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* ============================================
   BAYI BADGE HOVER
   ============================================ */
.ix-bayi-badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ix-bayi-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

/* ============================================
   LEGAL BOX PULSE ON HOVER
   ============================================ */
.ix-legal-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ix-legal-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.15);
}

/* ============================================
   ABOUT TABLE ROW HOVER
   ============================================ */
.ix-about-table tr {
    transition: background 0.3s ease;
}

.ix-about-table tr:hover {
    background: rgba(20, 90, 60, 0.05);
}

/* ============================================
   CALLOUT HOVER
   ============================================ */
.ix-callout {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ix-callout:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 var(--ix-gold);
}

/* ============================================
   NAVBAR LINK UNDERLINE ANIMATION
   ============================================ */
.ix-navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: var(--ix-gold);
    border-radius: 1px;
    transition: left 0.3s ease, right 0.3s ease;
    opacity: 0;
}

.ix-navbar .nav-link:hover::before {
    left: 0.85rem;
    right: 0.85rem;
    opacity: 0.5;
}

.ix-navbar .nav-link.active::before {
    display: none;
}

/* ============================================
   FLOATING PARTICLES (Hero BG decoration)
   ============================================ */
@keyframes ix-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.15;
    }
}

#hero .ix-hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    animation: ix-float linear infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .ix-navbar,
    .ix-footer,
    #yasal {
        display: none !important;
    }

    .ix-section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }

    .ix-section-dark {
        background: #fff !important;
        color: #333 !important;
    }

    .ix-section-dark h2,
    .ix-section-dark h3,
    .ix-section-dark h4,
    .ix-section-dark p {
        color: #333 !important;
    }
}
