/* ===========================
   REGULAMIN STYLES
   =========================== */

.navbar-regulamin {
    background: rgba(10, 14, 26, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.regulamin-hero {
    margin-top: 80px;
    padding: 150px 0 80px;
    background: #03121D;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.regulamin-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, rgba(0, 217, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.regulamin-hero .container {
    position: relative;
    z-index: 1;
}

.regulamin-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.regulamin-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.regulamin-content {
    padding: 80px 0;
    background: var(--dark-bg);
}

.regulamin-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.regulamin-sidebar {
    position: sticky;
    top: 100px;
}

.toc-box {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
}

.toc-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-link {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
    border-left-color: #00D9FF;
    transform: translateX(5px);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00D9FF, #00A8CC);
    width: 0%;
    transition: width 0.3s ease;
}

.regulamin-main {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
}

.reg-section {
    margin-bottom: 60px;
    scroll-margin-top: 120px;
}

.intro-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(21, 128, 61, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.intro-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0 0 20px 0;
}

.important-note {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.important-note h3 {
    font-size: 18px;
    color: #fbbf24;
    margin: 0 0 15px 0;
}

.important-note p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.important-note p:last-child {
    margin-bottom: 0;
}

.section-header-reg {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.2);
}

.section-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00D9FF, #00A8CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.section-title-reg {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.rule-item {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-left: 4px solid #00D9FF;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(0, 217, 255, 0.06);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.rule-highlight {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-left-color: #ef4444;
}

.rule-highlight .rule-number {
    color: #ef4444;
}

.rule-number {
    font-size: 16px;
    font-weight: 700;
    color: #00D9FF;
    margin-bottom: 8px;
}

.rule-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* Limits Table */
.limits-table {
    margin: 30px 0;
    overflow-x: auto;
}

.limits-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.limits-table thead {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 168, 204, 0.2));
}

.limits-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    color: #00D9FF;
    font-size: 16px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.limits-table td {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.limits-table tbody tr:last-child td {
    border-bottom: none;
}

.limits-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

/* Definitions Grid */
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.definition-item {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-left: 4px solid #00D9FF;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.definition-item:hover {
    background: rgba(0, 217, 255, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.definition-term {
    font-size: 18px;
    font-weight: 700;
    color: #00D9FF;
    margin-bottom: 10px;
}

.definition-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .regulamin-layout {
        grid-template-columns: 1fr;
    }

    .regulamin-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .toc-box {
        max-height: none;
    }

    .regulamin-title {
        font-size: 36px;
    }

    .section-header-reg {
        gap: 15px;
    }

    .section-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .navbar-regulamin {
        height: 80px;
    }

    .navbar-regulamin .container {
        height: 80px;
    }

    .navbar-regulamin .logo img {
        height: 40px;
    }

    .regulamin-hero {
        margin-top: 80px;
        padding: 80px 0 40px;
    }

    .regulamin-title {
        font-size: 28px;
    }

    .regulamin-subtitle {
        font-size: 14px;
    }

    .regulamin-main {
        padding: 25px;
    }

    .reg-section {
        margin-bottom: 40px;
    }

    .section-header-reg {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .section-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .section-title-reg {
        font-size: 22px;
    }

    .rule-item {
        padding: 15px;
    }

    .rule-number {
        font-size: 14px;
    }

    .rule-content {
        font-size: 13px;
    }

    .definitions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .definition-item {
        padding: 15px;
    }

    .definition-term {
        font-size: 16px;
    }

    .definition-desc {
        font-size: 13px;
    }

    .limits-table {
        font-size: 13px;
    }

    .limits-table th,
    .limits-table td {
        padding: 10px;
        font-size: 12px;
    }

    .intro-box {
        padding: 20px;
    }

    .intro-box h2 {
        font-size: 22px;
    }

    .intro-box p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .regulamin-title {
        font-size: 24px;
    }

    .regulamin-subtitle {
        font-size: 12px;
    }

    .regulamin-main {
        padding: 20px;
    }

    .section-title-reg {
        font-size: 18px;
    }

    .section-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .rule-item {
        padding: 12px;
    }

    .limits-table th,
    .limits-table td {
        padding: 8px;
        font-size: 11px;
    }
}

