/**
 * Gewinnspiel Optionen & Booster Pakete Styling
 */

.options-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: calc(var(--space-24) + 80px);
    padding-bottom: var(--space-20);
}

.options-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Header & Intro Section */
.options-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.options-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.options-header .lead {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* Tab Segment Controller (Segmented Switch) */
.options-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-10);
}

.options-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-gray-600);
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--color-gray-900);
}

.tab-btn.is-active {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(15, 94, 247, 0.1), 0 2px 4px rgba(0,0,0,0.05);
}

/* Options Grid Layout */
.options-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.options-section.is-active {
    display: block;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    align-items: stretch;
    margin-bottom: var(--space-12);
}

/* Custom alignment for 5-column or odd grids to look central on wide viewports */
@media (min-width: 1200px) {
    .options-grid.grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-4);
    }
    
    .options-grid.grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .options-grid.grid-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Card Style */
.booster-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.booster-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--border-theme-color);
}

/* Card Badge (Ribbon) */
.card-badge {
    position: absolute;
    top: 69px;
    right: -29px;
    transform: rotate(-2deg);
    width: 250px;
    text-align: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0;
    box-shadow: 0 0px 10px 10px rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 5px black;
    border-radius: 15px;
    z-index: 10;
}

/* Highlighted / Popular Card */
.card-highlighted {
    border: 2px solid var(--border-theme-color);
    transform: scale(1.03);
    z-index: 5;
    box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.15);
}

.card-highlighted:hover {
    transform: scale(1.05) translateY(-8px);
}

@media (max-width: 992px) {
    .card-highlighted {
        transform: none;
    }
    .card-highlighted:hover {
        transform: translateY(-8px);
    }
}

/* Card Header */
.card-header-bar {
    padding: var(--space-6) var(--space-6);
    color: #ffffff;
}

.card-header-bar h3 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 1px #ffffff,
                 -2px 2px 1px #ffffff,
                 2px -2px 1px #ffffff,
                -2px -2px 1px #ffffff;
}

/* Card Body */
.card-body {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Points Badge Indicator */
.points-indicator {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 20px;
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e2e8f0;
    width: 100%;
}

.points-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
}

.points-lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gray-500);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Highlighted points */
.card-highlighted .points-indicator {
    background: #f5f3ff;
    border-color: #ddd6fe;
}
.card-highlighted .points-num {
    color: #7c3aed;
}

/* Price */
.price-display {
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-gray-900);
    line-height: 1;
}

.price-sub {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 4px;
    font-weight: 600;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
    text-align: left;
    width: 100%;
    border-top: 1px solid #f1f5f9;
    padding-top: var(--space-4);
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-gray-600);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.feature-check-icon {
    color: #10b981;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Highlighted card checks */
.card-highlighted .feature-check-icon {
    color: #7c3aed;
}

/* Card Footer & Button */
.card-footer {
    padding: var(--space-6);
    width: 100%;
    border-top: 1px solid #f8fafc;
}

.btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--cta-bg-color);
    color: #ffffff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-cta:hover {
    filter: brightness(1.15);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: #ffffff;
}

/* Info Banner at the bottom */
.options-info-banner {
    margin-top: var(--space-12);
    background: #ebf5ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: var(--space-6) var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.options-info-banner i {
    font-size: 32px;
    color: var(--color-primary);
}

.options-info-banner p {
    margin: 0;
    font-size: 15px;
    color: #1e3a8a;
    line-height: 1.5;
}

.options-info-banner a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness adjustments */
@media (max-width: 640px) {
    .options-header h1 {
        font-size: var(--text-2xl);
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .options-info-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-6);
    }
}
