@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #00a6b4;
    --primary-dark: #007887;
    --secondary: #ff7a59;
    --bg: #eefcff;
    --text: #12343b;
    --muted: #6b7c85;
    --white: #ffffff;
    --border: #d8eef2;
    --danger: #dc2626;
    --success: #15803d;
    --shadow: 0 20px 60px rgba(0, 80, 100, 0.15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text);
    font-family: "Geologica", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #e8fbff 0%, #ffffff 45%, #fff7ef 100%);
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

main {
    flex: 1 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 80, 100, 0.06);
}

.site-header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    padding: 0.55rem 0;
}

.site-logo,
.site-footer-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: clamp(190px, 25vw, 320px);
    height: auto;
    max-height: 72px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.65rem, 2.4vw, 1.5rem);
    color: var(--muted);
    font-weight: 800;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 24px rgba(0, 80, 100, 0.08);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
    margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav a,
.site-footer-nav a {
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-footer-nav a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.site-footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(6, 25, 46, 0.96), rgba(0, 81, 102, 0.94));
    color: white;
    margin-top: auto;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(1rem, 4vw, 2rem);
    padding: 28px 0;
}

.site-footer-logo img {
    width: clamp(180px, 22vw, 280px);
    height: auto;
    max-height: 68px;
    object-fit: contain;
}

.site-footer-copy p {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.86);
}

.site-footer-copy small {
    color: rgba(255, 255, 255, 0.62);
}

.site-footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    flex-wrap: wrap;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.lang-switcher a.active {
    color: var(--primary-dark);
}

.auth-card .lang-switcher {
    justify-content: center;
    margin: 1rem 0;
}

.hero {
    padding: 72px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 8px 14px;
    color: var(--primary-dark);
    background: #dff8fb;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: 0;
}

.panel h1,
.admin-panel h1,
.auth-card h1,
.map-toolbar h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.08;
}

h2 {
    margin: 0 0 0.45rem;
}

p {
    line-height: 1.6;
}

.hero-content p {
    max-width: 620px;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions,
.actions,
.filters,
.admin-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 32px;
}

.btn,
.button,
button {
    border: 0;
    cursor: pointer;
    border-radius: 16px;
    padding: 15px 22px;
    color: var(--text);
    background: #e0f2fe;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary,
.button.primary,
button.primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 30px rgba(0, 166, 180, 0.28);
}

.btn-secondary,
.button.secondary {
    color: var(--primary-dark);
    background: white;
    border: 1px solid var(--border);
}

.button.ghost {
    background: transparent;
    outline: 2px solid rgba(0, 120, 135, 0.18);
}

.full {
    width: 100%;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.landing-report-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 122, 89, 0.15);
}

.photo-upload {
    min-height: 180px;
    border: 2px dashed #b7e5eb;
    border-radius: 22px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--muted);
    margin-bottom: 20px;
    background: #f7fdff;
}

.photo-upload span {
    font-size: 38px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px;
}

.location-btn {
    width: 100%;
    border: 1px solid var(--border);
    background: white;
    border-radius: 16px;
    padding: 14px;
}

small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.stats {
    padding: 0 0 72px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 80, 100, 0.08);
}

.stat-box strong {
    display: block;
    color: var(--primary-dark);
    font-size: 30px;
}

.stat-box span {
    color: var(--muted);
    font-weight: 700;
}

.feature-grid,
.panel,
.admin-panel {
    width: min(1100px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-grid article,
.auth-card,
.panel,
.admin-panel .report-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.feature-grid article,
.auth-card,
.panel {
    padding: clamp(1.2rem, 4vw, 2rem);
}

.page {
    padding-bottom: 2rem;
}

.auth-card {
    width: min(440px, calc(100% - 2rem));
    margin: 8vh auto;
}

.auth-card h1 {
    text-align: center;
}

.google-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #1f2937;
    background: white;
    border: 1px solid #dbe7eb;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 80, 100, 0.08);
    font-weight: 800;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 80, 100, 0.12);
}

.google-mark {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    color: #4285f4;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 50%;
    font-weight: 900;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-weight: 800;
    margin: 0 0 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.auth-switch-card {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding: 1rem;
    color: var(--text);
    background: linear-gradient(135deg, #f7fdff, #ffffff);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 80, 100, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-switch-card span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-switch-card strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.auth-switch-card:hover,
.auth-switch-card:focus-visible {
    border-color: rgba(0, 166, 180, 0.42);
    box-shadow: 0 16px 36px rgba(0, 120, 135, 0.14);
    transform: translateY(-1px);
}

.stack {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    color: var(--text);
    background: white;
    font: inherit;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.muted {
    color: var(--muted);
}

.alert,
.gps-card {
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #eff6ff;
    color: var(--primary-dark);
    font-weight: 700;
}

.alert.error,
.gps-card.error {
    background: #fef2f2;
    color: var(--danger);
}

.alert.success,
.gps-card.success {
    background: #f0fdf4;
    color: var(--success);
}

.map-page {
    min-height: 100vh;
}

.map-layout {
    min-height: 620px;
    height: calc(100vh - 89px);
    display: grid;
    grid-template-rows: auto 1fr;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2rem);
    background: rgba(236, 254, 255, 0.82);
}

.filters button {
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
}

.filters button.active {
    color: white;
    background: var(--primary-dark);
}

#map {
    width: 100%;
    min-height: 420px;
}

.jelly-marker span {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(18, 52, 59, 0.28);
}

.popup-card {
    width: 220px;
}

.popup-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.65rem;
}

.report-list {
    display: grid;
    gap: 1rem;
}

.admin-panel .report-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 1rem;
}

.admin-panel .report-card > img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.report-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
}

.status {
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: white;
    background: #6b7280;
    font-weight: 800;
}

.status.approved {
    background: var(--success);
}

.status.rejected {
    background: var(--danger);
}

.status.pending {
    background: #f97316;
}

.admin-actions {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fdff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 80, 100, 0.07);
}

.admin-actions + h2 {
    margin-top: 0.25rem;
}

.admin-actions strong {
    width: 100%;
    color: var(--text);
    font-size: 0.95rem;
}

.admin-actions button {
    min-width: 120px;
}

.admin-actions .approve {
    color: white;
    background: var(--success);
}

.admin-actions .reject {
    color: white;
    background: #f97316;
}

.admin-actions .danger {
    color: white;
    background: var(--danger);
}

@media (max-width: 820px) {
    .site-header-inner {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.65rem 0;
    }

    .site-logo img {
        width: min(240px, 64vw);
        max-height: 62px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .site-nav {
        grid-column: 1 / -1;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        border: 0;
        border-radius: 18px;
        background: white;
        box-shadow: none;
        font-size: 1rem;
        transition: max-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .site-nav.is-open {
        max-height: 420px;
        padding: 0.5rem;
        border: 1px solid var(--border);
        box-shadow: 0 16px 40px rgba(0, 80, 100, 0.12);
    }

    .site-nav a,
    .site-nav .lang-switcher {
        padding: 0.85rem 1rem;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: #eefcff;
    }

    .site-nav .lang-switcher {
        justify-content: center;
        border-top: 1px solid var(--border);
    }

    .site-footer {
        margin-top: 36px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer-nav {
        justify-content: center;
    }

    .hero {
        padding: 44px 0;
    }

    .hero-grid,
    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .map-toolbar,
    .admin-panel .report-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .map-layout {
        height: auto;
        min-height: calc(100vh - 140px);
    }

    #map {
        height: 70vh;
    }
}
