* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #87ceeb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Kar Efekti */
.snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1.5em;
    animation: fall linear infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
    will-change: transform;
}

.snowflake:nth-child(odd) {
    font-size: 2em;
    animation-duration: 8s;
}

.snowflake:nth-child(even) {
    font-size: 1.2em;
    animation-duration: 12s;
}

@keyframes fall {
    0% { 
        transform: translateY(-100vh) rotate(0deg) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(100vh) rotate(360deg) translateX(100px);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    will-change: transform;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.2rem;
    animation: santaBounce 2s ease-in-out infinite;
}

@keyframes santaBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.logo-text {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.home-btn,
.back-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    min-width: 140px;
    width: 140px;
    text-align: center;
}

.home-btn:hover,
.back-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.leaderboard-btn {
    background: #f4c430;
    border: none;
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
    min-width: 120px;
    width: 120px;
    text-align: center;
}

.leaderboard-btn:hover {
    background: #f5d659;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

.login-btn {
    background: #e0e0e0;
    border: none;
    color: #1e3c72;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(224, 224, 224, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    min-width: 140px;
    width: 140px;
    text-align: center;
}

.login-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* User Profile Menu */
.user-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e74c3c;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    max-width: 180px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.user-email {
    font-size: 12px;
    color: #7f8c8d;
}

.user-menu-items {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    background: rgba(231, 76, 60, 0.1);
    padding-left: 25px;
}

.menu-icon {
    font-size: 20px;
}

.notification-badge {
    position: absolute;
    right: 20px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.menu-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff6b6b;
}

.modal-content h2 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.social-login-buttons > div {
    width: 100%;
    display: flex;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.social-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.google-btn {
    background: linear-gradient(135deg, #a52a2a, #8b0000);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(165, 42, 42, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 0 0 20px rgba(255,255,255,0.3); }
    to { text-shadow: 3px 3px 6px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.6); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f0f8ff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 2px solid white;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.cta-button:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 53, 69, 0.5);
}

/* Mission Section */
.mission-section {
    background: transparent;
    padding: 6rem 0 4rem 0;
    position: relative;
    z-index: 10;
    margin-top: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission-section h2 {
    text-align: center;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    will-change: transform;
}

.mission-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mission-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.mission-card p {
    color: #f0f8ff;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: transparent;
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

/* Responsive - Mobile App Style */
@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Compact Navbar */
    .navbar {
        padding: 0.4rem 0;
        background: rgba(255, 255, 255, 0.15);
    }
    
    .nav-container {
        padding: 0 0.8rem;
        gap: 0.5rem;
    }
    
    .logo {
        gap: 0.3rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-right {
        gap: 0.4rem;
    }
    
    .leaderboard-btn,
    .login-btn,
    .home-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
        min-width: auto;
        border-radius: 20px;
    }
    
    .login-btn::before {
        font-size: 1rem;
        left: 6px;
    }
    
    .language-switcher {
        display: none;
    }
    
    /* Compact Score Display */
    .score-display {
        top: 50px;
        right: 5px;
        padding: 6px 10px;
        min-width: 60px;
        border-radius: 12px;
    }
    
    .score-display .score-value {
        font-size: 16px;
    }
    
    .score-display .score-label {
        font-size: 9px;
        margin-top: 2px;
    }
    
    .score-display .streak-container {
        margin-top: 5px;
        padding-top: 5px;
        gap: 5px;
    }
    
    .score-display .streak-icon {
        font-size: 12px;
    }
    
    .score-display .streak-count {
        font-size: 12px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.9rem 2.5rem;
        font-size: 1.1rem;
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.5);
        border-radius: 40px;
    }
    
    /* Mission Cards - Centered & Touch Friendly */
    .mission-section {
        padding: 3rem 0 2rem 0;
    }
    
    .mission-section h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .mission-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .mission-card {
        padding: 1.8rem 1.5rem;
        border-radius: 25px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.25);
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.25);
    }
    
    .mission-card:active {
        transform: scale(0.98);
    }
    
    .card-icon {
        font-size: 4rem;
        margin-bottom: 1.2rem;
    }
    
    .mission-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .mission-card p {
        font-size: 0.95rem;
    }
    
    /* Gift Box - Larger Touch Target */
    .gift-box {
        font-size: 80px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }
    
    .gift-box:active {
        transform: scale(1.1);
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        width: 92%;
        border-radius: 25px;
    }
    
    .user-menu {
        right: 0;
        min-width: 250px;
        border-radius: 20px;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.3rem 0;
    }
    
    .nav-container {
        padding: 0 0.6rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        font-size: 1.8rem;
    }
    
    .leaderboard-btn,
    .login-btn,
    .home-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .score-display {
        top: 45px;
        right: 4px;
        padding: 5px 8px;
        min-width: 50px;
    }
    
    .score-display .score-value {
        font-size: 14px;
    }
    
    .score-display .score-label {
        font-size: 8px;
    }
    
    .score-display .streak-icon {
        font-size: 10px;
    }
    
    .score-display .streak-count {
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .mission-section h2 {
        font-size: 1.8rem;
    }
    
    .mission-cards {
        max-width: 100%;
    }
    
    .card-icon {
        font-size: 3.5rem;
    }
}

/* Hediye Paketi Oyunu */
.gift-box {
    position: fixed;
    font-size: 70px;
    cursor: pointer;
    z-index: 999;
    animation: giftBounce 1s ease-in-out infinite;
    transition: transform 0.2s;
}

.gift-box:hover {
    transform: scale(1.2);
}

@keyframes giftBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes giftCollect {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(2) rotate(360deg); opacity: 0; }
}

.score-display {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.score-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.score-display .score-value {
    font-size: 32px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.score-display .score-label {
    font-size: 14px;
    opacity: 0.9;
    color: white;
    margin-top: 5px;
}

.score-display .streak-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.score-display .streak-icon {
    font-size: 20px;
    animation: flameFlicker 1s infinite;
}

.score-display .streak-count {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

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

.score-display .plus-points {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: plusPointsFloat 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes plusPointsFloat {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px);
    }
}

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

.gift-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
    padding: 25px 50px;
    border-radius: 20px;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 15px 50px rgba(46, 204, 113, 0.3);
    z-index: 2001;
    animation: notifPop 0.5s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes notifPop {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
