:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.2);
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="rgba(255,255,255,0.1)" opacity="0.6"><animate attributeName="opacity" values="0.6;1;0.6" dur="2s" repeatCount="indefinite"/></circle><circle cx="90" cy="30" r="1.5" fill="rgba(255,255,255,0.1)" opacity="0.8"><animate attributeName="opacity" values="0.8;0.3;0.8" dur="3s" repeatCount="indefinite"/></circle><circle cx="30" cy="70" r="0.8" fill="rgba(255,255,255,0.1)" opacity="0.5"><animate attributeName="opacity" values="0.5;0.9;0.5" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="70" cy="80" r="1.2" fill="rgba(255,255,255,0.1)" opacity="0.7"><animate attributeName="opacity" values="0.7;0.4;0.7" dur="3.5s" repeatCount="indefinite"/></circle></svg>');
    pointer-events: none;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fff 0%, #f0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.user-info {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.user-currency {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.currency-item {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite alternate;
}

.currency-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.35);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 0 20px rgba(255,255,255,0.5); }
}

.user-points:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.35);
}

.tab-navigation {
    display: flex;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-button {
    flex: 1;
    padding: 16px 8px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover::before {
    opacity: 0.05;
}

.tab-button.active {
    color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.05);
}

.tab-button.active::before {
    opacity: 0.1;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.tab-button:hover .tab-icon {
    transform: translateY(-2px);
}

.tab-button.active .tab-icon {
    transform: scale(1.1);
}

.tab-content {
    display: none;
    padding: 25px 20px;
    min-height: calc(100vh - 180px);
    animation: fadeIn 0.4s ease-out;
    overflow: visible;
}

.tab-content.active {
    display: block;
}

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

/* Yoklama Tab Styles */
.check-in-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.check-in-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.streak-counter {
    position: absolute;
    top: -15px;
    left: -15px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.4);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.date-info {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.date-info .day {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.date-info .date {
    font-size: 16px;
    opacity: 0.9;
}

.check-in-button {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.check-in-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    background: rgba(255,255,255,1);
}

/* Oyunlar Tab Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-width: 100%;
}

.game-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.game-icon {
    font-size: 40px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotateY(180deg);
}

.game-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.game-cost {
    font-size: 12px;
    background: #f1f5f9;
    border-radius: 15px;
    padding: 4px 12px;
    color: #667eea;
    font-weight: 600;
}

/* Mağaza Styles */
.store-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.3);
}

.store-balance {
    font-size: 28px;
    font-weight: 700;
    color: #ffa500;
    margin-bottom: 8px;
}

.store-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.store-item {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.store-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.item-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffa500;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 12500;
    max-width: 300px;
}

.notification {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateX(320px);
    transition: all 0.3s ease-out;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success { border-left: 4px solid #4caf50; }
.notification.error { border-left: 4px solid #f44336; }
.notification.warning { border-left: 4px solid #ff9800; }
.notification.info { border-left: 4px solid #2196f3; }

.notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.notification-message {
    font-size: 13px;
    color: #666;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.game-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.game-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-game-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.modal-game-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.modal-game-description {
    color: #666;
    margin-bottom: 20px;
}

.modal-game-cost {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cancel-button {
    background: #f5f5f5;
    color: #666;
}

.cancel-button:hover {
    background: #eee;
}

/* Achievement styles */
.achievement-item {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffa500;
    cursor: help;
    transition: all 0.3s ease;
    animation: achievementGlow 2s infinite alternate;
}

.achievement-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

@keyframes achievementGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

/* Media Queries */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        margin: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .games-grid,
    .store-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .user-currency {
        position: static;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* Kazı Kazan Oyunu Styles */
.scratch-card {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 3px solid transparent;
}

.scratch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.scratch-card.scratched {
    cursor: default;
}

.scratch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c0392b 0%, #8e44ad 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    z-index: 2;
}

.scratch-overlay.scratched {
    opacity: 0;
    pointer-events: none;
}

.scratch-prize {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    color: white;
    z-index: 1;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.scratch-prize-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.scratch-prize-name {
    font-size: 10px;
    line-height: 1.2;
}

.scratch-prize-amount {
    font-size: 11px;
    font-weight: bold;
    opacity: 0.9;
}

.scratch-win-highlight {
    animation: scratchWinPulse 2s infinite;
    border: 3px solid #ffd700;
}

@keyframes scratchWinPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

.scratch-lose-highlight {
    animation: scratchLosePulse 2s infinite;
    border: 3px solid #e74c3c;
}

@keyframes scratchLosePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.8); }
}

.scratch-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 12000;
}

.scratch-confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Seviye atlama animasyonları */
@keyframes levelUpFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes levelUpFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes levelUpBounce {
    0% {
        transform: scale(0.3) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
    }
    70% {
        transform: scale(0.95) rotate(-1deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes confettiLevelUp {
    0% {
        transform: translateY(-100vh) rotate(0deg) scale(0);
        opacity: 1;
    }
    10% {
        transform: translateY(-80vh) rotate(36deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

.scratch-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scratch-result-overlay.show {
    opacity: 1;
    visibility: visible;
}

.scratch-result-content {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.scratch-result-overlay.show .scratch-result-content {
    transform: scale(1);
}

.scratch-result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.scratch-result-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.scratch-result-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.scratch-result-rewards {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.scratch-result-rewards h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.scratch-rewards-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.scratch-reward-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.scratch-status-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    z-index: 10100;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scratch-status-bar.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive için küçük ekranlar */
@media (max-width: 480px) {
    .scratch-card {
        width: 95px;
        height: 95px;
    }
    
    .scratch-prize-icon {
        font-size: 20px;
    }
    
    .scratch-prize-name {
        font-size: 9px;
    }
    
    .scratch-prize-amount {
        font-size: 10px;
    }
    
    #scratchCards {
        max-width: 310px !important;
        gap: 8px !important;
    }
} 

/* Nedir? Modal Stilleri */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal .modal-content {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 30px;
    text-align: left;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
    overflow-y: auto;
    max-height: 80vh;
}

.modal.show .modal-content {
    transform: scale(1);
} 