/* Rules Page Specific Styling */
.rules-container {
    padding: 3rem 0;
}

.rules-header {
    margin-bottom: 3rem;
    text-align: center;
}

.rules-header h1 {
    font-size: 3rem;
    letter-spacing: -1px;
    margin: 0;
}

.rules-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(20, 20, 20, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.rules-section {
    margin-bottom: 3.5rem;
}

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

.rules-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-section li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.rules-section li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 0.5rem;
    color: var(--color-accent-red);
    text-shadow: 0 0 10px var(--color-accent-red);
}

.rules-section li strong {
    color: #fff;
    margin-right: 0.5rem;
}

/* Flag Signals Grid */
.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.flag-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flag-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.flag-card strong {
    font-size: 1.1rem;
    display: block;
}

/* Flag Variants */
.flag-green {
    border-left: 4px solid #00ff00 !important;
    background: linear-gradient(90deg, rgba(0, 255, 0, 0.05) 0%, transparent 100%);
}

.flag-yellow {
    border-left: 4px solid #ffff00 !important;
    background: linear-gradient(90deg, rgba(255, 255, 0, 0.05) 0%, transparent 100%);
}

.flag-red {
    border-left: 4px solid #ff0000 !important;
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.05) 0%, transparent 100%);
}

.flag-black {
    border-left: 4px solid #000000 !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.flag-white {
    border-left: 4px solid #ffffff !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.flag-blue {
    border-left: 4px solid #0000ff !important;
    background: linear-gradient(90deg, rgba(0, 0, 255, 0.05) 0%, transparent 100%);
}

.rules-footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .rules-header h1 {
        font-size: 2rem;
    }

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