/* LLWS Bat Tracker - Clean & Simple */

:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --success: #22c55e;
    --error: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
}

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

/* Header */
header {
    background: white;
    border-bottom: 2px solid var(--primary);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo-section h1 {
    font-size: 2rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.tagline {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Auth Setup */
.auth-setup {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-setup h2 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.auth-setup p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.auth-benefits {
    margin-top: 3rem;
    text-align: left;
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
}

.auth-benefits h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.auth-benefits ul {
    list-style: none;
}

.auth-benefits li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

/* Main Content */
.main-content {
    display: grid;
    gap: 2rem;
}

/* Spotter Info Bar */
.spotter-info {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.spotter-info span {
    color: var(--gray-600);
}

.spotter-info strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Forms */
.submission-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.submission-card h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

select, input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
    background: white;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Confidence Selector */
.confidence-selector {
    display: flex;
    gap: 0.5rem;
}

.confidence-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.confidence-btn:hover {
    border-color: var(--primary);
}

.confidence-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Buttons */
button, .submit-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn {
    background: var(--primary);
    color: white;
    width: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.submit-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.small-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.small-btn:hover {
    background: var(--gray-200);
}

/* Messages */
.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
}

.message.success {
    background: var(--success);
    color: white;
}

.message.error {
    background: var(--error);
    color: white;
}

/* Sightings Section */
.sightings-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sightings-section h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tabs button {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    color: var(--gray-700);
}

.filter-tabs button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sightings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.sighting-card {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 1rem;
    background: var(--gray-50);
}

.sighting-card.verified {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.sighting-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.team {
    font-weight: 600;
    color: var(--gray-900);
}

.time {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.sighting-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.player {
    font-weight: 500;
}

.brand {
    color: var(--primary);
}

.bat-year-inline {
    font-size: 0.85em;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.sighting-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.spotter {
    color: var(--gray-600);
}

.confidence-dots {
    display: flex;
    gap: 0.25rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
}

.dot.filled {
    background: var(--primary);
}

/* Popular Bats Gallery */
.popular-bats-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.popular-bats-section h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.bat-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.bat-card {
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
}

.bat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bat-image-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.bat-icon {
    width: 60px;
    height: 60px;
    color: var(--gray-400);
}

.bat-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.bat-year {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bat-description {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Leaderboard */
.leaderboard-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.leaderboard-section h2 {
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--gray-600);
    width: 40px;
}

.name {
    flex: 1;
    font-weight: 500;
}

.score {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-bar {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .spotter-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}