/* Uvozi pisavo Play iz Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Play', sans-serif;
    background-color: #b0b0b0;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

/* ───────────────────────────── HEADER ───────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    background-color: rgba(47, 79, 79, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
}

header h1 {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
}

header p {
    margin-top: 8px;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.5;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

header a:hover {
    text-decoration: underline;
}

header .nav-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

header .nav-links a {
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    transition: background 0.2s;
}

header .nav-links a:hover {
    background: rgba(255,255,255,0.3);
    text-decoration: none;
}

/* ──────────────────── VODNI ŽIG ─────────────────────────────── */

.gallery-slide::after {
    content: 'terasa.si';
    position: absolute;
    bottom: 8px;
    left: 12px;
    padding: 4px 10px;
    text-align: left;
    font-family: 'Play', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
}

/* ───────────────────────────── PORTFOLIO GRID ───────────────────── */

#portfolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    padding-top: 180px; /* prostor za header */
    max-width: 1400px;
    margin: 0 auto;
}

/* Tablet: 2 stolpca */
@media (min-width: 640px) {
    #portfolio {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 200px;
    }
}

/* Desktop: 3 stolpci */
@media (min-width: 1024px) {
    #portfolio {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ──────────────────────── PORTFOLIO ITEM ─────────────────────── */

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.portfolio-item h3 {
    margin: 12px 0 6px;
    color: #2f4f4f;
    font-weight: 700;
    font-size: 1.05em;
}

.portfolio-item p {
    color: #666;
    font-weight: 400;
    font-size: 0.9em;
    line-height: 1.4;
    flex-grow: 1;
}

h2 {
    color: #333;
}
h2 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
h2 a:hover {
    text-decoration: underline;
}

/* ──────────────────────── GALERIJA (SLIDESHOW) ───────────────── */

.gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #ddd;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
    will-change: transform;
}

.gallery-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #222;
}

.gallery-slide iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Puščice levo/desno */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.gallery-btn:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-btn.prev {
    left: 8px;
}

.gallery-btn.next {
    right: 8px;
}

/* Pikice (dots) */
.gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.gallery-dot.active {
    background: #fff;
}

/* Oznaka za video slide */
.gallery-slide.video-slide::before {
    content: '▶';
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,0,0,0.8);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 5;
    pointer-events: none;
}

.gallery-slide.video-slide {
    position: relative;
}

/* Skrij navigacijo za elemente z 1 sliko */
.gallery[data-count="1"] .gallery-btn,
.gallery[data-count="1"] .gallery-dots {
    display: none;
}

/* ──────────────────── STARA POSAMEZNA SLIKA (fallback) ──────── */

.portfolio-item > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

.portfolio-item > iframe {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 6px;
}

/* ───────────────────────────── FOOTER ────────────────────────── */

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(47, 79, 79, 0.88);
    color: #fff;
    margin-top: 20px;
}

footer p {
    font-size: 0.95em;
    line-height: 1.6;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

footer a:hover {
    text-decoration: underline;
}

/* Google Maps */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ───────────────────── RESPONSIVE TWEAKS ─────────────────────── */

/* Mobilni telefon */
@media (max-width: 639px) {
    header {
        padding: 12px 14px;
    }

    header h1 {
        font-size: 1.1em;
    }

    header p {
        font-size: 0.82em;
        margin-top: 6px;
    }

    header .nav-links a {
        font-size: 0.8em;
        padding: 5px 10px;
    }

    #portfolio {
        padding-top: 160px;
        gap: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .portfolio-item {
        padding: 12px;
    }

    footer p {
        font-size: 0.85em;
    }
}

/* Veliki zasloni */
@media (min-width: 1400px) {
    #portfolio {
        padding-top: 180px;
    }
    header h1 {
        font-size: 1.8em;
    }
}

/* ───────────────── BULLET LISTA & OSTALO ─────────────────────── */

.bullet-list {
    font-family: "Play", sans-serif;
    color: #777;
    padding-left: 20px;
    list-style-type: disc;
}

.centered-title {
    text-align: center;
    margin-bottom: 30px;
}

.content {
    padding: 100px 20px;
}
