/**
 * Single Raffle (Product) Page – Styles
 * Load after global_styles.css. Matches prize-details.html + plan.
 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --cta-green: #10b981;
    --cta-green-hover: #059669;
}

/* Section */
.product-page-section {
    padding: 120px 0 80px;
    background: var(--bg-obsidian);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left column – Details: fix indent so title and details align with breadcrumbs/content */
.product-details-col,
.product-page-section .product-details-col .summary,
.product-page-section .product-details-col .asp-rfw-summary {
    padding-left: 0;
    margin-left: 0;
}

.product-title {
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.product-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-white);
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.product-price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--neon-amber) !important;
}

.product-price-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Timer block */
.product-timer-block {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-timer-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.product-timer-label i {
    margin-right: 8px;
    color: var(--volt-cyan);
}

.big-timer {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    color: var(--text-white);
    letter-spacing: 2px;
}

/* Progress bar – track grey, fill red gradient; full width to align with radio section */
.product-progress {
    margin-bottom: 30px;
    width: 100% !important;
    max-width: 100% !important;
}

.product-page-section .product-details-col .product-progress,
.product-page-section .asp-rfw-summary .product-progress,
.product-page-section .summary .product-progress,
.product-page-section form.cart ~ .product-progress {
    width: 100% !important;
    max-width: none !important;
}

.product-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.product-progress-track {
    width: 100% !important;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-progress-fill {
    height: 100%;
    background: var(--hero-gradient);
    border-radius: 8px;
    transition: width 0.3s var(--ease-kinetic);
}

/* Skill question – dark option boxes (like View the prize / btn-ghost) */
.skill-question-box {
    margin-bottom: 30px;
    background: #151a21;
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-question-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.skill-question-text {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.skill-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-option {
    display: block;
    padding: 14px 18px;
    background: transparent !important;
    color: var(--text-white) !important;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-option:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.skill-option-input {
    margin-right: 10px;
    accent-color: var(--primary-red);
}

.skill-option:has(.skill-option-input:checked),
.skill-option.selected {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 1px var(--primary-red);
}

/* Quantity slider – dark grey track; fill (red gradient) only to left of thumb via thrill-slider-gradient.js */
.asp-rfw-quantity-range-slider .asp-rfw-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08); /* fallback; JS overrides with gradient */
}
.asp-rfw-quantity-range-slider .asp-rfw-slider::-webkit-slider-runnable-track {
    height: 12px;
    border-radius: 6px;
    background: transparent !important;
}
.asp-rfw-quantity-range-slider .asp-rfw-slider::-moz-range-track {
    height: 12px;
    border-radius: 6px;
    background: transparent !important;
}
.asp-rfw-quantity-range-slider .asp-rfw-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--volt-cyan);
    box-shadow: 0 0 12px var(--volt-cyan), 0 0 24px rgba(0, 245, 255, 0.5);
    cursor: pointer;
    border: 0;
}
.asp-rfw-quantity-range-slider .asp-rfw-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--volt-cyan);
    box-shadow: 0 0 12px var(--volt-cyan), 0 0 24px rgba(0, 245, 255, 0.5);
    cursor: pointer;
    border: 0;
}
/* runnable-track / range-track gradient set above */

/* Ticket selector */
.ticket-selector-area {
    margin-bottom: 30px;
}

.selector-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    background: #222;
    color: var(--text-white);
    border: 1px solid #333;
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s;
}

.qty-btn:hover {
    background: #333;
    border-color: var(--volt-cyan);
}

.qty-input {
    width: 80px;
    height: 50px;
    background: #111;
    border: 1px solid #333;
    color: var(--text-white);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.quick-select {
    display: flex;
    gap: 10px;
}

.quick-qty-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.quick-qty-btn:hover {
    border-color: var(--volt-cyan);
    background: rgba(0, 245, 255, 0.05);
}

/* CTA / Participate button – black (in line with global), Montserrat, space before price */
/* Higher specificity than woocommerce_raffle_styles.css (body.single-product .single_add_to_cart_button) */
body.single-product .product-page-section .single_add_to_cart_button,
body.single-product .product-page-section .asp-rfw-particpate-button,
body.single-product .product-page-section button.single_add_to_cart_button {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #333 !important;
    font-family: 'Montserrat', 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    padding: 20px !important;
    font-size: 20px !important;
    margin-bottom: 40px !important;
}
body.single-product .product-page-section .single_add_to_cart_button:hover,
body.single-product .product-page-section .asp-rfw-particpate-button:hover {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: var(--volt-cyan) !important;
}
/* Space between "Participate for" and the price; prize amount yellow, Montserrat */
body.single-product .product-page-section .single_add_to_cart_button .asp-rfw-price,
body.single-product .product-page-section .asp-rfw-particpate-button .asp-rfw-price {
    margin-left: 0.5em;
    color: var(--neon-amber) !important;
    font-family: 'Montserrat', 'Poppins', sans-serif !important;
}

/* Legacy CTA class – green "X tickets" button (if used elsewhere) */
.entry-tickets-btn {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--cta-green);
    color: var(--text-white);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 40px;
}

.entry-tickets-btn:hover {
    background: var(--cta-green-hover);
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-1px);
}

a.entry-tickets-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs */
.product-tabs {
    margin-top: 20px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    color: #777;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.tab-item:hover {
    color: var(--text-white);
}

.tab-item.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.tab-content {
    color: #bbb;
    line-height: 1.6;
    font-size: 14px;
}

.tab-content.hidden {
    display: none;
}

.tab-content ul {
    margin-top: 15px;
    margin-left: 20px;
}

/* Right column – Images */
.product-images-col {
    position: sticky;
    top: 120px;
}

.main-image-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.1);
}

.product-main-img {
    width: 100%;
    display: block;
    vertical-align: top;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-item {
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: opacity 0.2s, border-color 0.2s;
}

.thumb-item img {
    width: 100%;
    display: block;
    opacity: 0.6;
}

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
    border-color: var(--primary-red);
}

.thumb-item.active img {
    opacity: 1;
}

/* Related section */
.related-section {
    padding: 60px 0 100px;
    background: #0b0e11;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-section .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-heading {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-images-col {
        position: static;
    }

    .product-title {
        font-size: 36px;
    }

    .thumb-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .product-page-section {
        padding: 80px 0 60px;
    }

    .product-title {
        font-size: 28px;
    }

    .big-timer {
        font-size: 24px;
    }

    .skill-options {
        gap: 10px;
    }

    .thumb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-section .grid-3 {
        grid-template-columns: 1fr;
    }
}
