:root {
    --primary-color: #00796b;
    --secondary-color: #f0ad4e;
    --danger-color: #d9534f;
    --info-color: #0288d1;
    --success-color: #388e3c;
    --kolay-color: #28a745;
    --orta-color: #ffc107;
    --zor-color: #dc3545;
    --hata-color: #d32f2f;
    --light-bg-color: #f8f9fa;
    --dark-text-color: #343a40;
    --light-text-color: #ffffff;
    --border-radius: 12px;
    /* iOS Safe Area Desteği */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
    /* iOS Safari 100vh sorunu için */
    --vh: 1vh;
}
/* Touch Optimizasyonları - Global */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

button, a, [role="button"], .cursor-pointer {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 121, 107, 0.2);
}

/* Scroll Optimizasyonları */
.overflow-x-auto, .overflow-y-auto, [class*="overflow"] {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif; background: #eef2f3;
    text-align: center; margin: 0; padding-top: 80px;
    color: var(--dark-text-color);
    display: flex; flex-direction: column; 
    align-items: center; /* İçeriği yatayda ortalar */
    padding-bottom: 20px;
    box-sizing: border-box;
    min-height: 100vh; /* Sayfanın tamamını kaplaması için */
    /* iOS Safari 100vh sorunu için */
    min-height: calc(var(--vh, 1vh) * 100);
}
.container {
    background-color: var(--light-text-color); padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); display: block;
    max-width: 800px; width: 90%; box-sizing: border-box;
}
.dark .container {
    background-color: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
}
.site-header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 10px 30px;
    /* iOS Safe Area Desteği */
    padding-top: calc(var(--safe-area-inset-top, 0px) + 10px);
    padding-left: calc(var(--safe-area-inset-left, 0px) + 30px);
    padding-right: calc(var(--safe-area-inset-right, 0px) + 30px);
    background-color: var(--light-text-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; justify-content: space-between; align-items: center;
    box-sizing: border-box; z-index: 100;
}
.dark .site-header {
    background-color: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
}
.site-header a { color: var(--primary-color); text-decoration: none; font-weight: bold; }
.header-user-info { text-align: center; font-size: 0.9em; }
.header-links { display: flex; gap: 15px; align-items: center; }
.header-odul-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.header-odul-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}
.odul-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Günlük Ödül Popup */
.gunluk-odul-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.gunluk-odul-content {
    background: white;
    border-radius: 20px;
    padding: 0;
}
.dark .gunluk-odul-content {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.gunluk-odul-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}
.gunluk-odul-close:hover {
    background: #f0f0f0;
    color: #333;
}
.dark .gunluk-odul-close {
    background: rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}
.dark .gunluk-odul-close:hover {
    background: #374151;
    color: #f3f4f6;
}
.gunluk-odul-header {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}
.gunluk-odul-header i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.gunluk-odul-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.gunluk-odul-body {
    padding: 30px 20px;
    text-align: center;
}
.dark .gunluk-odul-body {
    color: #e5e7eb;
}
.dark .gunluk-odul-body p,
.dark .gunluk-odul-body div,
.dark .gunluk-odul-body span {
    color: #e5e7eb;
}
.odul-hazir i, .odul-alindi i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}
.odul-hazir p, .odul-alindi p {
    margin: 10px 0;
    font-size: 1rem;
    color: #555;
}
.dark .odul-hazir p, .dark .odul-alindi p {
    color: #e5e7eb;
}
.odul-miktar {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 20px 0 !important;
}
.dark .odul-miktar {
    color: #14b8a6 !important;
}
.odul-bekleme {
    color: #999 !important;
    font-size: 0.9rem !important;
}
.dark .odul-bekleme {
    color: #9ca3af !important;
}
.odul-al-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.odul-al-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.odul-al-btn:hover::before {
    width: 300px;
    height: 300px;
}
.odul-al-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}
.odul-al-btn:active {
    transform: translateY(-1px);
}
.odul-al-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.odul-al-btn i {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}
.odul-al-btn span {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}
.odul-alindi i {
    color: #28a745;
}
.odul-listesi {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 5px;
}
.odul-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.dark .odul-item {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #6b7280;
}
.dark .odul-item:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    border-color: #14b8a6;
}
.odul-item:hover {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.odul-item-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #005a4f);
    border-radius: 12px;
    flex-shrink: 0;
}
.odul-item-icon i {
    font-size: 1.8rem;
    color: white;
}
.odul-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.odul-adi {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    text-align: left;
}
.dark .odul-adi {
    color: #e5e7eb;
}
.odul-deger {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: left;
}
.dark .odul-deger {
    color: #14b8a6;
}
.odul-al-btn-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}
.dark .odul-al-btn-wrapper {
    border-top-color: #4b5563;
}
.odul-listesi-kazanildi {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}
.odul-item-kazanildi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 8px;
    border: 1px solid #4caf50;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.odul-item-kazanildi i {
    font-size: 1.3rem;
    color: #2e7d32;
    width: 25px;
    text-align: center;
}
.odul-item-kazanildi span {
    font-weight: 600;
    color: #1b5e20;
    font-size: 0.95rem;
}
.profile-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.profile-link:hover { color: var(--primary-color); }

