﻿@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700;800&family=Roboto+Slab:wght@600;700&display=swap");

body.page-id-18 {
    background:
        radial-gradient(circle at 12% 10%, rgba(142, 180, 100, 0.2), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(80, 130, 148, 0.2), transparent 34%),
        linear-gradient(180deg, #d8e2df 0%, #e7ece8 42%, #f1f3ef 100%);
}

body.page-id-18 .wp-site-blocks {
    background:
        repeating-linear-gradient(
            160deg,
            rgba(255, 255, 255, 0.22) 0,
            rgba(255, 255, 255, 0.22) 2px,
            transparent 2px,
            transparent 26px
        );
    min-height: 100vh;
}

body.page-id-18 header.wp-block-template-part {
    background: rgba(245, 249, 246, 0.82);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(83, 117, 126, 0.24);
}
body.page-id-18 main.wp-block-group.has-global-padding {
    margin-top: 28px !important;
    padding-top: 0 !important;
}

body.page-id-18 .wp-block-post-title {
    max-width: 980px !important;
    margin: 0 auto 24px !important;
    font-size: clamp(2.25rem, 4.6vw, 3.3rem);
    line-height: 1.06;
    letter-spacing: 0.2px;
}

body.page-id-18 .entry-content.wp-block-post-content {
    margin-top: 8px !important;
}

body.page-id-18 .entry-content > p:has(#spotfish-analyse) {
    margin-top: 14px;
    margin-bottom: 0;
}
#spotfish-app,
#spotfish-catch-form {
    --sf-bg-deep: #0f2f3a;
    --sf-bg-water: #1c5568;
    --sf-bg-mist: #e5efe9;
    --sf-sand: #f3eee4;
    --sf-card: #ffffff;
    --sf-border: #cad8cf;
    --sf-text-main: #152229;
    --sf-text-soft: #3f545d;
    --sf-accent: #7bbf43;
    --sf-accent-strong: #5b992d;
    --sf-highlight: #f3c060;

    max-width: 980px;
    margin: 0 auto;
    font-family: "Barlow", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--sf-text-main);
}

#spotfish-app {
    position: relative;
    margin-top: 16px;
    padding: clamp(20px, 3vw, 34px);
    border-radius: 28px;
    border: 1px solid #274f5d;
    background:
        radial-gradient(circle at 8% 10%, rgba(123, 191, 67, 0.18), transparent 24%),
        radial-gradient(circle at 90% 8%, rgba(243, 192, 96, 0.16), transparent 20%),
        linear-gradient(160deg, #0f2f3a, #17495a 54%, #236176 100%);
    box-shadow: 0 22px 44px rgba(5, 21, 28, 0.34);
}

#spotfish-app::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 30%);
}

.spotfish-hero {
    margin-bottom: 18px;
    padding: 16px 18px 14px;
    border-radius: 16px;
    background: rgba(8, 24, 31, 0.32);
    border: 1px solid rgba(147, 190, 206, 0.22);
    color: #edf8f4;
}

.spotfish-hero p {
    margin: 0;
    color: #edf8f4;
}

.spotfish-hero-kicker {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(123, 191, 67, 0.24);
    border: 1px solid rgba(173, 221, 117, 0.36);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.spotfish-hero h2 {
    margin: 9px 0 8px;
    color: #f4fff9;
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: 0.2px;
}

.spotfish-hero-lead {
    font-size: 17px;
    line-height: 1.35;
    color: #e2f2eb !important;
}

#spotfish-map {
    height: 520px;
    width: 100%;
    border: 1px solid #4b7f8f;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(8, 24, 31, 0.34);
}

/* Protect Leaflet rendering against aggressive theme-wide img rules. */
#spotfish-map .leaflet-tile {
    max-width: none !important;
}

#spotfish-map .leaflet-marker-icon,
#spotfish-map .leaflet-marker-shadow {
    width: auto !important;
    max-width: none !important;
}

#spotfish-coords {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(9, 23, 30, 0.34);
    color: #eef7f3;
    font-size: 18px !important;
    letter-spacing: 0.2px;
}

#spotfish-analyse,
#save-catch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #89ca4f, #6aaa34);
    color: #102116;
    font-family: "Barlow", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.35px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(10, 31, 12, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#spotfish-analyse:hover,
#save-catch:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 12px 22px rgba(8, 24, 10, 0.26);
}

#spotfish-analyse:active,
#save-catch:active {
    transform: translateY(0);
}

#spotfish-analyse:focus-visible,
#save-catch:focus-visible,
#spotfish-catch-form select:focus-visible,
#spotfish-catch-form input:focus-visible,
#spotfish-catch-form textarea:focus-visible {
    outline: 3px solid #f3c060;
    outline-offset: 2px;
}

