/* ============================================
   Competition Rules Page - Clean Minimal 2025 Design
   Based on Features Page pattern
   ============================================ */

/* ==========================================================================
   Page Foundation
   ========================================================================== */

.c-rules-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* ==========================================================================
   Hero Section - Clean & Simple
   ========================================================================== */

.c-rules-page__hero {
    background: #ffffff;
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.c-rules-page__hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.c-rules-page__title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.c-rules-page__subtitle {
    font-size: 17px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Content Container
   ========================================================================== */

.c-rules-page__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ==========================================================================
   Quick Navigation
   ========================================================================== */

.c-rules-page__nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.c-rules-page__nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 16px 0;
    text-align: center;
}

.c-rules-page__nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.c-rules-page__nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.c-rules-page__nav-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    text-decoration: none;
}

.c-rules-page__nav-item:focus,
.c-rules-page__nav-item:active {
    text-decoration: none;
}

.c-rules-page__nav-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #0891b2 100%);
    border-color: transparent;
    color: white;
}

.c-rules-page__nav-item svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
}

/* ==========================================================================
   Competition Rules Card
   ========================================================================== */

.c-rules-page__card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.c-rules-page__card:hover {
    border-color: #cbd5e1;
}

.c-rules-page__card.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Card Header */
.c-rules-page__card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.c-rules-page__card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.c-rules-page__card-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    color: white;
}

/* Competition Type Icon Gradients */
.c-rules-page__card-icon--golden-goal {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.c-rules-page__card-icon--correct-score {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.c-rules-page__card-icon--gaa {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.c-rules-page__card-icon--lms {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.c-rules-page__card-icon--perfect-strike {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.c-rules-page__card-icon--finish-time {
    background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
}

.c-rules-page__card-info {
    flex: 1;
    min-width: 0;
}

.c-rules-page__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.c-rules-page__card-description {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Rules Sections within Card
   ========================================================================== */

.c-rules-page__section {
    margin-bottom: 24px;
}

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

.c-rules-page__section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.c-rules-page__section-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #0891b2 100%);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.c-rules-page__section-icon svg {
    width: 16px;
    height: 16px;
}

.c-rules-page__section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

/* Rules List */
.c-rules-page__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.c-rules-page__list-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 14px 14px 14px 44px;
    position: relative;
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
}

.c-rules-page__list-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 17px;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Special Content Boxes
   ========================================================================== */

/* Example Box */
.c-rules-page__example {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 10px;
    padding: 18px;
    margin-top: 16px;
}

.c-rules-page__example-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.c-rules-page__example-icon {
    font-size: 16px;
}

.c-rules-page__example-title {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    margin: 0;
}

.c-rules-page__example-text {
    font-size: 14px;
    color: #065f46;
    margin: 0;
    line-height: 1.6;
}

.c-rules-page__example-text p {
    margin: 0 0 8px 0;
}

.c-rules-page__example-text p:last-child {
    margin-bottom: 0;
}

/* Warning Box */
.c-rules-page__warning {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    padding: 18px;
    margin-top: 16px;
}

.c-rules-page__warning-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.c-rules-page__warning-icon {
    width: 18px;
    height: 18px;
    color: #d97706;
}

.c-rules-page__warning-title {
    font-size: 14px;
    font-weight: 600;
    color: #d97706;
    margin: 0;
}

.c-rules-page__warning-text {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

.c-rules-page__warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.c-rules-page__warning-list li {
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.c-rules-page__warning-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #d97706;
    font-weight: bold;
}

/* ==========================================================================
   General Terms Section
   ========================================================================== */

.c-rules-page__general {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-top: 40px;
}

.c-rules-page__general-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.c-rules-page__general-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.c-rules-page__general-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 20px;
}

.c-rules-page__general-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.c-rules-page__general-icon {
    font-size: 18px;
}

.c-rules-page__general-icon svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
}

.c-rules-page__general-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.c-rules-page__general-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.c-rules-page__general-list li {
    font-size: 14px;
    color: #64748b;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.c-rules-page__general-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.c-rules-page__cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px 28px;
    text-align: center;
    margin-top: 32px;
}

.c-rules-page__cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.c-rules-page__cta-text {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.c-rules-page__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #0891b2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.c-rules-page__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: white;
}

.c-rules-page__cta-button svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .c-rules-page__hero {
        padding: 32px 20px;
    }

    .c-rules-page__title {
        font-size: 26px;
    }

    .c-rules-page__content {
        padding: 24px 20px 64px;
    }

    .c-rules-page__nav {
        padding: 20px;
    }

    .c-rules-page__nav-grid {
        gap: 8px;
    }

    .c-rules-page__nav-item {
        padding: 8px 14px;
        font-size: 13px;
    }

    .c-rules-page__card {
        padding: 24px;
    }

    .c-rules-page__card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .c-rules-page__card-title {
        font-size: 18px;
    }

    .c-rules-page__general {
        padding: 24px;
    }

    .c-rules-page__general-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .c-rules-page__hero {
        padding: 28px 16px;
    }

    .c-rules-page__title {
        font-size: 24px;
    }

    .c-rules-page__subtitle {
        font-size: 15px;
    }

    .c-rules-page__content {
        padding: 20px 16px 48px;
    }

    .c-rules-page__nav,
    .c-rules-page__card,
    .c-rules-page__general {
        padding: 20px;
    }

    .c-rules-page__cta {
        padding: 28px 20px;
    }

    .c-rules-page__cta-title {
        font-size: 18px;
    }
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}
