/* Brawo Ty, umiesz podejrzeć źródło strony? Tylko po co? */

/* Base styles */
:root {
    --primary-color: #BBA53B;
    --primary-hover: #8B7355;
    --bg-color: #EEE8AA;
    --text-color: #2c3e50;
    --shadow: 0 10px 20px rgba(0,0,0,0.3);
    --nav-bg: rgba(0, 0, 0, 0.9);
    --content-width: 600px;
    --section-width: 630px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 60px 0 0;
    background: rgb(228,224,175);
    background: linear-gradient(90deg, 
        rgba(228,224,175,1) 0%, 
        rgba(207,181,59,1) 35%, 
        rgba(207,181,59,1) 65%, 
        rgba(228,224,175,1) 100%
    );
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
}

/* Layout */
section {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    box-sizing: border-box;
    scroll-margin-top: 70px;
    width: 100%;
    max-width: var(--section-width);
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--content-width);
    box-shadow: var(--shadow);
    border-radius: 5px;
    background: white;
    margin: 0 15px;
    overflow: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--nav-bg);
    padding: 15px 0;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color) !important;
}

/* Images and iframes */
img {
    width: 600px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

iframe {
    width: 600px;
    max-width: 100%;
    height: 450px;
    border: 0;
    border-radius: 5px;
    display: block;
}

/* Countdown section */
.countdown-container {
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    text-align: center;
    margin: 0 0 20px 0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: black;
    width: 100%;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 600px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.countdown-item span:first-child {
    font-size: 48px;
    font-weight: 300;
}

.countdown-item .label {
    font-size: 16px;
    margin-top: 5px;
}

/* Phones section */
.phones-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.phone-item .name {
    font-weight: 600;
    color: var(--text-color);
}

.phone-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

.phone-item a:hover {
    color: var(--primary-hover);
}

/* Slider */
.slider-container {
    width: 100%;
    height: 450px;
    margin: 0;
    padding: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.swiper-button-next,
.swiper-button-prev {
    display: none;
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 0 0 90px;
        background: rgb(207,181,59);  /* Jednolity ciemniejszy kolor */
    }

    nav {
        top: auto;
        bottom: 0;
        padding: 10px 0;      /* Increased from 8px */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;        /* Increased from 8px */
        background-color: var(--nav-bg); /* Slightly darker background */
    }

    nav a {
        margin: 0 10px;
        font-size: 15.4px;
        padding: 8px 12px;    /* Added padding for larger touch target */
        position: relative;    /* For touch feedback */
    }

    /* Optional: Add touch feedback */
    nav a:active {
        background-color: rgba(187, 165, 59, 0.2); /* Subtle highlight when pressed */
        border-radius: 4px;
    }

    .content {
        margin: 0 15px;
    }

    section {
        padding: 0;
        margin: 15px auto;
    }

    .slider-container,
    .swiper,
    .swiper-slide img {
        height: 300px;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item span:first-child {
        font-size: 36px;
    }

    .countdown-item .label {
        font-size: 14px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .phones-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Phone number obfuscation */
.phone-part {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: left;
}

.phone-sep {
    display: inline-block;
    margin: 0 2px;
}

/* Venue link */
.venue-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1.1em;
    padding: 10px 20px;
    display: inline-block;
}

.venue-link:hover {
    color: var(--primary-hover);
}

/* Progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(187, 165, 59, 0.8);
    transition: width 5000ms linear;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.map-container {
    width: 100%;
    margin-bottom: 20px;
}

#dojazd .content {
    flex-direction: column;
    padding: 0;
}

#dojazd h2 {
    padding: 20px 0 0 0;
}

#dojazd .map-container {
    width: 100%;
    margin: 0;
}

#dojazd iframe {
    margin: 0;
    display: block;
}

#dojazd .venue-link {
    margin: 20px 0;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-banner button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: white;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cookie-banner button:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 90px; /* Above the mobile menu */
    }
}

/* Image preview and overlay */
.map-preview {
    cursor: pointer;
    transition: opacity 0.3s ease;
    max-width: 100%;
    width: 600px;  /* Taka sama szerokość jak inne obrazy */
}

.map-preview:hover {
    opacity: 0.9;
}

.full-image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 20px;
}

.full-image {
    max-width: 95%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
}

@media (max-width: 768px) {
    .full-image {
        max-width: 98%;
        max-height: 98vh;
    }
}

