/* ==================================================
   LAYKBET GLOBAL RENKLER
================================================== */

:root {
    /* Ana site rengi */
    --laykbet-dark: #060D1D;

    /* Birincil vurgu ve buton rengi */
    --laykbet-yellow: #b03041;

    /* İkincil vurgu ve buton rengi */
    --laykbet-orange: #9B7B48;

    /* Yardımcı renkler */
    --laykbet-silver: #F2F2F2;
    --laykbet-silver-dark: #C8C8C8;
    --laykbet-border: #17233B;
    --laykbet-scrollbar: #26334B;
}
/*
.text-white{
color: #766462!important;
}
*/

/* ==================================================
   AVERTA FONT TANIMLARI
================================================== */

@font-face {
    font-family: 'Averta';
    src: url('/fonts/averta/AvertaStd-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta';
    src: url('/fonts/averta/AvertaStd-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta';
    src: url('/fonts/averta/AvertaStd-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta';
    src: url('/fonts/averta/AvertaStd-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Averta';
    src: url('/fonts/averta/AvertaStd-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ==================================================
   GLOBAL AYARLAR
================================================== */

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Averta', sans-serif !important;
    background-color: var(--laykbet-dark);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

[x-cloak] {
    display: none !important;
}


/* ==================================================
   LAYKBET RENK SINIFLARI
================================================== */

/* Birincil bordo arka plan */
.gold-gradient {
    background-color: var(--laykbet-yellow);
}

/* Bordo-bronz geçişli arka plan */
.laykbet-gradient {
    background: linear-gradient(
        135deg,
        var(--laykbet-yellow) 0%,
        var(--laykbet-orange) 100%
    );
}

/* Birincil bordo yazı */
.text-laykbet-yellow {
    color: var(--laykbet-yellow) !important;
}

/* Birincil bordo kenarlık */
.border-laykbet-yellow {
    border-color: var(--laykbet-yellow) !important;
}

/* Hover bordo yazı */
.hover-gold-gradient:hover {
    color: var(--laykbet-yellow) !important;
}

/* Hover bordo arka plan */
.hover-gold-gradient-bg:hover {
    background-color: var(--laykbet-yellow) !important;
}

/* Hover bordo-bronz geçiş */
.hover-laykbet-gradient:hover {
    background: linear-gradient(
        135deg,
        var(--laykbet-yellow) 0%,
        var(--laykbet-orange) 100%
    ) !important;
}


/* ==================================================
   LOADING SCREEN
================================================== */

#loading-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-color: var(--laykbet-dark);
    z-index: 99999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.5s ease-out,
        visibility 0s linear 0s;
}

/* iPhone ve iOS Safari yükseklik düzeltmesi */
@supports (-webkit-touch-callout: none) {
    #loading-screen {
        height: -webkit-fill-available !important;
        min-height: -webkit-fill-available !important;
    }
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.5s ease-out,
        visibility 0s linear 0.5s;
}

.loading-logo {
    display: block;
    width: 280px;
    max-width: calc(100vw - 40px);
    height: auto;

    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.82;
        transform: scale(1.05);
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin-top: 30px;

    border: 4px solid rgba(199, 16, 60, 0.20);
    border-top-color: var(--laykbet-yellow);
    border-right-color: var(--laykbet-orange);
    border-radius: 50%;

    animation: spinnerRotate 0.9s linear infinite;
}

@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}


/* ==================================================
   SIDEBAR SCROLLBAR
================================================== */

.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color:
        var(--laykbet-scrollbar)
        var(--laykbet-dark);
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background-color: var(--laykbet-dark);
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: var(--laykbet-scrollbar);
    border-radius: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--laykbet-yellow);
}


/* ==================================================
   SIDEBAR İKON RENGİ
================================================== */

/* İkonları bordo rengine çevirir */
.sidebar-icon-gradient {
    filter:
        brightness(0)
        saturate(100%)
        invert(14%)
        sepia(98%)
        saturate(5079%)
        hue-rotate(337deg)
        brightness(85%)
        contrast(101%) !important;

    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

/* Sadece gerçek fare kullanılan cihazlarda hover */
@media (hover: hover) and (pointer: fine) {
    a:hover .sidebar-icon-gradient {
        /* Hover sırasında ikonları bronz rengine çevirir */
        filter:
            brightness(0)
            saturate(100%)
            invert(51%)
            sepia(23%)
            saturate(1098%)
            hue-rotate(358deg)
            brightness(91%)
            contrast(88%) !important;

        transform: scale(1.05);
    }
}


/* ==================================================
   CANLI DESTEK İKONU
================================================== */

@keyframes smoothShake {
    0%,
    50%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(-8deg);
    }

    20%,
    40% {
        transform: rotate(8deg);
    }
}

.shake-animation {
    animation: smoothShake 4s ease-in-out infinite;
}

.shake-animation:hover {
    animation-play-state: paused;
}


/* ==================================================
   YATAY KAYAN ALAN
================================================== */

@keyframes horizontalScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: horizontalScroll 30s linear infinite;
    will-change: transform;
}

.animate-scroll:hover {
    animation-play-state: paused;
}


/* ==================================================
   MOBİL AYARLAR
================================================== */

@media (max-width: 767px) {
    main {
        width: 100%;
        max-width: 100vw;
    }

    .loading-logo {
        width: 230px;
    }

    .loading-spinner {
        width: 42px;
        height: 42px;
        margin-top: 24px;
        border-width: 3px;
    }
}

/* Tailwind md:hidden alanındaki scrollbar'ı gizler */
.md\:hidden {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.md\:hidden::-webkit-scrollbar {
    display: none;
}