/* Rules Page CSS */

.rules-header {
    max-width: 1000px;
    margin: 0 auto 22px;
    padding: 0 16px;
}

.rules-header-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.rules-header-title {
    margin: 0;
    color: var(--ice-white, #f8fafc);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.08;
}

.rules-header-subtitle {
    margin: 10px auto 0;
    color: #9fb0c7;
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.55;
}

.rulebooks-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.rulebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.rule-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background 0.25s ease;
}

.rule-card:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(245, 197, 66, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.rule-card:hover::before {
    background: var(--victory-gold, #FACC15);
}

.rule-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(245, 197, 66, 0.08);
    border: 1px solid rgba(245, 197, 66, 0.2);
    color: var(--victory-gold, #FACC15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.rule-card:hover .rule-icon {
    background: var(--victory-gold, #FACC15);
    color: #0b1220;
    box-shadow: 0 0 15px rgba(245, 197, 66, 0.4);
}

.rule-title {
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--ice-white, #F8FAFC);
    margin-bottom: 12px;
    line-height: 1.3;
}

.rule-desc {
    color: #9fb0c7;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 32px;
}

.rule-actions {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.rule-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rule-btn.primary {
    background: rgba(245, 197, 66, 0.1);
    color: var(--victory-gold, #FACC15);
    border: 1px solid rgba(245, 197, 66, 0.3);
}

.rule-btn.primary:hover {
    background: var(--victory-gold, #FACC15);
    color: #0b1220;
}

.rule-btn.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ice-white, #F8FAFC);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

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