/* Ödül Çarkı Stilleri */
.odul-carki-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.odul-carki-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}
.odul-carki-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}
.odul-carki-close:hover {
    background: #f0f0f0;
    color: #333;
}
.dark .odul-carki-close {
    background: rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
}
.dark .odul-carki-close:hover {
    background: #374151;
    color: #f3f4f6;
}
.odul-carki-header {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}
.odul-carki-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    animation: rotate 3s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.odul-carki-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.odul-carki-body {
    padding: 30px 20px;
    text-align: center;
}
.dark .odul-carki-body {
    color: #e5e7eb;
}
.dark .odul-carki-body p,
.dark .odul-carki-body div,
.dark .odul-carki-body span {
    color: #e5e7eb;
}
.carki-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.carki-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.odul-carki {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 8px rgba(255,255,255,0.95), 0 0 0 10px rgba(0,0,0,0.08);
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: #f8f9fa;
    border: 4px solid white;
}
.odul-carki.ceviriliyor {
    pointer-events: none;
}
.carki-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    transform-origin: 0 100%;
    background: var(--segment-color);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    box-sizing: border-box;
}
.carki-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.1) 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    pointer-events: none;
}
.carki-segment::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}
.carki-odul-text {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transform-origin: center center;
}
.carki-odul-adi {
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.9),
        0 2px 4px rgba(0,0,0,0.7),
        0 0 8px rgba(0,0,0,0.5);
    white-space: nowrap;
    padding: 5px 8px;
    background: rgba(0,0,0,0.75);
    border-radius: 6px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    -moz-backdrop-filter: blur(3px);
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carki-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 2px 5px rgba(255,255,255,0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carki-center::before {
    content: '';
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-radius: 50%;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}
.carki-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pointer-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #ff4757;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
    position: relative;
    z-index: 2;
}
.pointer-triangle::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -18px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 32px solid #ff6b7a;
    z-index: -1;
}
.pointer-shadow {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    filter: blur(4px);
}
.carki-cevir-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}
.carki-cevir-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.6);
}
.carki-cevir-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.carki-bitti {
    padding: 40px 20px;
}
.carki-bitti i {
    font-size: 4rem;
    color: #999;
    margin-bottom: 15px;
    display: block;
}
.carki-odul-kazanildi {
    padding: 30px 20px;
}
.carki-odul-kazanildi i {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 15px;
    display: block;
    animation: scaleIn 0.5s ease;
}
@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.carki-odul-kazanildi h3 {
    margin: 15px 0;
    font-size: 1.3rem;
    color: #333;
}

/* Ödül Çarkı Responsive */
@media (max-width: 768px) {
    .carki-wrapper {
        width: 320px;
        height: 320px;
    }
    .odul-carki {
        width: 320px;
        height: 320px;
    }
    .carki-segment-content {
        width: 100px;
    }
    .carki-odul-adi {
        font-size: 0.75rem;
        max-width: 80px;
        padding: 3px 5px;
    }
    .carki-center {
        width: 60px;
        height: 60px;
    }
    .carki-center::before {
        width: 40px;
        height: 40px;
    }
    .odul-carki-content {
        max-width: 95%;
    }
}

