/* Main Navigation */
.main-navigation {
    margin: 30px 0;
    padding: 0;
}

.nav-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 160px;
    justify-content: center;
    text-decoration: none;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: white;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active i {
    color: var(--secondary-color);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Page Content */
.page-content {
    margin: 40px 0;
    animation: fadeInUp 0.6s ease-out;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.page-title {
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Leaderboard Wrapper */
.leaderboard-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    padding: 40px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.leaderboard-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.leaderboard-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.leaderboard-title i {
    font-size: 2.5em;
    color: #FFD700;
    animation: trophyGlow 2s infinite;
}

@keyframes trophyGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px #FFD700);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px #FFD700);
        transform: scale(1.05);
    }
}

.leaderboard-title h2 {
    color: white;
    font-size: 2.5em;
    margin: 0;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
}

/* Loading and Error States */
.loading-state, .error-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.loading-icon, .error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
}

.loading-icon i {
    color: var(--secondary-color);
    animation: loadingSpin 1s linear infinite;
}

@keyframes loadingSpin {
    0% {
        transform: rotate(0deg);
        filter: drop-shadow(0 0 10px var(--secondary-color));
    }
    100% {
        transform: rotate(360deg);
        filter: drop-shadow(0 0 15px var(--secondary-color));
    }
}

.error-icon i {
    color: #FF6B6B;
    animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px #FF6B6B);
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px #FF6B6B);
    }
}

.error-state h4 {
    font-size: 1.8em;
    margin: 20px 0 15px 0;
    color: rgba(255, 255, 255, 0.9);
}

.error-state p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.retry-btn i {
    animation: retryRotate 2s infinite;
}

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

/* Navigation Focus States */
.nav-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Loading Animation Enhancement */
.loading-state span {
    font-size: 1.3em;
    font-weight: 500;
    animation: loadingText 2s infinite;
}

@keyframes loadingText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Global Casino Section - YATIK TASARIM */
.global-section {
    order: -2;
    margin-bottom: 40px;
}

.global-section .casino-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.global-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 25px;
    background: rgba(45, 45, 45, 0.8);
    border: 2px solid rgba(184, 134, 11, 0.5);
    border-radius: 20px;
    transform: skewX(-5deg);
    transition: all 0.3s ease;
    min-height: 120px;
    gap: 30px;
}

.global-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 40px rgba(184, 134, 11, 0.3);
    transform: skewX(-5deg) translateY(-5px);
}

.global-card > * {
    transform: skewX(5deg);
}

.global-card .casino-logo {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    /* Mavi border kaldÄ±rÄ±ldÄ± */
    flex-shrink: 0;
    object-fit: contain;
    grid-column: 1;
}

.global-card .casino-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    grid-column: 2;
}

.global-card .casino-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.global-card .casino-promotion {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: globalTextGlow 2s infinite;
    font-size: 1.1em;
    margin: 0;
}

.global-card .casino-card-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    grid-column: 3;
}

.global-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateGlobe 4s infinite linear;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.global-icon i {
    font-size: 24px;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

@keyframes rotateGlobe {
    0% {
        transform: rotateY(0deg);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    }
    25% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.7);
    }
    50% {
        transform: rotateY(180deg);
        box-shadow: 0 0 25px rgba(0, 123, 255, 0.9);
    }
    75% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.7);
    }
    100% {
        transform: rotateY(360deg);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    }
}

@keyframes globalTextGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

/* VIP Section - Global'in altÄ±nda */
.vip-section {
    order: -1;
    margin-bottom: 30px;
}

.vip-section .casino-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    display: grid;
}

.vip-card {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    text-align: center;
}

.vip-card .casino-logo {
    width: 160px;
    height: 160px;
    border-radius: 15px;
    object-fit: contain;
    margin-bottom: 10px;
}

.vip-card .casino-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 10px;
}

.crown-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateCrown 3s infinite linear;
}

