/* --- Styles für [product_poker_scroll] --- */

:root {
    --gk-poker-bg: #fff;
    --gk-poker-text: #000;
    --gk-poker-accent: #f8db46;
    --gk-poker-bg: #fff;
    --gk-poker-text: #000;
    --gk-poker-accent: #f8db46;
    /* Step 3: Increase base size 5% (to replace zoom) & Adjust Overlap */
    --gk-poker-card-width: 252px;
    --gk-poker-card-height: 425px;
    /* Unified with 3D Scroll */
    --gk-poker-overlap: -125px;
}

.gk-poker-scroll-section {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

/* Title Sync is now handled by gk-shared-elements.css */

/* Container mit Perspektive */
.gk-poker-scroll-container {
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 40px calc(50% - (var(--gk-poker-card-width) / 2)) 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    perspective: none;
    transform-style: preserve-3d;
    /* Fix: Allow Z-translation to handle stacking order */
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;

    /* WEICHE RÄNDER (FADE-OUT EFFEKT) - Sehr dezent am Rand */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    /* touch-action entfernt damit vertikales Scrollen erlaubt bleibt */
}

.gk-poker-scroll-container::-webkit-scrollbar {
    display: none;
}

.gk-poker-scroll-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Die Poker-Karte */
.gk-poker-scroll-item {
    flex: 0 0 var(--gk-poker-card-width);
    height: var(--gk-poker-card-height);
    background: var(--gk-poker-bg);
    margin-right: var(--gk-poker-overlap);
    border: 2px solid #000;
    border-radius: 12px;
    position: relative;
    transform-style: flat;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Keine Transition auf transform, da dies zu Zittern führen kann */
    transition: box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: visible !important;
    /* Allow Price Bubble & Vinyl to show */
    transform-origin: bottom center;
    scroll-snap-align: center;

    /* --- Retro Frame Styling (Standard) --- */
    background-color: #f4f1ea;
    /* Retro paper look */
    border: 3px solid #1a1a1a;
    /* Thicker dark border */
    border-radius: 6px;
    /* Soft corners */
    padding: 12px;
    /* Matting effect */
    box-sizing: border-box;
    /* Include padding */
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2);
    /* Hard retro shadow */
    min-width: var(--gk-poker-card-width) !important;
    /* Prevent shrinking */

    /* Step 1: CSS Rendering Hints for Sharpness */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

.gk-poker-scroll-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* z-index entfernt, da er die dynamische JS-Berechnung stört */
}

/* Letztes Item braucht keinen negativen Margin */
.gk-poker-scroll-item:last-child {
    margin-right: 0;
}

/* The Vinyl Disc -> Now in gk-shared-elements.css */
/* Grooves -> Now in gk-shared-elements.css */
/* Label -> Now in gk-shared-elements.css */
/* Hole -> Now in gk-shared-elements.css */
/* ACTIVE EFFECT -> Now in gk-shared-elements.css */
/* DESKTOP HOVER BONUS -> Now in gk-shared-elements.css */

/* Ensure Image Wrapper handles Z-Index correctly so Vinyl is behind */
.gk-poker-image-wrapper {
    z-index: 2;
    background: #fdfdfd;
}

.gk-poker-image-wrapper.has-vinyl-effect {
    transform-style: preserve-3d;
    background: transparent !important;
    /* Fix: Allows vinyl (z-index -1) to be seen */
    /* Helps with z-index in some browsers */
}

/* Image Wrapper - Jetzt quadratisch */
.gk-poker-image-wrapper {
    position: relative;
    height: var(--gk-poker-card-width);
    /* Nutze Variable für perfektes Quadrat */
    width: 100%;
    background: #fdfdfd;
    display: block;
    overflow: visible !important;
    /* Allow Vinyl to peek out */

    /* Allow Vinyl to peek out */

    /* Inner Frame */
    border: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
    /* Inner shadow */
    box-sizing: border-box;
    /* Include border in height */
    border-radius: 4px;
    margin-bottom: 12px;
}

.gk-poker-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    /* Bilder passen jetzt 100% */
    box-sizing: border-box;
}

/* Price Bubble is now handled by gk-common-price-bubble */

/* Card Body */
.gk-poker-card-body {
    padding: 5px 0 15px 0 !important;
    /* Unified padding */
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Poker Title - Unified with 3D Scroll */
.gk-poker-title {
    font-size: 1.05rem !important;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em !important;
    max-height: 2.6em !important;
    /* Fixed height for 2 lines - Match 3D Scroll */
}

/* --- Rating Styles (Standard Layout) --- */
.gk-rating-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0px;
    /* Spacing handled by button container margin-bottom */

    font-family: 'Inter', sans-serif;
    line-height: 1;
    justify-content: flex-start;
}

.gk-rating-container .star-rating {
    font-size: 0.9rem;
    color: #f8db46;
    /* Accent Yellow */
    width: 5.4em;
    /* Ensure width for 5 stars */
}

.gk-rating-container .star-rating::before {
    color: #ccc;
}

.gk-rating-container .star-rating span::before {
    color: #f8db46;
}

.gk-rating-count {
    font-family: 'Kaushan Script', cursive;
    /* Retro Handwritten Font */
    font-size: 1rem;
    color: #000;
    font-weight: 500;
    margin-top: 3px;
    /* Optical alignment */
}

/* Button & Hover Info */
.gk-poker-hover-info {
    margin-top: 10px;
    margin-bottom: 10px;
    /* Space between button and rating */
}

/* Button handled by gk-common-btn */

/* Navigation Arrows */
/* Navigation Arrows are now handled by gk-shared-elements.css */

/* Badge handled by gk-common-sale-badge */


@media (max-width: 768px) {
    :root {
        --gk-poker-card-width: 230px !important;
        /* Increased from 215px to match 3D */
        --gk-poker-card-height: 380px !important;
        /* Unified with 3D Scroll */
        --gk-poker-overlap: -70px !important;
    }

    .gk-poker-scroll-container {
        padding: 50px calc(50% - 115px) 40px !important;
        /* Exakte Zentrierung: 230/2 = 115 */
    }

    .gk-poker-scroll-section-title {
        font-size: 1.5rem;
    }

    .gk-poker-image-wrapper {
        height: 215px !important;
    }
}