/* Shared Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 2;
    display: flex;
    align-items: flex-start; /* Align to top instead of center */
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 50px; /* Space for header - moved up from center */
}

.hero-content {
    max-width: 700px;
    padding: 50px 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    color: #ffffff;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.hero-btn {
    padding: 15px 25px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-btn.primary {
    background: rgba(107, 115, 255, 0.8);
    border-color: rgba(107, 115, 255, 0.9);
}

.hero-btn.primary:hover {
    background: rgba(107, 115, 255, 1);
    border-color: rgba(107, 115, 255, 1);
}

/* Form Section Styles (for startgame.html and find.html) */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-input {
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* Custom select dropdown styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 50px;
}

.name-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Mobile Stats (for index.html) */
.mobile-stats {
    display: none;
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.mobile-stat {
    text-align: center;
}

.mobile-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.mobile-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-content {
        margin: 20px;
        padding: 30px 25px;
        max-width: calc(100% - 40px);
    }
    
    .hero-title { 
        font-size: 2.2rem; 
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    .hero-buttons { 
        grid-template-columns: 1fr; 
        gap: 12px;
        margin-top: 25px;
    }
    
    .hero-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .mobile-stats { 
        display: grid; 
        margin-top: 20px;
        padding: 15px;
        gap: 15px;
    }
    
    .mobile-stat-number {
        font-size: 1.6rem;
    }
    
    .mobile-stat-label {
        font-size: 0.8rem;
    }
    
    /* Form specific mobile styles */
    .name-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        gap: 15px;
    }
    
    /* Adjust hero-content max-width for forms */
    .form-section .hero-content {
        max-width: 600px;
    }
}