/**
 * Windows Vista / Modern style for hero widgets
 * Aero Glass effect dla sliderów i featured content
 */

/* ── Vista Panel (dla slider + sponsored posts) ────────────────── */
.win-panel--vista {
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.85) 0%, 
        rgba(240,248,255,0.75) 50%,
        rgba(230,240,250,0.85) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    box-shadow: 
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.05);
    overflow: hidden;
}

.win-panel--vista .win-header {
    background: linear-gradient(180deg, 
        rgba(195,217,239,0.95) 0%, 
        rgba(157,185,217,0.95) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.win-panel--vista .win-header-title {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #003d5d;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.win-panel--vista .win-body {
    background: transparent;
    padding: 12px;
}

.win-panel--vista .win-statusbar {
    background: linear-gradient(180deg,
        rgba(230,240,250,0.8) 0%,
        rgba(220,235,250,0.9) 100%);
    border-top: 1px solid rgba(255,255,255,0.3);
}

/* ── Vista Game Card (dla sliderów) ──────────────────────────── */
.game-card--vista {
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.9) 0%, 
        rgba(245,250,255,0.85) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    box-shadow: 
        0 3px 12px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.game-card--vista:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border-color: rgba(100,150,200,0.6);
}

.game-card--vista .game-card__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}

.game-card--vista .game-card__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.game-card--vista img {
    transition: transform 0.4s ease;
}

.game-card--vista:hover img {
    transform: scale(1.05);
}

.game-card--vista .game-card__info {
    padding: 10px;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.95) 0%,
        rgba(248,252,255,0.9) 100%);
}

.game-card--vista .game-card__title {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #003d5d;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.game-card--vista .win-btn--primary {
    background: linear-gradient(180deg, 
        #4a90e2 0%, 
        #2e5f99 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.2s ease;
}

.game-card--vista .win-btn--primary:hover {
    background: linear-gradient(180deg, 
        #5fa3f5 0%, 
        #3570b0 100%);
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ── Vista Sponsored Posts (3-column grid) ───────────────────── */
.sponsored-grid--vista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 12px;
}

/* Compact mode: tylko 1 rząd (3×1) */
.sponsored-grid--vista.sponsored-grid--compact {
    grid-template-rows: 1fr;
}

@media (max-width: 1024px) {
    .sponsored-grid--vista {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .sponsored-grid--vista {
        grid-template-columns: 1fr;
    }
}

.sponsored-card--vista {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.9) 0%,
        rgba(250,252,255,0.85) 100%);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}

.sponsored-card--vista:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: rgba(74,144,226,0.5);
}

.sponsored-card--vista__img-wrap {
    position: relative;
    width: 100%;
    height: 120px; /* zmniejszone z 140px */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsored-card--vista__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.sponsored-card--vista:hover .sponsored-card--vista__img-wrap img {
    transform: scale(1.08);
}

.sponsored-card--vista__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, 
        rgba(46,95,153,0.95) 0%, 
        rgba(30,70,120,0.95) 100%);
    color: white;
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.sponsored-card--vista__footer {
    padding: 10px; /* zmniejszone z 12px */
    background: linear-gradient(180deg,
        rgba(255,255,255,0.95) 0%,
        rgba(250,252,255,0.9) 100%);
}

.sponsored-card--vista__title {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px; /* zmniejszone z 12px */
    font-weight: 600;
    color: #003d5d;
    line-height: 1.3;
    margin-bottom: 4px; /* zmniejszone z 6px */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.sponsored-card--vista__sponsor {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 10px;
    color: #5a7a99;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Hero Carousel Style (Clean cover style) ──────────────────── */
.hero-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.hero-carousel__main {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.hero-carousel__slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel__slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-carousel__bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(40px) brightness(0.7);
    transform: scale(1.1);
    z-index: 0;
}

.hero-carousel__bg-main {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-carousel__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.3) 30%,
        transparent 60%);
}

.hero-carousel__content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 24px 32px;
    z-index: 2;
}

.hero-carousel__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-carousel__discount {
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-carousel__price {
    background: #2196f3;
    color: white;
    padding: 6px 14px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-carousel__price-prefix {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
    margin-right: 3px;
}

.hero-carousel__btn {
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.85);
    padding: 6px 14px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 11px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-carousel__btn:hover {
    background: rgba(0,0,0,0.75);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

/* ── Navigation Arrows ──────────────────────────────────────── */
.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-carousel__arrow:hover {
    background: rgba(74,144,226,0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel__arrow--prev {
    left: 20px;
}

.hero-carousel__arrow--next {
    right: 20px;
}

/* Navigation dots */
.hero-carousel__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel__dot.active {
    background: #4a90e2;
    border-color: white;
    transform: scale(1.2);
}

.hero-carousel__dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-carousel__main {
        height: 350px;
    }
    
    .hero-carousel__content {
        padding: 20px;
    }
    
    .hero-carousel__badge {
        padding: 16px 20px;
    }
    
    .hero-carousel__title {
        font-size: 22px;
    }
    
    .hero-carousel__price {
        font-size: 18px;
    }
    
    .hero-carousel__btn {
        padding: 10px 22px;
        font-size: 14px;
    }
    
    .hero-carousel__arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ── Slider Vista Style (keep for fallback) ───────────────── */
.widget-slider--vista {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(157,185,217,0.5) transparent;
    padding: 4px;
}

.widget-slider--vista::-webkit-scrollbar {
    height: 8px;
}

.widget-slider--vista::-webkit-scrollbar-track {
    background: rgba(230,240,250,0.3);
    border-radius: 4px;
}

.widget-slider--vista::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg,
        rgba(157,185,217,0.7) 0%,
        rgba(195,217,239,0.7) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
}

.widget-slider--vista::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg,
        rgba(157,185,217,0.9) 0%,
        rgba(195,217,239,0.9) 100%);
}

/* ── Animacje ──────────────────────────────────────────────── */
@keyframes vistaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.win-panel--vista,
.game-card--vista,
.sponsored-card--vista {
    animation: vistaFadeIn 0.4s ease-out forwards;
}

/* Delay dla każdej karty (stagger effect) */
.game-card--vista:nth-child(1) { animation-delay: 0.05s; }
.game-card--vista:nth-child(2) { animation-delay: 0.10s; }
.game-card--vista:nth-child(3) { animation-delay: 0.15s; }
.game-card--vista:nth-child(4) { animation-delay: 0.20s; }
.game-card--vista:nth-child(5) { animation-delay: 0.25s; }
.game-card--vista:nth-child(6) { animation-delay: 0.30s; }

.sponsored-card--vista:nth-child(1) { animation-delay: 0.05s; }
.sponsored-card--vista:nth-child(2) { animation-delay: 0.10s; }
.sponsored-card--vista:nth-child(3) { animation-delay: 0.15s; }
