/* Tampa Bay Spearfishing - Ocean Theme Styles */

:root {
    --deep-ocean: #0A4D68;
    --aqua: #05BFDB;
    --seafoam: #088395;
    --light-aqua: #00FFCA;
    --white: #FFFFFF;
    --light-gray: #F0F4F8;
    --dark-gray: #2D3E50;
    --success-green: #10B981;
    --warning-yellow: #F59E0B;
    --danger-red: #EF4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--white);
}

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

/* Navigation */
.navbar {
    background: var(--deep-ocean);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--light-aqua);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-hero {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--aqua);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--light-aqua);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 191, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--aqua);
    border: 2px solid var(--aqua);
}

.btn-secondary:hover {
    background: var(--aqua);
    color: var(--white);
}

.btn-hero {
    background: var(--light-aqua);
    color: var(--deep-ocean);
    font-size: 18px;
    padding: 16px 48px;
}

.btn-hero:hover {
    background: var(--aqua);
    color: var(--white);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--seafoam) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 24px;
}

.pricing-note {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 14px;
}

/* Current Conditions */
.current-conditions {
    padding: 60px 0;
    background: var(--light-gray);
}

.current-conditions h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--deep-ocean);
}

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

.condition-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.condition-card:hover {
    transform: translateY(-4px);
}

.condition-card.good {
    background: linear-gradient(135deg, var(--success-green), var(--seafoam));
    color: var(--white);
}

.condition-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.condition-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.condition-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.current-conditions .btn-secondary {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--deep-ocean);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--aqua);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--deep-ocean);
}

/* Contest Categories */
.contest-categories {
    background: var(--light-gray);
}

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

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 3px solid var(--aqua);
    transition: all 0.3s;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(5, 191, 219, 0.3);
}

.category-card h3 {
    color: var(--deep-ocean);
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--aqua);
}

.feature-card h3 {
    color: var(--deep-ocean);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Pricing */
.pricing {
    background: var(--light-gray);
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--deep-ocean);
    margin-bottom: 2rem;
}

.price-amount span {
    font-size: 1.5rem;
    color: var(--dark-gray);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 1.1rem;
}

.pricing-trial {
    margin-top: 1rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--seafoam) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--deep-ocean);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--light-aqua);
}

.footer-section a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Contest Page Styles */
.contest-header {
    background: linear-gradient(135deg, var(--deep-ocean) 0%, var(--seafoam) 100%);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab.active {
    background: var(--aqua);
    color: var(--white);
}

.tab:hover {
    transform: translateY(-2px);
}

.leaderboard {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.leaderboard-header {
    background: var(--deep-ocean);
    color: var(--white);
    padding: 1rem;
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px;
    gap: 1rem;
    font-weight: 600;
}

.leaderboard-row {
    padding: 1rem;
    display: grid;
    grid-template-columns: 60px 1fr 100px 120px;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.3s;
}

.leaderboard-row:hover {
    background: var(--light-gray);
}

.rank {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-ocean);
}

.rank.first { color: #FFD700; }
.rank.second { color: #C0C0C0; }
.rank.third { color: #CD7F32; }

.entry-photo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.upload-section {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-ocean);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--aqua);
}

.photo-preview {
    margin-top: 1rem;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    border-radius: 12px;
    border: 4px solid var(--deep-ocean);
}

/* Weather Page Styles */
.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.weather-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.weather-card h3 {
    color: var(--deep-ocean);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forecast-day {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forecast-day:last-child {
    border-bottom: none;
}

.tide-time {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* Auth Page Styles */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.auth-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 100%;
}

.auth-box h2 {
    color: var(--deep-ocean);
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form button {
    width: 100%;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-toggle a {
    color: var(--aqua);
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        height: 60px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 80px;
        font-size: 0.9rem;
    }
    
    .leaderboard-header span:last-child,
    .leaderboard-row span:last-child {
        display: none;
    }

    .contest-header {
        padding: 30px 0;
    }

    .footer-logo {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        height: 50px;
    }
    
    .btn-hero {
        font-size: 16px;
        padding: 12px 32px;
    }
    
    .price-amount {
        font-size: 3rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .nav-links .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}