/* 🐠 Planet Earth Aquarium - Design System */

:root {
    --primary: #006994;
    --primary-dark: #004d6d;
    --primary-light: #4ecdc4;
    --secondary: #ff6b35;
    --accent: #f7fff7;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --header-height: 80px;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
    --glass: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    height: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.btn-admin {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    margin-top: -var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.4), rgba(26, 26, 46, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

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

.stat-item h3 { font-size: 2rem; color: var(--primary-light); }

/* Form Elements */
.booking-section {
    padding: 8rem 0;
}

.booking-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .booking-container { grid-template-columns: 1fr; }
}

.booking-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--white); color: var(--primary); }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; display: block; }

/* Tickets */
.ticket-grid {
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.ticket-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

/* Species */
.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.species-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: 0.3s;
}

.species-card:hover { transform: translateY(-5px); }

.species-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #eee;
}

.species-info {
    padding: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Loader */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loader {
    width: 50px; height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* PWA */
.pwa-install-prompt {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    z-index: 1500;
}
