/**
 * Termini.css - Slobodni termini stranica
 * Apartmani Šimićev
 */

/* ========================================
   ANIMACIJE
   ======================================== */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes sailing {
    0% { left: -60px; }
    100% { left: calc(100% + 60px); }
}

/* ========================================
   HERO SECTION
   ======================================== */
.termini-hero {
    padding: 120px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    /* Fallback boja ako slika ne postoji */
    background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7));
    background-image: 
        linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 102, 204, 0.7)),
        url('../images/slides/slide-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
	
}

.termini-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.termini-hero::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 15, 28, 0.5) 50%, #0a0f1c 100%);
}

.termini-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.termini-intro h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #00a8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.termini-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========================================
   LEGEND
   ======================================== */
.availability-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.legend-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.legend-color.available { background: #28a745; }
.legend-color.reserved { background: #dc3545; }
.legend-color.checkout { background: #ffc107; }
.legend-color.checkin { background: #17a2b8; }

.legend-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.termini-page {
    padding: 60px 5%;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0f1c 0%, #001e3c 50%, #0a0f1c 100%);
}

.termini-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   CALENDAR
   ======================================== */
.calendar-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.apartment-calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.apartment-calendar:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
}

.apartment-title {
    font-size: 1.5rem;
    color: #00a8ff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.months-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.month-calendar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.month-header {
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 35px;
}

.calendar-day.available { background: #28a745; color: white; }
.calendar-day.reserved { background: #dc3545; color: white; }
.calendar-day.checkout { background: #ffc107; color: #000; }
.calendar-day.checkin { background: #17a2b8; color: white; }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.today { border: 2px solid #fff; font-weight: bold; }

.calendar-day:not(.empty):hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Tooltip */
.calendar-day::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.calendar-day:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Staggered animation delays */
.apartment-calendar:nth-child(1) { animation-delay: 0.1s; }
.apartment-calendar:nth-child(2) { animation-delay: 0.2s; }
.apartment-calendar:nth-child(3) { animation-delay: 0.3s; }
.apartment-calendar:nth-child(4) { animation-delay: 0.4s; }
.apartment-calendar:nth-child(5) { animation-delay: 0.5s; }

/* ========================================
   ACTION BUTTONS
   ======================================== */
.termini-actions {
    text-align: center;
    margin: 4rem 0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 15px 40px;
    background: linear-gradient(45deg, #00a8ff, #0086cc);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   LOADING
   ======================================== */
.calendar-loading {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.6);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00a8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* ========================================
   SEA HORIZON TRANSITION
   ======================================== */
.sea-horizon-transition {
    position: relative;
    height: 150px;
    margin-bottom: -50px;
    background: linear-gradient(to bottom, #0a0f1c 0%, rgba(10, 15, 28, 0.7) 100%);
}

.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.5), transparent);
    background-size: 200px 200px;
}

.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 60px;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.8), transparent);
}

.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,40 C300,20 600,80 900,60 C1000,50 1100,70 1200,60 L1200,120 L0,120 Z' fill='rgba(0,168,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.sea-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s linear infinite;
}

.sea-sparkles span:nth-child(1) { top: 30%; left: 20%; animation-delay: 0s; }
.sea-sparkles span:nth-child(2) { top: 50%; left: 50%; animation-delay: 1s; }
.sea-sparkles span:nth-child(3) { top: 40%; left: 70%; animation-delay: 2s; }
.sea-sparkles span:nth-child(4) { top: 60%; left: 30%; animation-delay: 0.5s; }
.sea-sparkles span:nth-child(5) { top: 35%; left: 80%; animation-delay: 1.5s; }

.sailboat {
    position: absolute;
    bottom: 70px;
    left: -60px;
    animation: sailing 20s linear infinite;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .termini-hero {
        padding: 100px 5% 40px;
        background-attachment: scroll;
    }

    .termini-intro h1 {
        font-size: 2.5rem;
    }

    .availability-legend {
        gap: 1rem;
    }

    .legend-item {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .months-container {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        font-size: 0.8rem;
        min-height: 30px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .termini-intro h1 {
        font-size: 2rem;
    }

    .apartment-calendar {
        padding: 1.5rem;
    }

    .month-calendar {
        padding: 1rem;
    }

    .calendar-day {
        font-size: 0.7rem;
        min-height: 25px;
    }
}

/* DODAJ OVE STILOVE U termini.css */

/* Poboljšanja za apartment section */
.apartment-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.apartment-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 168, 255, 0.3);
}

/* Poboljšanja za apartment title */
.apartment-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #00a8ff, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.apartment-name {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.apartment-details {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Poboljšanja za months container */
.months-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Poboljšanja za pojedinačni mjesec */
.month {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.month::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00a8ff, #0078d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.month:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 168, 255, 0.2);
    border-color: rgba(0, 168, 255, 0.3);
}

.month:hover::before {
    opacity: 1;
}

/* Poboljšanja za month header */
.month-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Poboljšanja za weekdays header */
.weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Poboljšanja za calendar days */
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:not(.empty):hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Poboljšane boje za statuse */
.calendar-day.available {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.calendar-day.reserved {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.calendar-day.checkin {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.calendar-day.checkout {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    border: 2px solid rgba(33, 37, 41, 0.2);
    font-weight: 600;
}

.calendar-day.today {
    border: 3px solid #fff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
    animation: pulse-today 2s infinite;
}

@keyframes pulse-today {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

/* Poboljšanja za legend */
.availability-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-color.available {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.legend-color.reserved {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.legend-color.checkin {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.legend-color.checkout {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: 2px solid rgba(33, 37, 41, 0.2);
}

/* Poboljšanja za year selector */
.year-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.year-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.year-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.year-btn:hover::before {
    left: 100%;
}

.year-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.5);
    color: white;
}

.year-btn.active {
    background: linear-gradient(45deg, #00a8ff, #0078d4);
    border-color: #00a8ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
}

.year-btn.active:hover {
    box-shadow: 0 12px 30px rgba(0, 168, 255, 0.5);
}

/* Poboljšanja za status indikatore */
.realtime-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.realtime-indicator.online {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.4);
}

.realtime-indicator.offline {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.4);
}

.status-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

.status-pulse.online {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.status-pulse.offline {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

@keyframes pulse-status {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

/* Responsive poboljšanja */
@media (max-width: 768px) {
    .apartment-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .months-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .apartment-title {
        font-size: 1.5rem;
    }
    
    .apartment-name {
        font-size: 1.6rem;
    }
    
    .year-selector {
        gap: 0.5rem;
    }
    
    .year-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .apartment-section {
        padding: 1rem;
    }
    
    .month {
        padding: 1rem;
    }
    
    .calendar-days {
        gap: 2px;
    }
    
    .calendar-day {
        font-size: 0.75rem;
    }
    
    .realtime-indicator {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Tooltip implementacija za termini.html */
.calendar-day {
    position: relative;
}

.calendar-day[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

.calendar-day[title]:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Alternativno - jednostavniji tooltip */
.calendar-day[title] {
    cursor: help;
}

.calendar-day[title]:hover {
    position: relative;
}

.calendar-day[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 100;
}


/* ========================================
   12. FOOTER STILOVI (ako nedostaju u style.css)
   ======================================== */

/* Footer transition */
.footer-transition {
    position: relative;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(to bottom, #0a0f1c 0%, transparent 100%);
}

.horizon-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 168, 255, 0.5), 
        transparent
    );
}

.horizon-glow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 40px;
    background: radial-gradient(ellipse, 
        rgba(0, 168, 255, 0.2) 0%, 
        transparent 70%
    );
    filter: blur(20px);
}

/* Zvijezde */
.horizon-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
}

.horizon-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.horizon-stars span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.horizon-stars span:nth-child(2) { top: 30%; left: 50%; animation-delay: 0.5s; }
.horizon-stars span:nth-child(3) { top: 15%; left: 70%; animation-delay: 1s; }
.horizon-stars span:nth-child(4) { top: 40%; left: 30%; animation-delay: 1.5s; }
.horizon-stars span:nth-child(5) { top: 25%; left: 80%; animation-delay: 2s; }

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.5);
    }
}
/* Ako footer stilovi nedostaju */
footer {
    background: #0a0f1c;
    position: relative;
    overflow: hidden;
}

/* Lightbox mora biti iznad svega */
.lightbox {
    z-index: 99999 !important;
}

.lightbox-close,
.lightbox-nav,
.lightbox-info,
.image-counter {
    z-index: 100000 !important;
}

/* ========================================
   FOOTER OPTIMIZACIJA ZA NOVI PRIJELAZ
   ======================================== */

/* Ukloni stari footer-transition */
.footer-transition {
    display: none !important;
}

/* Optimiziraj footer pozadinu */
footer {
    background: #0a0f1c;
    position: relative;
    margin-top: -50px; /* Preklapanje sa prijelazom */
    padding-top: 80px; /* Kompenzacija za preklapanje */
}

/* Ukloni nepotrebne pseudo elemente koji mogu usporavati */
footer::before {
    display: none;
}

/* Pojednostavi footer hero animaciju */
.footer-hero {
    position: relative;
    z-index: 1;
}

/* Smanji broj animiranih elemenata */
.footer-decorations {
    opacity: 0.5; /* Smanji vidljivost za bolje performanse */
}

/* Optimizacija za mobilne uređaje */
@media (max-width: 768px) {
    /* Isključi složene animacije na mobilnim */
    .sea-horizon-transition .sailboat {
        animation: none;
        left: 20%;
    }
    
    .sea-sparkles {
        display: none;
    }
    
    footer {
        margin-top: -30px;
        padding-top: 50px;
    }
}

/* Dodatna optimizacija za spore uređaje */
@media (prefers-reduced-motion: reduce) {
    .sea-horizon-transition * {
        animation: none !important;
    }
    
    .waves {
        display: none;
    }
}

/* Promjena boje horizonta */
.horizon {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.5), /* Zlatni zalazak */
        transparent
    );
}

/* Dodavanje više jedrilica */
.sailboat:nth-child(2) {
    animation-delay: 15s;
    bottom: 70px;
}



/* ========================================
   POPRAVKA ZA VIDLJIVOST PRIJELAZA
   ======================================== */

/* Osiguraj da je prijelaz vidljiv */
.sea-horizon-transition {
    position: relative;
    height: 200px; /* Povećaj visinu */
    margin-top: 0; /* Ukloni negativnu marginu */
    margin-bottom: -50px; /* Samo malo preklapanje s footerom */
    overflow: visible; /* Promijeni na visible */
    z-index: 10;
    background: linear-gradient(to bottom, 
        #0a0f1c 0%, 
        rgba(10, 15, 28, 0.9) 50%,
        rgba(10, 15, 28, 0.7) 100%
    );
}

/* Osiguraj da su elementi vidljivi */
.sea-horizon-transition * {
    position: absolute;
}

/* Povećaj kontrast za zvijezde */
.sea-horizon-transition .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(255,255,255,0.8), transparent),
        radial-gradient(3px 3px at 40% 70%, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255,255,255,0.7), transparent),
        radial-gradient(3px 3px at 90% 40%, rgba(255,255,255,0.8), transparent);
    background-size: 300px 300px;
    animation: twinkle 5s ease-in-out infinite;
}

/* Pojačaj horizont liniju */
.sea-horizon-transition .horizon {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 2px; /* Deblja linija */
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 168, 255, 0.5) 10%,
        rgba(0, 168, 255, 1) 50%,
        rgba(0, 168, 255, 0.5) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(0, 168, 255, 0.8),
        0 0 60px rgba(0, 168, 255, 0.4);
    animation: horizonGlow 4s ease-in-out infinite;
}

/* Pojačaj refleksiju mjeseca */
.sea-horizon-transition .moon-reflection {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 80px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 168, 255, 0.2) 30%,
        rgba(0, 168, 255, 0.1) 60%,
        transparent 80%
    );
    filter: blur(15px);
    animation: moonReflection 6s ease-in-out infinite;
}