.crown-icon i {
    font-size: 22px;
    color: #000;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

@keyframes rotateCrown {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Normal Section - Ã‡OK KÃœÃ‡ÃœK BOYUT */
.normal-section {
    order: 0;
}

.normal-section .casino-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    display: grid;
}

.normal-card {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.normal-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.normal-card .casino-logo {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 8px;
}

.normal-card .casino-name {
    font-size: 0.8em;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.normal-card .casino-button {
    padding: 4px 8px;
    font-size: 0.7em;
    border-radius: 10px;
    min-width: auto;
}

/* Common Casino Styles */
.casino-section {
    margin-bottom: 30px;
}

.casino-name {
    font-weight: bold;
    color: #fff;
}

.casino-promotion {
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 15px;
}

.stars {
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 1.1em;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.casino-button {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9em;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--secondary-color);
    }
    50% {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 25px var(--secondary-color);
    }
    100% {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--secondary-color);
    }
}

.casino-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color),
                0 0 30px var(--secondary-color),
                0 0 45px var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Global Responsive */
    .global-card {
        flex-direction: column;
        text-align: center;
        transform: skewX(-3deg);
        padding: 20px;
        gap: 15px;
    }
    
    .global-card .casino-logo {
        width: 120px;
        height: 120px;
    }
    
    .global-card .casino-name {
        font-size: 1.4em;
    }
    
    .global-card .casino-card-footer {
        justify-content: center;
        gap: 15px;
    }
    
    /* VIP Responsive */
    .vip-section .casino-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .vip-card .casino-logo {
        width: 140px;
        height: 140px;
    }
    
    /* Normal Responsive */
    .normal-section .casino-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .normal-card .casino-logo {
        width: 80px;
        height: 60px;
    }
    
    .normal-card .casino-name {
        font-size: 0.8em;
    }
    
    /* Navigation */
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 280px;
        padding: 18px 25px;
        font-size: 15px;
    }
    
    .page-title {
        font-size: 2em;
    }
    
    .leaderboard-wrapper {
        padding: 30px 20px;
    }
    
    .leaderboard-title {
        flex-direction: column;
        gap: 10px;
    }
    
    .leaderboard-title h2 {
        font-size: 2em;
    }
    
    .leaderboard-title i {
        font-size: 2em;
    }
    
    .leaderboard-subtitle {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    /* Global Mobile */
    .global-card {
        transform: skewX(0deg);
        padding: 15px;
    }
    
    .global-card > * {
        transform: skewX(0deg);
    }
    
    .global-card .casino-logo {
        width: 100px;
        height: 100px;
    }
    
    .global-card .casino-name {
        font-size: 1.2em;
    }
    
    /* VIP Mobile */
    .vip-section .casino-grid {
        grid-template-columns: 1fr;
    }
    
    /* Normal Mobile */
    .normal-section .casino-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .normal-card {
        padding: 10px 8px;
    }
    
    .normal-card .casino-logo {
        width: 80px;
        height: 55px;
        margin-bottom: 5px;
    }
    
    .normal-card .casino-name {
        font-size: 0.8em;
        margin-bottom: 8px;
        line-height: 1.1;
    }
    
    .normal-card .casino-button {
        padding: 6px 12px;
        font-size: 0.75em;
    }
    
    /* Navigation Mobile */
    .nav-container {
        padding: 15px;
    }
    
    .nav-btn {
        padding: 15px 20px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .page-title {
        font-size: 1.6em;
        letter-spacing: 1px;
    }
    
    .leaderboard-wrapper {
        padding: 25px 15px;
    }
    
    .leaderboard-title h2 {
        font-size: 1.8em;
    }
    
    .leaderboard-subtitle {
        font-size: 1em;
    }
    
    .loading-state, .error-state {
        padding: 60px 15px;
    }
    
    .loading-icon, .error-icon {
        font-size: 3em;
    }
}