/* SEÇİM SAYFASI */
.selection-container { margin-top: 0; }
.selection-container h1 { font-size: 1.6em; margin-bottom: 5px; }
.selection-container p { font-size: 0.9em; margin-top: 0; }
.hata-mesaji { background-color: #f8d7da; color: #721c24; padding: 15px; border-radius: 8px; border: 1px solid #f5c6cb; margin-bottom: 20px; font-weight: bold; }
.zorluk-secim-container { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.zorluk-buton, .zorluk-buton.disabled { display: block; padding: 12px 18px;
    border-radius: 10px; text-decoration: none; color: var(--light-text-color); transition: transform 0.2s, box-shadow 0.2s; text-align: left; border-left: 5px solid rgba(0,0,0,0.2); }
.zorluk-buton:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.zorluk-isim { font-size: 1.2em; font-weight: 600; }
.zorluk-aciklama { font-size: 0.8em; opacity: 0.9; margin-top: 3px; }
.zorluk-buton.kolay { background: var(--kolay-color); }
.zorluk-buton.orta { background: var(--orta-color); color: #333; }
.zorluk-buton.zor { background: var(--zor-color); }

.zorluk-buton.disabled, .oyun-modu-buton.disabled { 
    background-color: #6c757d; 
    cursor: not-allowed; 
    border-color: #5a6268; 
    opacity: 0.7; 
}
.zorluk-buton.disabled:hover, .oyun-modu-buton.disabled:hover { 
    transform: none; 
    box-shadow: none; 
}

/* PROFİL/MARKET GENEL BUTONLARI */
.action-button { 
    display: inline-block; 
    padding: 12px 30px; 
    border-radius: 50px; 
    background-color: var(--primary-color); 
    color: #fff; 
    text-decoration: none; 
    font-weight: bold; 
    transition: all 0.2s; 
    border: none; 
    cursor: pointer;
}
.action-button:hover { 
    transform: translateY(-2px); 
    opacity: 0.9; 
}
.action-button-secondary { 
    background-color: #6c757d; 
    margin-left: 10px; 
}


/* LİDERLİK TABLOSU (ANA SAYFADAKİ) */
.leaderboard-wrapper { width: 90%; max-width: 800px; box-sizing: border-box; margin-bottom: 15px; }
.leaderboard-container { background-color: #fff !important; border-radius: var(--border-radius) !important; padding: 15px !important; border: 1px solid #e9ecef !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important; }
.leaderboard-container h2 { margin-bottom: 10px; font-size: 1.2em; }
.leaderboard-list { display: flex !important; flex-direction: row !important; overflow-x: auto; gap: 8px; padding-bottom: 10px; }
.leaderboard-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; padding: 8px 5px; text-decoration: none; color: var(--dark-text-color); transition: all 0.2s ease; border-radius: 8px; background-color: #f8f9fa; border: 1px solid #e0e0e0; }
.dark .leaderboard-item {
    background-color: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}
.leaderboard-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dark .leaderboard-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background-color: #4b5563;
}
.leaderboard-rank { font-size: 0.7em; font-weight: bold; color: #aaa; }
.dark .leaderboard-rank {
    color: #9ca3af;
}
.leaderboard-avatar { 
    width: 40px; height: 40px; border-radius: 50%; 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 700; font-size: 1.2em; margin-bottom: 5px; 
    position: relative; overflow: hidden;
    border: 2px solid transparent;
}
.leaderboard-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.leaderboard-name { font-weight: 600; font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.dark .leaderboard-name {
    color: #e5e7eb;
}
.leaderboard-score { font-size: 0.7em; color: #666; }
.dark .leaderboard-score {
    color: #9ca3af;
}
.no-leader { color: #888; font-style: italic; }
.dark .no-leader {
    color: #9ca3af;
}

/* LİDERLİK ÇERÇEVELERİ (Bunlar ana sayfada da göründüğü için main.css'te kalmalı) */
.leaderboard-avatar.silver-frame {
    border-color: silver;
    box-shadow: 0 0 5px silver;
}
.leaderboard-avatar.gold-frame {
    border-color: gold;
    box-shadow: 0 0 5px gold;
}
.leaderboard-avatar.elmas-frame {
    border-color: #b0e0e6;
    box-shadow: 0 0 5px #b0e0e6;
}
@keyframes ates-animasyon-kucuk {
    0%   { border-color: #FF4500; box-shadow: 0 0 5px #FF4500; }
    50%  { border-color: #FF8C00; box-shadow: 0 0 8px #FF8C00; }
    100% { border-color: #FF4500; box-shadow: 0 0 5px #FF4500; }
}
.leaderboard-avatar.ates-frame {
    border-width: 2px;
    animation: ates-animasyon-kucuk 2s infinite linear; 
}
@keyframes efsanevi-animasyon-kucuk {
    0%   { border-color: #8A2BE2; box-shadow: 0 0 5px #8A2BE2; }
    50%  { border-color: #9370DB; box-shadow: 0 0 8px #9370DB; }
    100% { border-color: #8A2BE2; box-shadow: 0 0 5px #8A2BE2; }
}
.leaderboard-avatar.efsanevi-frame {
    border-width: 2px;
    animation: efsanevi-animasyon-kucuk 1.5s infinite linear; 
}
@keyframes turkey-glow-kucuk {
    0%   { border-color: #E30A17; box-shadow: 0 0 5px #fff, 0 0 8px #E30A17; }
    50%  { border-color: #fff; box-shadow: 0 0 8px #fff, 0 0 10px #E30A17; }
    100% { border-color: #E30A17; box-shadow: 0 0 5px #fff, 0 0 8px #E30A17; }
}
.leaderboard-avatar.turkey-frame {
    border-width: 2px;
    background-color: #E30A17;
    color: #fff; 
    animation: turkey-glow-kucuk 2s infinite linear;
}
@keyframes neon-flow-kucuk {
     0%   { border-color: #ff00de; box-shadow: 0 0 5px #ff00de; }
    25%  { border-color: #00ffff; box-shadow: 0 0 5px #00ffff; }
    50%  { border-color: #00ff00; box-shadow: 0 0 5px #00ff00; }
    75%  { border-color: #ffff00; box-shadow: 0 0 5px #ffff00; }
    100% { border-color: #ff00de; box-shadow: 0 0 5px #ff00de; }
}
.leaderboard-avatar.neon-frame {
    border-width: 2px;
    background-color: #222;
    color: #fff; 
    animation: neon-flow-kucuk 4s infinite linear;
}
@keyframes kraliyet-mavisi-kucuk {
  0%   { border-color: #007bff; box-shadow: 0 0 5px #007bff, 0 0 8px #fff; }
  50%  { border-color: #80c0ff; box-shadow: 0 0 8px #007bff, 0 0 12px #fff; }
  100% { border-color: #007bff; box-shadow: 0 0 5px #007bff, 0 0 8px #fff; }
}
.leaderboard-avatar.kraliyet-mavisi-frame {
    border-width: 2px;
    background-color: #001f3f;
    color: #fff;
    animation: kraliyet-mavisi-kucuk 2s infinite linear;
}


/* FOOTER STİLLERİ */
.site-footer {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-top: 25px;
    text-align: center;
    box-sizing: border-box;
    margin-top: auto;
}
.footer-links {
    margin-bottom: 10px;
}
.footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-copyright {
    font-size: 0.9em;
    color: #aaa;
}

/* GÜNLÜK ÖDÜL MESAJI STİLİ */
.odul-mesaji {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(45deg, #f0ad4e, #ffc107);
    border: none;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    animation: odul-parlama 2s infinite;
}

@keyframes odul-parlama {
    0% { box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 5px 25px rgba(255, 193, 7, 0.7); }
    100% { box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4); }
}

/* BİLMECE GÖNDERME FORMU STİLLERİ */
.form-container {
    max-width: 700px;
    width: 95%;
    text-align: left;
    box-sizing: border-box;
}

.form-container .profile-actions {
    text-align: center;
}

.form-container fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-container fieldset[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.form-grup {
    margin-bottom: 15px;
}
.form-grup label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.dark .form-grup label {
    color: #e5e7eb;
}
.form-grup input[type="text"],
.form-grup textarea,
.form-grup select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.dark .form-grup input[type="text"],
.dark .form-grup textarea,
.dark .form-grup select {
    background-color: #374151;
    border-color: #4b5563;
    color: #f3f4f6;
}
.dark .form-grup input[type="text"]::placeholder,
.dark .form-grup textarea::placeholder {
    color: #9ca3af;
}
.form-grup textarea {
    min-height: 80px;
    resize: vertical;
}
.form-grup input[type="text"]:focus,
.form-grup textarea:focus,
.form-grup select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}
.dark .form-grup input[type="text"]:focus,
.dark .form-grup textarea:focus,
.dark .form-grup select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}
/* STİLLER SONU */


/* === MOBİL CİHAZ ONARIMLARI (DÜZENLENDİ) === */
@media (max-width: 768px) {
    body { 
        padding-top: 100px;
        /* iOS Safari 100vh sorunu için */
        min-height: calc(var(--vh, 1vh) * 100);
    }
    /* Ana sayfa (oyun_secim.php) için ekstra padding - header yüksekliği için */
    /* Tailwind pt-32 sınıfı ile birlikte çalışır */
    body[class*="pt-32"] {
        padding-top: 128px !important; /* pt-32 = 8rem = 128px */
    }
    .container, .leaderboard-wrapper { 
        width: 95%; 
        padding: 20px;
    }
    
    /* --- HEADER DÜZELTMESİ BAŞLANGICI --- */
    .site-header { 
        flex-wrap: wrap;
        justify-content: space-between; /* DEĞİŞTİ */
        padding: 10px 15px; 
        gap: 10px; 
    }
    /* Ana sayfa header'ı için daha kompakt padding - mobilde header yüksekliğini azalt */
    body[class*="pt-32"] .fixed.top-0 {
        padding-top: calc(var(--safe-area-inset-top, 0px) + 8px) !important;
        padding-bottom: 8px !important;
        /* Tailwind px-3 (0.75rem) ile safe area birleştir */
        padding-left: calc(var(--safe-area-inset-left, 0px) + 0.75rem) !important;
        padding-right: calc(var(--safe-area-inset-right, 0px) + 0.75rem) !important;
        gap: 6px !important;
    }
    /* Liderlik tablosu için ekstra margin - mobilde header altında kalmaması için */
    body[class*="pt-32"] .max-w-4xl.mt-4 {
        margin-top: 1.5rem !important; /* 24px - header ile içerik arasında yeterli boşluk */
    }
    
    /* Liderlik Tablosu Scroll Optimizasyonu */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: rgba(0, 121, 107, 0.3) transparent;
    }
    
    .overflow-x-auto::-webkit-scrollbar {
        height: 4px;
    }
    
    .overflow-x-auto::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .overflow-x-auto::-webkit-scrollbar-thumb {
        background: rgba(0, 121, 107, 0.3);
        border-radius: 2px;
    }
    
    /* Dark mode için scrollbar */
    .dark .overflow-x-auto::-webkit-scrollbar-thumb {
        background: rgba(20, 184, 166, 0.4); /* teal-500 */
    }
    
    /* Mobilde kullanıcı adı genişliği artır */
    .leaderboard-item .font-semibold {
        max-width: 90px !important; /* 70px'den 90px'e */
    }
    
    /* Liderlik Tablosu Scroll Indicator */
    .leaderboard-scroll-container {
        position: relative;
    }
    
    .leaderboard-scroll-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.8));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 1;
    }
    
    .leaderboard-scroll-container.scrollable::after {
        opacity: 1;
    }
    
    /* Dark mode için scroll indicator */
    .dark .leaderboard-scroll-container::after {
        background: linear-gradient(to right, transparent, rgba(31, 41, 55, 0.8));
    }
    .header-user-info { 
        /* flex-basis: 100% KALDIRILDI */
        /* justify-content: center; KALDIRILDI */
        text-align: left; /* DEĞİŞTİ */
        font-size: 0.9em; /* EKLENDİ */
    }
    /* Linklerin olduğu bölümü alta at ve ortala */
    .header-links { 
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
        margin-top: 5px;
    }
    /* --- HEADER DÜZELTMESİ SONU --- */
    
    .siklar-container { 
        grid-template-columns: 1fr; 
        gap: 10px; 
    }
    .bilmece {
        font-size: 1.1em;
        min-height: 60px;
    }
    .yardim-butonlari {
        flex-direction: column;
        gap: 10px;
    }
    .yardim-butonu {
        width: 100%;
        box-sizing: border-box;
    }

    .form-container .profile-actions {
        text-align: center;
    }
    .form-container .profile-actions .action-button,
    .form-container .profile-actions .action-button-secondary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-bottom: 10px;
    }
    .form-container .profile-actions .action-button:last-child,
    .form-container .profile-actions .action-button-secondary:last-child {
        margin-bottom: 0;
    }
}

/* === OYUN MODU BUTONU (Ana sayfada) === */
.oyun-modu-buton {
    display: block;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--light-text-color);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    border-left: 5px solid rgba(0,0,0,0.2);
}
.oyun-modu-buton:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.oyun-modu-buton .zorluk-isim { 
    font-size: 1.2em;
    font-weight: 600;
}
.oyun-modu-buton .zorluk-aciklama {
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 3px;
}
.oyun-modu-buton.kolay { background: var(--kolay-color); }
.oyun-modu-buton.orta { background: var(--orta-color); color: #333; }
.oyun-modu-buton.zor { background: var(--zor-color); }

/* === GÜNCELLEME: main.css'e EKLENEN STİLLER === */
.sonuc-gosterge { 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 1.2em; 
    font-weight: 600; 
    margin-bottom: 25px; 
    color: var(--light-text-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.sonuc-gosterge.dogru { background-color: var(--success-color); }
.sonuc-gosterge.yanlis { background-color: var(--danger-color); }

.bilmece { 
    font-size: 1.3em; 
    font-weight: 600; 
    line-height: 1.5; 
    min-height: 80px; 
    margin-bottom: 25px; 
}

.ipucu-mesaji { 
    margin-top: 20px; 
    padding: 12px; 
    background-color: #e3f2fd; 
    border-left: 5px solid var(--info-color); 
    color: var(--info-color); 
    border-radius: 5px; 
    font-size: 1em; 
    font-weight: 600; 
    text-align: center; 
}

/* === YENİ EKLENDİ (KELİME BULMACA BUTONU) === */
.oyun-modu-buton.wow {
    background-color: #4a148c; /* Koyu Mor */
    border-color: #311b92;
}

/* === LİDERLİK TABLOSU SEKMELERİ (HATA DÜZELTMESİ) === */
.leaderboard-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.tab-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: var(--dark-text-color);
    opacity: 0.7;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-link:hover {
    background-color: #f8f9fa;
    opacity: 1;
}
.dark .tab-link {
    color: #e5e7eb;
}
.dark .tab-link:hover {
    background-color: #374151;
    opacity: 1;
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    opacity: 1;
}
.dark .tab-link.active {
    color: #14b8a6;
    border-bottom-color: #14b8a6;
}

/* İÇERİK GİZLEME/GÖSTERME KISMI */
.tab-content {
    display: none; /* Aktif olmayan tüm içerikleri gizle */
}

.tab-content.active {
    display: block; /* Sadece 'active' sınıfına sahip olanı göster */
}
/* === ÖDÜL ÇARKI STİLLERİ === */
.odul-carki-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.odul-carki-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}
.dark .odul-carki-content {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -moz-backdrop-filter: blur(12px);
}

.odul-carki-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.odul-carki-close:hover {
    background: white;
    color: #333;
    transform: scale(1.1);
}

.odul-carki-header {
    background: linear-gradient(135deg, #4ecdc4, #44a3d5);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.odul-carki-header i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.odul-carki-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.odul-carki-body {
    padding: 40px 20px 30px;
    text-align: center;
}

/* Çark Konteyneri */
.carki-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 30px;
}

/* Ok İşareti (Üstte Sabit) */
.carki-ok {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ff3b3b;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.carki-ok::after {
    content: '';
    position: absolute;
    top: -35px;
    left: -5px;
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
}

/* Çark (Dönen Kısım) */
.odul-carki {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    background: white;
    box-shadow: 0 0 0 12px #fff,
                0 0 0 15px #e0e0e0,
                0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

.odul-carki.ceviriliyor {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Çark Dilimleri */
.carki-dilim {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: center center;
}

.carki-dilim-icerik {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Yazı Container */
.carki-yazi {
    position: absolute;
    left: 50%;
    top: 28%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7),
                 0 0 3px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    max-width: 95px;
    line-height: 1.15;
    padding: 2px 8px;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .carki-yazi {
        font-size: 0.75rem;
        max-width: 75px;
        top: 26%;
    }
}

/* Yedek renkler - eğer veritabanında renk yoksa */
.carki-dilim:nth-child(1) .carki-dilim-icerik:not([style*="background"]) { background: #FF1744; }
.carki-dilim:nth-child(2) .carki-dilim-icerik:not([style*="background"]) { background: #FF9100; }
.carki-dilim:nth-child(3) .carki-dilim-icerik:not([style*="background"]) { background: #FFD600; }
.carki-dilim:nth-child(4) .carki-dilim-icerik:not([style*="background"]) { background: #00E676; }
.carki-dilim:nth-child(5) .carki-dilim-icerik:not([style*="background"]) { background: #00E5FF; }
.carki-dilim:nth-child(6) .carki-dilim-icerik:not([style*="background"]) { background: #2979FF; }
.carki-dilim:nth-child(7) .carki-dilim-icerik:not([style*="background"]) { background: #D500F9; }
.carki-dilim:nth-child(8) .carki-dilim-icerik:not([style*="background"]) { background: #FF1744; }

/* Merkez Buton */
.carki-merkez {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff, #f5f5f5);
    border-radius: 50%;
    box-shadow: 0 0 0 6px #4ecdc4,
                0 0 0 8px white,
                0 6px 20px rgba(0, 0, 0, 0.3),
                inset 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.dark .carki-merkez {
    background: linear-gradient(135deg, #4b5563, #374151);
    box-shadow: 0 0 0 6px #14b8a6,
                0 0 0 8px #374151,
                0 6px 20px rgba(0, 0, 0, 0.5),
                inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.dark .carki-merkez i {
    color: #e5e7eb;
}

.carki-merkez::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carki-merkez i {
    position: absolute;
    font-size: 2rem;
    color: #4ecdc4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

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

/* Çark Çevirme Butonu */
.carki-cevir-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #4ecdc4, #44a3d5);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.carki-cevir-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.carki-cevir-btn:hover::before {
    width: 400px;
    height: 400px;
}

.carki-cevir-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.6);
}

.carki-cevir-btn:active {
    transform: translateY(-1px);
}

.carki-cevir-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
}

.carki-cevir-btn i,
.carki-cevir-btn span {
    position: relative;
    z-index: 1;
}

/* Ödül Kazanıldı Mesajı */
.carki-odul-kazanildi {
    text-align: center;
    padding: 20px;
}

.carki-odul-kazanildi i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.carki-odul-kazanildi h3 {
    margin: 15px 0;
    font-size: 1.3rem;
    color: #333;
}
.dark .carki-odul-kazanildi h3 {
    color: #e5e7eb;
}

.kazanilan-odul-detay {
    margin: 20px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 2px solid #4ecdc4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dark .kazanilan-odul-detay {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #14b8a6;
}
.dark .kazanilan-odul-detay div {
    color: #e5e7eb;
}

/* Çark Hakkı Yok Mesajı */
.carki-hak-yok {
    text-align: center;
    padding: 40px 20px;
}

.carki-hak-yok i {
    font-size: 5rem;
    color: #ffc107;
    margin-bottom: 20px;
    display: block;
    animation: swing 1s ease-in-out infinite;
}

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

.carki-hak-yok p {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}
.dark .carki-hak-yok p {
    color: #e5e7eb;
}
.dark .carki-odul-kazanildi h3 {
    color: #e5e7eb;
}
.dark .carki-odul-kazanildi p {
    color: #d1d5db;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .carki-container {
        width: 280px;
        height: 280px;
    }
    
    .carki-dilim-icerik {
        font-size: 0.85rem;
    }
    
    .carki-merkez {
        width: 65px;
        height: 65px;
    }
    
    .carki-merkez i {
        font-size: 1.6rem;
    }
    
    .odul-carki-content {
        max-width: 95%;
    }
}

/* Gece Modu Toggle Switch */
.dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.dark-mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 32px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.dark-mode-switch input:checked + .switch-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dark-mode-switch:hover .switch-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dark-mode-switch:hover input:checked + .switch-slider {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(20, 184, 166, 0.3);
}

.dark .switch-slider {
    background-color: #475569;
}

.dark .dark-mode-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(20, 184, 166, 0.3);
}

.dark .dark-mode-switch:hover input:checked + .switch-slider {
    background: linear-gradient(135deg, #2dd4bf 0%, #5eead4 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(20, 184, 166, 0.4);
}