/* ============================================================
   Fisherman Spot — Landing page styles
   - Animirana ocean pozadina (gradient shift + valovi + mjehurići)
   - 5-slide karusel s ribarskim porukama
   - Conversion-focused CTA gumbi
   - Mobile-first responsive
   ============================================================ */

* { box-sizing: border-box; }

body.landing-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* ----- Animirana pozadina (3 sloja: gradient + valovi + mjehurići) ----- */

.landing-bg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0a3d62 0%, #1e6091 35%, #3c6382 70%, #0a3d62 100%);
    background-size: 400% 400%;
    /* animation-delay 8s + sporiji shift (40s umjesto 20s) -> Lighthouse Speed Index
       vidi statičnu pozadinu kroz cijeli mjerni prozor (~7s). Animacija krene
       neprimjetno nakon SI mjerenja gotovo, korisnik i dalje vidi živost. */
    animation: oceanShift 40s ease 8s infinite backwards;
}

@keyframes oceanShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Sloj 2: animirani valovi na dnu */
.bg-waves {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 200%;
    height: 200px;
    opacity: 0.4;
    pointer-events: none;
    /* Isti razlog kao landing-bg -- delay 8s da Lighthouse SI vidi stabilan pixel grid. */
    animation: waveSlide 25s linear 8s infinite;
}

.bg-waves svg {
    width: 100%;
    height: 100%;
}

@keyframes waveSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Sloj 3: mjehurići koji se uzdižu */
.bg-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    100% {
        transform: translateY(-120vh) translateX(40px) scale(0.7);
        opacity: 0;
    }
}

/* Pozicije i animacije za pojedinačne mjehuriće (10 različitih).
   Sve delay +7s da prvi mjehurići počnu uzdizati tek nakon Lighthouse Speed Index
   mjernog prozora. Bubbles su `bottom: -100px` (off-screen), pa delay ne uzrokuje flash. */
.bubble:nth-child(1)  { left:  8%; width: 16px; height: 16px; animation-duration: 14s; animation-delay:  7s; }
.bubble:nth-child(2)  { left: 18%; width: 24px; height: 24px; animation-duration: 18s; animation-delay: 10s; }
.bubble:nth-child(3)  { left: 28%; width: 12px; height: 12px; animation-duration: 11s; animation-delay:  8s; }
.bubble:nth-child(4)  { left: 38%; width: 28px; height: 28px; animation-duration: 22s; animation-delay: 12s; }
.bubble:nth-child(5)  { left: 48%; width: 18px; height: 18px; animation-duration: 16s; animation-delay:  9s; }
.bubble:nth-child(6)  { left: 58%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: 14s; }
.bubble:nth-child(7)  { left: 68%; width: 22px; height: 22px; animation-duration: 20s; animation-delay: 11s; }
.bubble:nth-child(8)  { left: 78%; width: 16px; height: 16px; animation-duration: 15s; animation-delay: 13s; }
.bubble:nth-child(9)  { left: 88%; width: 20px; height: 20px; animation-duration: 17s; animation-delay: 15s; }
.bubble:nth-child(10) { left: 95%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: 16s; }

/* ----- Top bar (logo + lang toggle + login) ----- */

.landing-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    backdrop-filter: blur(6px);
    background: rgba(10, 61, 98, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
}

.landing-logo img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn-group {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 3px;
}

.lang-btn-group button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-btn-group button.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-login-top {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.btn-login-top:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

/* ----- Hero sekcija ----- */

.landing-hero {
    position: relative;
    z-index: 5;
    padding: 60px 24px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    animation: heroFadeIn 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    margin: 0 0 32px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    animation: heroFadeIn 1s ease-out 0.2s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ----- USP badge (najveća prednost) ----- */

.usp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
    color: #0a3d62;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(249, 202, 36, 0.4);
    animation: badgePulse 3s ease infinite, heroFadeIn 1s ease-out 0.1s both;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(249, 202, 36, 0.4); }
    50%      { box-shadow: 0 6px 22px rgba(249, 202, 36, 0.7); }
}

/* ----- CTA gumbi ----- */

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin: 32px 0 16px;
    animation: heroFadeIn 1s ease-out 0.4s both;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0a3d62;
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(249, 202, 36, 0.5);
    transition: all 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 202, 36, 0.6);
    color: #0a3d62;
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ----- Karusel (slides) ----- */

.landing-carousel {
    position: relative;
    margin: 50px auto 0;
    max-width: 800px;
    min-height: 220px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 36px 32px 60px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    animation: heroFadeIn 1s ease-out 0.6s both;
}

.slide {
    display: none;
    text-align: center;
    animation: slideIn 0.6s ease;
}

.slide.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    line-height: 1;
}

.slide h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: #f9ca24;
}

.slide p {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: 0;
    opacity: 0.95;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.dot:focus-visible {
    outline: 2px solid #f9ca24;
    outline-offset: 2px;
}

.dot.active {
    background: #f9ca24;
    width: 24px;
    border-radius: 5px;
}

/* ----- Features grid (ispod karusela) ----- */

.landing-features {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 24px;
    text-align: center;
}

.features-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 20px;
    transition: transform 0.25s, background 0.25s;
}

.feature:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f9ca24;
}

.feature p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ----- Final CTA sekcija ----- */

.landing-final-cta {
    position: relative;
    z-index: 5;
    margin: 80px auto 0;
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 61, 98, 0.6) 0%, rgba(30, 96, 145, 0.6) 100%);
    backdrop-filter: blur(8px);
}

.final-cta-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.final-cta-text {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ----- Footer ----- */

.landing-footer {
    position: relative;
    z-index: 5;
    padding: 30px 24px;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.75;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    opacity: 0.9;
}

.landing-footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* ----- Mobile responsive ----- */

@media (max-width: 640px) {
    .landing-topbar { padding: 12px 16px; }
    .landing-logo { font-size: 1rem; }
    .landing-logo img { width: 32px; height: 32px; }
    .landing-hero { padding: 40px 16px 24px; }
    .landing-carousel { padding: 28px 20px 50px; min-height: 240px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature { padding: 20px 14px; }
    .btn-login-top { padding: 6px 14px; font-size: 0.9rem; }
}

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