#spotfish-catch-form {
    margin-top: 30px;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 26px;
    border: 1px solid #d8e5dd;
    background:
        linear-gradient(135deg, rgba(229, 239, 233, 0.68), rgba(243, 238, 228, 0.78));
    box-shadow: 0 18px 34px rgba(22, 38, 28, 0.12);
}

#spotfish-catch-form h3,
#spotfish-result h3,
#catch-stats h3 {
    margin-top: 0;
    font-family: "Roboto Slab", Georgia, serif;
    letter-spacing: 0.2px;
}

#spotfish-catch-form > p {
    color: #2e434a;
    font-size: 19px !important;
    line-height: 1.45;
}

#spotfish-catch-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #21373e;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#spotfish-catch-form select,
#spotfish-catch-form input,
#spotfish-catch-form textarea {
    width: 100%;
    margin: 0 0 14px 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #b9cec3;
    border-radius: 12px;
    background: #fdfefd;
    color: #12252d;
    font-family: "Barlow", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 17px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#spotfish-catch-form select:hover,
#spotfish-catch-form input:hover,
#spotfish-catch-form textarea:hover {
    border-color: #8faea1;
}

#spotfish-catch-form select:focus,
#spotfish-catch-form input:focus,
#spotfish-catch-form textarea:focus {
    border-color: #5a9270;
    box-shadow: 0 0 0 3px rgba(123, 191, 67, 0.2);
}

#catch-result {
    margin-top: 18px !important;
}

.spotfish-card {
    background: var(--sf-card);
    border: 1px solid var(--sf-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(17, 33, 39, 0.12);
}

.spotfish-soft-card {
    padding: 18px;
    border-radius: 16px;
    background: #f8fcf8;
    border: 1px solid #d4e2d8;
}

.spotfish-blue {
    background: #ebf4f7;
    border-color: #bfd5df;
}

.spotfish-green {
    background: #eef7ea;
    border-color: #c0dfac;
}

.spotfish-orange {
    background: #fbf2e6;
    border-color: #e7cca3;
}

.spotfish-purple {
    background: #f2edf7;
    border-color: #d2c7e6;
}

.spotfish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 16px;
}

.spotfish-community-box {
    margin-top: 26px;
    padding: 26px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 20%, rgba(123, 191, 67, 0.24), transparent 32%),
        linear-gradient(145deg, #1b4858, #275b6d 58%, #2d6e6a);
    border: 1px solid #3a7387;
    color: #edf7f3;
}

.spotfish-community-box h3,
.spotfish-community-box p {
    color: #f2fbf7 !important;
}

.spotfish-community-box strong {
    color: #cdeea6;
}

.spotfish-community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.spotfish-feature {
    min-height: 92px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(190, 228, 227, 0.22);
    background: rgba(9, 30, 38, 0.23);
    font-size: 16px;
    line-height: 1.35;
}

.spotfish-footnote {
    margin-top: 22px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(7, 27, 22, 0.32);
    border: 1px solid rgba(205, 238, 166, 0.38);
    color: #eefde6;
    text-align: center;
    font-size: 14px;
}

.spotfish-table {
    width: 100%;
    border-collapse: collapse;
}

.spotfish-table td {
    padding: 10px 0;
    border-bottom: 1px solid #e4ece7;
}

.spotfish-table tr:last-child td {
    border-bottom: none;
}

.spotfish-catch-entry {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f7fbf7;
    border: 1px solid #d7e4db;
}

#spotfish-result .spotfish-card > p:last-child {
    margin-bottom: 0;
}

#spotfish-result p,
#catch-stats,
#catch-result {
    line-height: 1.45;
}

/* Improve readability on darker analysis surfaces */
#spotfish-result .spotfish-card {
    background: #f4fbf8;
    color: #132b33;
}

#spotfish-result .spotfish-card h3,
#spotfish-result .spotfish-card h4,
#spotfish-result .spotfish-card p,
#spotfish-result .spotfish-card td {
    color: #132b33;
}

#spotfish-catch-form hr {
    margin: 30px 0 !important;
    border: none;
    border-top: 1px solid #cddad2 !important;
}

@media (max-width: 900px) {
    #spotfish-app,
    #spotfish-catch-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #spotfish-app {
        padding: 16px;
        border-radius: 22px;
    }

    #spotfish-map {
        height: 430px;
        border-radius: 16px;
    }

    #spotfish-coords {
        font-size: 16px !important;
    }

    #spotfish-analyse,
    #save-catch {
        width: 100%;
        font-size: 17px;
    }

    .spotfish-grid,
    .spotfish-community-features {
        grid-template-columns: 1fr;
    }

    #spotfish-catch-form {
        padding: 18px;
        border-radius: 20px;
    }
}


