/**
 * Game Rules Page Styles
 * Lightning Casino
 */

/* Hero Icon */
.rules-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.2), rgba(247, 147, 26, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-hero-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-btc-orange);
}

/* Quick Navigation */
.rules-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rules-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.rules-nav-item:hover {
    background: var(--bg-elevated);
    border-color: var(--color-btc-orange);
    color: var(--text-primary);
}

.rules-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.rules-nav-soon {
    opacity: 0.6;
    position: relative;
}

.soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-btc-orange);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Section Styling */
.rules-section {
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-default);
}

.section-header svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-btc-orange);
    flex-shrink: 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Subsections */
.rules-subsection {
    margin-bottom: 2rem;
}

.rules-subsection:last-child {
    margin-bottom: 0;
}

.rules-subsection h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.rules-subsection p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.rules-subsection p:last-child {
    margin-bottom: 0;
}

/* Steps */
.rules-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.rules-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.rules-step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.rules-step-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Symbol Highlights */
.symbol-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.symbol-highlight.wild { color: #f7931a; }
.symbol-highlight.btc { color: #f7931a; }
.symbol-highlight.diamond { color: #60a5fa; }
.symbol-highlight.seven { color: #f87171; }
.symbol-highlight.bell { color: #fbbf24; }
.symbol-highlight.cherry { color: #fb7185; }
.symbol-highlight.lemon { color: #a3e635; }

/* Highlight Box */
.rules-highlight-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: 12px;
    margin: 1rem 0;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-btc-orange), var(--color-btc-orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--bg-primary);
}

.highlight-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Card Values Grid */
.card-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.card-value-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.card-label {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.action-card {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-default);
}

.action-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.action-key {
    display: inline-block;
    background: rgba(247, 147, 26, 0.15);
    color: var(--color-btc-orange);
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Payout Grid */
.payout-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.payout-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-default);
}

.payout-item.blackjack-payout {
    border-color: rgba(247, 147, 26, 0.4);
    background: rgba(247, 147, 26, 0.08);
}

.payout-item.push-payout {
    border-color: rgba(100, 100, 100, 0.3);
}

.payout-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.payout-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.blackjack-payout .payout-value {
    color: var(--color-btc-orange);
}

.payout-example {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Comparison Row */
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-box {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-default);
}

.comparison-box h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.comparison-box p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Rules List */
.rules-list {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.rules-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.rules-list strong {
    color: var(--text-primary);
}

/* Rules Tip */
.rules-tip {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Rules Link */
.rules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-btc-orange);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.75rem;
    transition: opacity 0.2s;
}

.rules-link:hover {
    opacity: 0.8;
}

.rules-link svg {
    stroke: var(--color-btc-orange);
}

/* Coming Soon Section */
.coming-soon-section {
    opacity: 0.7;
}

.coming-soon-badge {
    background: rgba(100, 100, 100, 0.3);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    margin-left: auto;
}

.coming-soon-text {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.notify-teaser {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.notify-teaser p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.notify-link {
    color: var(--color-btc-orange);
    text-decoration: none;
    font-weight: 500;
}

.notify-link:hover {
    text-decoration: underline;
}

/* Footer */
.rules-footer {
    text-align: center;
    margin-top: 2rem;
}

.rules-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    transition: all 0.2s;
}

.rules-back-link:hover {
    color: var(--text-primary);
    border-color: var(--color-btc-orange);
}

.rules-back-link svg {
    stroke: currentColor;
}

/* ==================== */
/* MOBILE RESPONSIVE    */
/* ==================== */

@media (max-width: 768px) {
    .rules-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .rules-nav-item {
        justify-content: center;
    }

    .card-values-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

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

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .rules-highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .highlight-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.25rem;
    }

    .payout-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .payout-item {
        padding: 0.75rem;
    }

    .payout-value {
        font-size: 1.25rem;
    }
}
