/* home-style.css - Style specyficzne dla kart ofert i strony głównej */

/* --- Sekcja Promowanych Ofert --- */
.featured-offers {
    background-color: #f8f9fa;
}

.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.offer-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.offer-card .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0d6efd;
}

/* --- Styl przycisku "Zobacz Szczegóły" --- */
.btn-offer {
    background-color: #0d6efd; /* Niebieskie tło */
    color: white; /* Biały tekst */
    border: 1px solid #0d6efd; /* Niebieska ramka */
    transition: all 0.3s ease;
}

.btn-offer:hover {
    background-color: white; /* Białe tło po najechaniu */
    color: #0d6efd; /* Niebieski tekst po najechaniu */
    border-color: #0d6efd;
}

/* --- Maska "SPRZEDANY/ZAREZERWOWANY" --- */
.card-img-container {
    position: relative;
    overflow: hidden;
}

.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kluczowe: wypełnia cały kontener, przycinając nadmiar */
    z-index: -1;
    filter: brightness(0.5); /* Mocniejsze przyciemnienie dla lepszej czytelności */
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}
.hero-offers-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 40px; /* Miejsce na strzałki */
}
.hero-offers-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Ukryj pasek przewijania */
    scroll-snap-type: x mandatory;
}
.hero-offers-scroll::-webkit-scrollbar { display: none; }

.hero-offer-item {
    flex: 0 0 auto;
    width: 100%; /* Mobile: 1 kafelek */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .hero-offer-item { width: calc(50% - 10px); } /* Tablet: 2 kafelki */
}
@media (min-width: 992px) {
    .hero-offer-item { width: calc(33.333% - 14px); } /* Desktop: 3 kafelki */
}

/* ZMIANA: Style dla mini-kafelków w Hero */
.hero-offer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    color: white;
    text-align: left;
    margin: 0 10px; /* Odstęp między kafelkami */
}
.hero-offer-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}
.hero-offer-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}
.hero-offer-card .card-body {
    padding: 10px;
}
.hero-offer-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-offer-card p {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Style dla karuzeli Hero */
.hero-carousel .carousel-item {
    height: auto; /* Dostosowanie wysokości */
}
.social-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}
.social-card:hover {
    transform: translateY(-5px);
}
.social-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: white;
}
.fb-header { background-color: #1877f2; }
.tt-header { background-color: #000000; }
.yt-header { background-color: #FF0000; }

.gallery-wrapper {
    position: relative;
    padding: 0 50px;
}
.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }

.gallery-img-container {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-img-container:hover {
    transform: scale(1.05);
    z-index: 10;
}
.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 20;
}
.gallery-nav-btn:hover { background: black; }
.gallery-nav-btn.left { left: 0; }
.gallery-nav-btn.right { right: 0; }

.brands-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}
.brands-track {
    display: flex;
    width: calc(200px * 14);
    animation: scroll 40s linear infinite;
}
.brand-logo {
    width: 200px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}
.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 7)); }
}
