/*
Theme Name: Konkret Film
Author: Twój Nick
Description: Autorski motyw na bazie szablonu HTML/Tailwind
Version: 1.1
*/

body {
    background-color: #0a0a0a;
    color: #f3f4f6;
    /* Zmieniono z 'hidden' na 'overflow-x: hidden', aby umożliwić przewijanie pionowe na mobile */
    overflow-x: hidden; 
}

/* ========================================== */
/* SEKCJA PORTFOLIO I IFRAME                  */
/* ========================================== */

.portfolio-section video {
    width: 100%;
    aspect-ratio: 9 / 16; 
    height: auto;
    position: relative;
    overflow: hidden;
}

/* Rozciągamy odtwarzacz YouTube, by idealnie wypełnił te proporcje */
.portfolio-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* ========================================== */
/* STYLIZACJA KAFELKÓW WIDEO W STOPCE         */
/* ========================================== */

.custom-footer-gallery {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; 
    padding: 40px 20px;
    background-color: transparent; 
    width: 100%;
}

.footer-card {
    position: relative;
    width: 250px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.footer-card:hover {
    transform: translateY(-5px);
}

.footer-card img.footer-card-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
    display: block;
}

.footer-card:hover img.footer-card-media {
    filter: brightness(0.9);
}

.footer-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
}

.footer-card-title {
    color: #ffffff;
    font-size: 16px;
    font-family: sans-serif;
    font-weight: 600;
    display: block;
}

/* ========================================== */
/* POZOSTAŁE STYLE STRONY I MODALE            */
/* ========================================== */

/* SVG Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Ognisty Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Scrollbar dla Modali */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 69, 0, 0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ff4500; }

/* Modal Transitions */
.modal-enter {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;
}
.modal-enter-active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content-scale {
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-enter-active .modal-content-scale {
    transform: scale(1) translateY(0);
}

/* Checkbox styling */
input[type="checkbox"], input[type="radio"] {
    accent-color: #ff4500;
    cursor: pointer;
}

/* Liquid Glass Base */
.btn-liquid-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.btn-liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}
.btn-liquid-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 69, 0, 0.5); 
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
}
.btn-liquid-glass:hover::before {
    left: 150%;
}

/* Modals Glass Background */
.modal-glass-bg {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}