/* PlaceZap - Professional Team Building Design */

:root {
    --teal-primary: #14B8A6;
    --teal-dark: #0D9488;
    --teal-light: #5EEAD4;
    --purple-primary: #9333EA;
    --purple-dark: #7C3AED;
    --purple-light: #A855F7;
    --gray-dark: #1F2937;
    --gray-medium: #6B7280;
    --gray-light: #F3F4F6;
    --white: #FFFFFF;
    --red: #EF4444;
    --green: #10B981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    color: var(--gray-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 1.5rem 0 0 0;
    box-shadow: var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: 2px solid var(--teal-primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-primary) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--teal-primary);
    color: var(--teal-primary);
}

.btn-outline:hover {
    background: var(--teal-primary);
    color: var(--white);
}

.btn-danger {
    background: var(--red);
    color: var(--white);
}

.btn-success {
    background: var(--green);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal-primary);
}

/* Code Input Styling */
.code-input {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    max-width: 300px;
    margin: 0 auto;
}

/* Login Section */
.login-section {
    text-align: center;
    padding: 3rem 0;
}

.login-box {
    max-width: 500px;
    margin: 2rem auto;
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 1rem 0;
}

/* Street View Container */
.streetview-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 1rem 0 0 0;
    background: var(--gray-light);
}

.guess-map-container {
    margin-top: 0;
}

.guess-map-container .map-container {
    height: 350px;
}

.map-overlay {
    position: relative;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Timer */
.timer {
    font-size: 3rem;
    font-weight: 800;
    color: var(--purple-primary);
    text-align: center;
    margin: 1rem 0;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.timer.warning {
    color: var(--red);
    animation: pulse 0.5s infinite;
}

/* Leaderboard */
.leaderboard {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--gray-light);
    border-radius: 8px;
    transition: transform 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(5px);
}

.leaderboard-item.first {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    font-weight: 700;
}

.leaderboard-item.second {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    font-weight: 700;
}

.leaderboard-item.third {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    font-weight: 700;
}

.placement {
    font-size: 1.5rem;
    font-weight: 800;
    min-width: 50px;
}

.attendee-name {
    flex: 1;
    font-size: 1.1rem;
}

.score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-primary);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--green);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--red);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--teal-primary);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--teal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Event Code Display */
.event-code-display {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--purple-primary) 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.event-code-large {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    margin: 1rem 0;
}

/* Round Indicator */
.round-indicator {
    text-align: center;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    margin: 1rem 0;
}

.round-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-primary);
}

/* Guess submitted indicator */
.guess-submitted {
    background: var(--green);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .code-input {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
    }
    
    .event-code-large {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }