/* ============================================
   VolleyBul - Rules CSS - Professional Design
   ============================================ */

/* Background */
.rules-bg {
    background:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.rules-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(249, 115, 22, 0.2) 2px, transparent 2px),
        radial-gradient(circle, rgba(13, 148, 136, 0.15) 2px, transparent 2px);
    background-size: 60px 60px, 80px 80px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    animation: rulesDotsFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes rulesDotsFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.rules-bg>* {
    position: relative;
    z-index: 1;
}

/* Container */
.rules-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Title */
.rules-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rules-title .animate-icon {
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
    color: #fbbf24;
    font-size: 2.5rem;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(15deg);
    }
}

/* Rules Content Card */
.rules-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Rules List */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rule-counter;
}

.rules-list>li {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #f97316, #fbbf24) 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.rules-list>li:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rules-list>li:nth-child(1) {
    border-image: linear-gradient(180deg, #f97316, #fbbf24) 1;
}

.rules-list>li:nth-child(2) {
    border-image: linear-gradient(180deg, #3b82f6, #06b6d4) 1;
}

.rules-list>li:nth-child(3) {
    border-image: linear-gradient(180deg, #10b981, #34d399) 1;
}

.rules-list>li:nth-child(4) {
    border-image: linear-gradient(180deg, #8b5cf6, #a78bfa) 1;
}

.rules-list>li:nth-child(5) {
    border-image: linear-gradient(180deg, #ef4444, #f87171) 1;
}

.rules-list>li>strong {
    display: block;
    font-size: 1.15rem;
    color: #1e3a5f;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Sub-rules */
.rules-list>li>ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list>li>ul>li {
    position: relative;
    padding: 10px 0 10px 30px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #e2e8f0;
}

.rules-list>li>ul>li:last-child {
    border-bottom: none;
}

.rules-list>li>ul>li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #f97316;
    font-weight: bold;
}

/* Icon styles for items */
.rules-list>li:nth-child(1)>ul>li::before {
    color: #f97316;
}

.rules-list>li:nth-child(2)>ul>li::before {
    color: #3b82f6;
}

.rules-list>li:nth-child(3)>ul>li::before {
    color: #10b981;
}

.rules-list>li:nth-child(4)>ul>li::before {
    color: #8b5cf6;
}

.rules-list>li:nth-child(5)>ul>li::before {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-bg {
        padding: 40px 15px;
    }

    .rules-title {
        font-size: 1.5rem;
    }

    .rules-title .animate-icon {
        font-size: 1.8rem;
    }

    .rules-content {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .rules-list>li {
        padding: 20px;
    }

    .rules-list>li>strong {
        font-size: 1rem;
    }
}