﻿/* ============================================
           RULES — قوانین و مقررات ریحانو
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
           HEADER
           ============================================ */
.rules-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

    .rules-header .header-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #003366, #0a4d8c);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #F4B400;
        font-size: 2rem;
        margin: 0 auto 16px;
        box-shadow: 0 8px 30px rgba(0, 51, 102, 0.2);
    }

    .rules-header h1 {
        font-weight: 800;
        font-size: 2rem;
        color: #003366;
        margin-bottom: 6px;
    }

        .rules-header h1 span {
            color: #F4B400;
        }

    .rules-header p {
        color: #6b7280;
        font-size: 1.05rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .rules-header .last-update {
        display: inline-block;
        margin-top: 12px;
        padding: 4px 16px;
        border-radius: 50px;
        background: #f0f2f5;
        color: #6b7280;
        font-size: 0.8rem;
    }

/* ============================================
           BREADCRUMB
           ============================================ */
.breadcrumb-section {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .breadcrumb-section a {
        color: #003366;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .breadcrumb-section a:hover {
            color: #F4B400;
        }

    .breadcrumb-section .separator {
        color: #d1d5db;
    }

    .breadcrumb-section .current {
        color: #6b7280;
        font-size: 0.9rem;
    }

/* ============================================
           RULES CONTAINER
           ============================================ */
.rules-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 45px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ============================================
           INTRODUCTION
           ============================================ */
.rules-intro {
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 28px;
}

    .rules-intro h2 {
        font-weight: 800;
        color: #003366;
        font-size: 1.3rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .rules-intro h2 i {
            color: #F4B400;
        }

    .rules-intro p {
        color: #6b7280;
        font-size: 0.95rem;
        line-height: 1.9;
    }

/* ============================================
           RULES SECTIONS
           ============================================ */
.rules-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f2f5;
}

    .rules-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .rules-section .section-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

        .rules-section .section-header .section-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #003366, #0a4d8c);
            color: #F4B400;
            border-radius: 8px;
            font-weight: 700;
            font-size: 0.85rem;
            padding: 0 8px;
        }

        .rules-section .section-header h3 {
            font-weight: 700;
            color: #003366;
            font-size: 1.1rem;
            margin: 0;
        }

            .rules-section .section-header h3 i {
                color: #F4B400;
                margin-left: 8px;
            }

    .rules-section .section-content {
        padding-right: 44px;
    }

        .rules-section .section-content p {
            color: #4b5563;
            font-size: 0.95rem;
            line-height: 1.9;
            margin-bottom: 8px;
        }

        .rules-section .section-content ul {
            list-style: none;
            padding: 0;
            margin: 4px 0 8px;
        }

            .rules-section .section-content ul li {
                color: #4b5563;
                font-size: 0.95rem;
                line-height: 1.9;
                padding: 4px 0;
                padding-right: 24px;
                position: relative;
            }

                .rules-section .section-content ul li::before {
                    content: '\f0da';
                    font-family: 'Font Awesome 6 Free';
                    font-weight: 900;
                    color: #F4B400;
                    position: absolute;
                    right: 0;
                    top: 4px;
                    font-size: 0.8rem;
                }

        .rules-section .section-content .highlight-text {
            color: #003366;
            font-weight: 600;
        }

        .rules-section .section-content .highlight-gold {
            color: #F4B400;
            font-weight: 600;
        }

/* ============================================
           CONTACT INFO IN RULES
           ============================================ */
.rules-contact {
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 12px;
    border: 1px solid #f0f2f5;
}

    .rules-contact .contact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 0;
        color: #4b5563;
        font-size: 0.9rem;
    }

        .rules-contact .contact-item i {
            color: #F4B400;
            width: 20px;
            text-align: center;
        }

        .rules-contact .contact-item a {
            color: #003366;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

            .rules-contact .contact-item a:hover {
                color: #F4B400;
            }

/* ============================================
           ACCEPTANCE (فقط مطالعه)
           ============================================ */
.rules-acceptance {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 18px 24px;
    border-right: 4px solid #F4B400;
    margin-top: 12px;
}

    .rules-acceptance p {
        font-size: 0.95rem;
        line-height: 1.9;
        color: #1a1a2e;
        margin: 0;
    }

    .rules-acceptance strong {
        color: #003366;
    }

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 992px) {
    .rules-container {
        padding: 30px 28px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .rules-header {
        padding: 30px 16px 24px;
    }

        .rules-header h1 {
            font-size: 1.5rem;
        }

        .rules-header p {
            font-size: 0.95rem;
        }

    .rules-container {
        padding: 20px 18px;
    }

    .rules-intro h2 {
        font-size: 1.1rem;
    }

    .rules-section .section-header h3 {
        font-size: 0.95rem;
    }

    .rules-section .section-content {
        padding-right: 0;
    }

        .rules-section .section-content p,
        .rules-section .section-content ul li {
            font-size: 0.9rem;
        }

        .rules-section .section-content ul li {
            padding-right: 20px;
        }

            .rules-section .section-content ul li::before {
                font-size: 0.7rem;
            }

    .breadcrumb-section {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .rules-contact {
        padding: 14px 16px;
    }

        .rules-contact .contact-item {
            font-size: 0.85rem;
        }

    .rules-acceptance {
        padding: 14px 16px;
    }

        .rules-acceptance p {
            font-size: 0.9rem;
        }
}

@media (max-width: 576px) {
    .rules-header h1 {
        font-size: 1.2rem;
    }

    .rules-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .rules-container {
        padding: 14px 12px;
        border-radius: 12px;
    }

    .rules-section {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

        .rules-section .section-header {
            gap: 8px;
        }

            .rules-section .section-header .section-number {
                min-width: 28px;
                height: 28px;
                font-size: 0.7rem;
            }

            .rules-section .section-header h3 {
                font-size: 0.85rem;
            }

        .rules-section .section-content p,
        .rules-section .section-content ul li {
            font-size: 0.85rem;
        }

        .rules-section .section-content ul li {
            padding-right: 16px;
        }

            .rules-section .section-content ul li::before {
                font-size: 0.6rem;
            }

    .rules-intro p {
        font-size: 0.85rem;
    }

    .breadcrumb-section {
        font-size: 0.7rem;
        padding: 8px 12px;
        gap: 6px;
    }

        .breadcrumb-section .separator {
            display: none;
        }

    .rules-contact .contact-item {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .rules-acceptance {
        padding: 12px 14px;
    }

        .rules-acceptance p {
            font-size: 0.85rem;
        }

    .rules-header .last-update {
        font-size: 0.7rem;
    }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #d49d00;
    }

/* ============================================
           PRINT STYLES
           ============================================ */
@media print {
    body {
        background: #fff;
        padding: 10px;
    }

    .breadcrumb-section {
        display: none;
    }

    .rules-header {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .rules-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .rules-section .section-content ul li::before {
        content: '•';
        color: #003366;
    }
}
