/* ============================================
   Mr. Smile Fish Haven — Main Stylesheet
   ============================================ */

/* ── NAV USER NAME ── */
.nav-user-name {
    color: rgba(245,241,225,0.85);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #166816;
    --green-mid: #228B22;
    --green-light: #90EE90;
    --green-pale: #E0F2E9;
    --cream: #F5F1E1;
    --text-dark: #2F4F2F;
    --text-mid: #4a7a4a;
    --gold: #FFD700;
    --gold-dark: #FFA500;
    --white: #ffffff;
    --shadow: rgba(22, 104, 22, 0.2);
    --shadow-strong: rgba(22, 104, 22, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #F0F8F0 0%, #E0F2E9 50%, #C8E6C9 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── CONTAINER ── */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── HEADER / NAV ── */
.header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    padding: 0.8rem 0;
    box-shadow: 0 4px 20px var(--shadow-strong);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.banner img {
    height: 70px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--cream);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav ul li a {
    color: var(--cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.nav ul li a:hover,
.nav ul li a.active {
    background: rgba(255,255,255,0.2);
}

.nav-btn {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3) !important;
}

.admin-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: var(--green-dark) !important;
    font-weight: 700 !important;
    border: none !important;
}

.logout-btn {
    background: rgba(255,50,50,0.2) !important;
    border-color: rgba(255,50,50,0.4) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
    padding: 40px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    background: linear-gradient(rgba(6,136,24,0.55), rgba(0,0,0,0.55)),
                url("../images/wp12421081-aquarium-4k-wallpapers.jpg") no-repeat center/cover;
    min-height: 320px;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-strong);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-main h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-main p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-main button,
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--green-dark);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255,215,0,0.4);
    text-decoration: none;
    display: inline-block;
}

.hero-main button:hover,
.btn-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255,215,0,0.6);
}

.btn-green {
    background: linear-gradient(135deg, var(--green-mid), var(--green-light));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow);
    text-decoration: none;
    display: inline-block;
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-strong);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.box {
    background: linear-gradient(135deg, rgba(34,139,34,0.9), rgba(0,128,0,0.8));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 15px 40px var(--shadow-strong);
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.box:hover { transform: translateY(-10px); }
.box h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: white; }
.box p { color: rgba(255,255,255,0.9); }

/* ── SECTIONS ── */
.section-title {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light));
    border-radius: 2px;
}

/* ── FEATURES (Mission/Vision) ── */
.features {
    padding: 4rem 0;
}

.feature {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid rgba(144,238,144,0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 2rem;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px var(--shadow-strong);
}

.feature h1 {
    color: var(--green-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ── ABOUT ── */
.about {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-card {
    background: linear-gradient(135deg, white, #F0F8F0);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 25px 70px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

.about-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 90px rgba(34,139,34,0.3);
}

.circle {
    width: 100px;
    height: 100px;
    background: url(../images/founder.jpg) center/cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: var(--green-pale);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.about-card h3 { color: var(--green-dark); font-size: 1.5rem; margin-bottom: 0.5rem; }
.about-card p { color: var(--text-dark); margin-bottom: 1.5rem; }

/* ── FEATURED FISH CARDS ── */
.cards { padding: 40px 0; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(144,238,144,0.4);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light));
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 90px rgba(34,139,34,0.3);
}

.card .img {
    height: 220px;
    background: linear-gradient(135deg, var(--green-light), #98FB98);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 { color: var(--green-dark); font-size: 1.4rem; margin: 1.5rem 1.5rem 0.5rem; font-weight: 600; }
.card p { color: var(--text-dark); margin: 0 1.5rem 0.5rem; }
.card .card-price { color: var(--green-mid); font-weight: 700; font-size: 1.1rem; margin: 0 1.5rem 1.5rem; }

/* ── REVIEWS ── */
.reviews { padding: 40px 0; }

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.review {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px var(--shadow);
    border: 1px solid rgba(144,238,144,0.4);
    transition: all 0.3s ease;
    position: relative;
}

.review::before {
    content: '"';
    position: absolute;
    top: 1rem; right: 1.5rem;
    color: var(--green-light);
    font-size: 4rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.review:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(34,139,34,0.25);
}

.review p { color: var(--text-dark); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.review .reviewer-name { font-weight: 700; color: var(--green-dark); font-style: normal; }
.review .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ── ALERT MESSAGES ── */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--green-dark); font-weight: 600; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid rgba(144,238,144,0.5);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 4px rgba(34,139,34,0.1);
}

/* ── FOOTER ── */
footer {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: var(--cream);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px var(--shadow-strong);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p { color: rgba(245,241,225,0.8); line-height: 1.7; }

.footer-links h4,
.footer-contact h4,
.footer-app h4 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--gold); }

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { color: rgba(245,241,225,0.8); text-decoration: none; transition: color 0.2s; }
.footer-links ul li a:hover { color: var(--cream); }

.social-icons { display: flex; flex-direction: column; gap: 0.8rem; }
.social-icons a { color: rgba(245,241,225,0.85); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 0.6rem; }
.social-icons a:hover { color: var(--gold); }

.footer-app p { color: rgba(245,241,225,0.8); line-height: 1.6; font-size: 0.88rem; }
.footer-app button { font-family: inherit; }
.footer-app button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-app button[hidden] { display: none !important; }
.footer-app #pwa-install-hint i { color: var(--gold); }
.footer-app #pwa-install-hint strong { color: var(--cream); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(245,241,225,0.7);
    font-size: 0.95rem;
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.pt-4 { padding-top: 4rem; }
.pb-4 { padding-bottom: 4rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--green-dark);
        border-radius: 0 0 15px 15px;
        flex-direction: column;
        width: 220px;
        padding: 1rem;
        gap: 0.3rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nav ul.open { display: flex; }
    .nav ul li a { padding: 0.7rem 1rem; border-radius: 10px; }

    .hero-main { padding: 2rem; min-height: 260px; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .story-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
}