/* Home Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

/* Hero Title with Radar Icon */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Radar Icon Styles */
.radar-icon {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ff3333;
    border-radius: 50%;
    z-index: 10;
    animation: heartbeat 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-dot span {
    position: absolute;
    font-size: 9px;
    font-weight: bold;
    color: white;
    letter-spacing: 0.5px;
}

.text-canli {
    animation: fadeInOut 4s ease-in-out infinite;
}

.text-live {
    animation: fadeInOut 4s ease-in-out infinite;
    animation-delay: 2s;
    opacity: 0;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #ff3333;
    border-radius: 50%;
    opacity: 0;
    animation: radarWave 3s ease-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 1s;
}

.wave:nth-child(3) {
    animation-delay: 2s;
}

/* Radar Animations */
@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.15);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes radarWave {
    0% {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

@keyframes fadeInOut {
    0%, 45% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.auth-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.auth-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.auth-btn-google {
    background: white;
    color: #333;
}

.auth-btn-facebook {
    background: #1877f2;
    color: white;
}

.auth-btn-email {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.forgot-password {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.forgot-password a {
    color: white;
    text-decoration: underline;
}

/* Game Modes */
.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.game-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.game-card h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 15px;
}

.game-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.game-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: auto;
}

/* Tournament Bracket Visual */
.tournament-visual {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bracket-flow {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.bracket-stage {
    text-align: center;
}

.bracket-stage-number {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
}

.bracket-arrow {
    font-size: 24px;
    color: #667eea;
}

/* Mode Colors */
.btn-1v1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-battle {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

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

.btn-custom {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Login Modal */
.login-overlay {
    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: 1000;
    align-items: center;
    justify-content: center;
}

.login-modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

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

.login-modal h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.login-modal p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-title {
        flex-direction: column;
        gap: 15px;
    }
    
    .radar-icon {
        width: 60px;
        height: 60px;
    }
    
    .center-dot {
        width: 30px;
        height: 30px;
    }
    
    .center-dot span {
        font-size: 7px;
    }
    
    .wave {
        width: 30px;
        height: 30px;
    }
    
    @keyframes radarWave {
        0% {
            width: 30px;
            height: 30px;
            opacity: 1;
        }
        100% {
            width: 90px;
            height: 90px;
            opacity: 0;
        }
    }
    
    .game-modes {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .bracket-flow {
        flex-direction: column;
        gap: 15px;
    }
    
    .bracket-arrow {
        transform: rotate(90deg);
    }
}