/* Vidljiviji valovi */
.sea-horizon-transition .waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(0,168,255,0.2)'/%3E%3C/svg%3E");
    background-size: 120% 100%;
    animation: waveMotion 8s ease-in-out infinite;
    opacity: 0.8;
}

/* Dodatni val za dubinu */
.sea-horizon-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
    background-size: 150% 100%;
    animation: waveMotion 12s ease-in-out infinite reverse;
    opacity: 0.5;
}

/* Veća jedrilica */
.sea-horizon-transition .sailboat {
    position: absolute;
    bottom: 90px;
    left: -60px;
    width: 50px;
    height: 50px;
    animation: sailing 25s linear infinite;
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.5));
}

/* Svjetlucanje vidljivije */
.sea-sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s linear infinite;
}

/* Dodatni sjaj */
.sea-horizon-transition::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 168, 255, 0.05) 80%,
        rgba(0, 168, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Ukloni suvišne stilove koji mogu sakriti prijelaz */
.gallery-page {
    padding-bottom: 60px !important; /* Smanji padding */
}

.gallery-page::after {
    display: none !important; /* Privremeno ugasi */
}

/* Osiguraj vidljivost footera */
footer {
    position: relative;
    z-index: 5;
    background: #0a0f1c !important;
}

/* Debug - privremeno dodaj border da vidiš gdje je prijelaz */
.sea-horizon-transition {
    /* border: 2px solid red; */ /* Ukloni ovo nakon testiranja */
}

/* Animacije */
@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% { 
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

@keyframes sailing {
    0% { 
        left: -60px;
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(3deg);
    }
    50% {
        transform: translateY(3px) rotate(-2deg);
    }
    75% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% { 
        left: calc(100% + 60px);
        transform: translateY(0) rotate(0deg);
    }
}