.site-header {
    text-align: center;

    background: linear-gradient(
        180deg,
        #0b4f6c,
        #0e678d
    );

    color: white;

    padding: 20px 10px;
}

.logo {
    width: 350px;
    height: auto;

    display: block;
    margin: 0 auto 10px auto;
    transition: all 0.3s ease;
    animation: 
           floatLogo 4s ease-in-out infinite,
           logoFade 1.2s ease;
}

.logo:hover {
    transform: scale(1.03);
    filter:
        drop-shadow(
             0 0 12px rgba(255,255,255,0.4)
        );
}

@keyframes floatLogo {

    0% {
        transform: translate(0);
    }

    50% {
        transform: translate(-5px);
    }
   
    100% {
        transform: translate(0);
    }
}

.site-header h1 {
    margin: 0;
}

.site-header p {
    margin-top: 5px;
    opacity: 0.9;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f7fb;
    padding-top: 0;
}

/* DARK MODE */
#darkToggle {
    background: transparent;
    border: none;
    outline: none;

    font-size: 1.2rem;
    cursor: pointer;

    padding: 4px;
}

#darkToggle:focus,
#darkToggle:active {
    outline: none;
    box-shadow: none;
}

body.dark {
    background: #0f1720;
    color: #f1f5f9;
}

body.dark .site-header {
    background: #1e293b;
}

body.dark section {
    background: #1b2430;
}

body.dark nav {
    background: rgba(15,21,32,0.2);
}

body.dark table {
    background: rgba(15,24,32,0.9);
    color: white;
}

body.dark td,
body.dark th {
    border-color: #334155;
}

body.dark section {
    background: #1b2430;
    color: #f1f5f9;
}

body.dark .dropdown-content {
    background: #1e293b;
}

body.dark .dropdown-content a {
    color: #f1f5f9;
}

body.dark .fish-grid a {
    background: #334155;
    color: #f1f5f9;
}

body.dark .fish-grid a:hover {
    background: #475569;
}

html {
    scroll-behavior: smooth;
}

nav {
    position: sticky;
    top: 0;
    z-index: 9999;

    display: flex;
    justify-content: center;
    gap: 8px;

    padding: 10px;

    background: rgba(11, 79, 108, 0.95);
    backdrop-filter: blur(10px);
}

nav::before {
    left: var(--bubble-left, 0px);
    width: var(--bubble-width, 80px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 8px;
    
}

/* Mobil */
@media (max-width: 768px) {

    nav {
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;

        position: absolute;
        top: 60px;
        left: 10px;
        right: 10px;

        flex-direction: column;

        background: rgba(11, 79, 108, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 12px;

        padding: 10px;
    }

    body.dark .nav-links {
        background: rgba(24,32,44,0.95);
        backdrop-filter: blur(12px);
    }
    body.dark .nav.links {
        background: pink;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .dropdown {
        display: block;
        width: 100%;
        padding-bottom: 0;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-content {
        background: rgba(15,23,32,0.9);
        backdrop-filter: blur(12px);
        border-radius: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        box-shadow: none;
        position: static;
        width: 100%;
    }

    .dropdown-content a {
        text-align: left;
        padding-left: 30px;
}

    .dropdown-content.show {
        display: block;
    }

}

/* länkar */
nav a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;

    transition: all 0.25s ease;
}

/* active state */
nav a.active {
    background: white;
    color: #0b4f6c;
    transform: scale(1.05);
}

/* hover effekt */
nav a:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.dropdown {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
}

.dropdown-toggle span {
    margin-left: 6px;
}

.dropdown-content {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;

    background: #0b4f6c;
    border: 1px solid rgba(255,255,255,0.15);

    border-radius: 12px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);

    z-index: 10000;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 8px;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
}

section {
    max-width: 900px;
    margin: 20px auto;  /* <-- detta centrerar */
    padding: 20px;
    background: white;
    border-radius: 10px;
    scroll-margin-top: 80px;
}

#start {
    scroll-margin-top: 400px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .fish-swipe {
        overflow-x: visible;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
}

.fish-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.fish-card img {
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.fish-card img:hover {
    transform: scale(1.03);
}

.fish-card h2 {
    margin-bottom: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
}

th {
    background: #0b4f6c;
    color: white;
}

.map-wrapper {
    z-index: 1;
    position: relative;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
}

#coordsBox {
    position: absolute;
    bottom: 10px;
    left: 10px;

    background: rgba(0,0,0,0.7);
    color: white;

    padding: 6px 10px;
    border-radius: 8px;

    font-size: 12px;
    z-index: 9999;
}

.fish-grid a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    background: #0b4f6c;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
}

.fish-grid a:hover {
    background: #0e678d;
    transform: translateY(-1px);
}

/* 🔥 UI ovanpå kartan */
.fish-swipe {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;

    display: flex;
    gap: 10px;

    overflow-x: auto;
    z-index: 2000; /* SUPER VIKTIG */

    padding: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.fish-btn {
    flex: 0 0 auto;
    padding: 5px 5px;
    border-radius: 999px;

    background: #0b4f6c;
    color: white;

    font-weight: bold;
    cursor: pointer;

    min-width: 100px;
    text-align: center;
}

footer {
    text-align: center;

    padding: 20px;
    margin-top: auto;

    background: #0b4f6c;
    color: white;

    font-size: 14px;
}

body.dark footer {
    background: #1e293b;
    color: #f1f5f9;
}

