/* ============================================
   RULES PAGE - MODERN DESIGN
   Counter-Strike Source Community Rules
   ============================================ */

/* Variables */
:root {
    --rules-primary: #00d4ff;
    --rules-secondary: #ff006e;
    --rules-warning: #ffbe0b;
    --rules-danger: #ff006e;
    --rules-success: #06ffa5;
    --rules-dark: #0a0e27;
    --rules-card-bg: rgba(15, 20, 40, 0.95);
    --rules-border: rgba(0, 212, 255, 0.2);
    --rules-hover: rgba(0, 212, 255, 0.1);
}

/* Hero Section */
.rules-hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    position: relative;
    overflow: hidden;
    /* padding-top: 0; */
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: pulse-gradient 8s ease-in-out infinite;
}

@keyframes pulse-gradient {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.rules-hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 900px;
}

.rules-hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--rules-primary) 0%, #fff 50%, var(--rules-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.rules-hero-subtitle {
    font-size: 1.5rem;
    color: var(--rules-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.rules-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Quick Stats Section */
.rules-quick-stats {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--rules-dark), #0f1428);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: var(--rules-card-bg);
    border: 2px solid var(--rules-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--rules-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--rules-primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--rules-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Rules Categories */
.rules-categories {
    padding: 6rem 0;
    background: #0f1428;
}

.category-header {
    text-align: center;
    margin-bottom: 4rem;
}

.category-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
}

.category-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rule-item {
    background: var(--rules-card-bg);
    border: 2px solid var(--rules-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rule-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--rules-primary), var(--rules-secondary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    border-color: var(--rules-primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.rule-item:hover::before {
    transform: scaleY(1);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.rule-number {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: var(--rules-primary);
    opacity: 0.3;
    line-height: 1;
}

.rule-title {
    flex: 1;
}

.rule-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.rule-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rule-tag.critical {
    background: rgba(255, 0, 110, 0.2);
    color: var(--rules-danger);
    border: 1px solid var(--rules-danger);
}

.rule-tag.important {
    background: rgba(255, 190, 11, 0.2);
    color: var(--rules-warning);
    border: 1px solid var(--rules-warning);
}

.rule-tag.standard {
    background: rgba(0, 212, 255, 0.2);
    color: var(--rules-primary);
    border: 1px solid var(--rules-primary);
}

.rule-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.rule-examples {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--rules-primary);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.rule-examples strong {
    color: var(--rules-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.rule-examples ul {
    list-style: none;
    padding: 0;
}

.rule-examples li {
    color: rgba(255, 255, 255, 0.6);
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.rule-examples li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--rules-primary);
}

.rule-penalty {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 0, 110, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 110, 0.3);
}

.penalty-icon {
    font-size: 1.5rem;
    color: var(--rules-danger);
}

.penalty-text strong {
    color: var(--rules-danger);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.penalty-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Sanctions Timeline */
.sanctions-timeline {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #0f1428, var(--rules-dark));
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 65px;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--rules-primary), var(--rules-secondary));
    opacity: 0.3;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.timeline-content {
    background: var(--rules-card-bg);
    border: 2px solid var(--rules-border);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-content .duration {
    color: var(--rules-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.timeline-marker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--rules-card-bg);
    border: 3px solid var(--rules-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--rules-primary);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    flex-shrink: 0;
}

/* Appeals Section */
.appeals-section {
    padding: 6rem 0;
    background: var(--rules-dark);
}

.appeals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.appeals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.appeal-step {
    background: var(--rules-card-bg);
    border: 2px solid var(--rules-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.appeal-step:hover {
    transform: translateY(-10px);
    border-color: var(--rules-primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.step-number-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rules-primary), var(--rules-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0 auto 1.5rem;
}

.appeal-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.appeal-step p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Discord CTA */
.discord-cta {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 20px;
}

.discord-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.discord-cta p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-discord:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.5);
}

.btn-discord i {
    font-size: 1.5rem;
}

/* Important Notice */
.important-notice {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--rules-dark), #0f1428);
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.notice-card {
    background: var(--rules-card-bg);
    border: 2px solid var(--rules-warning);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--rules-warning), var(--rules-danger));
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.notice-icon {
    font-size: 3rem;
    color: var(--rules-warning);
}

.notice-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.notice-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.notice-point {
    display: flex;
    gap: 1rem;
}

.notice-point i {
    color: var(--rules-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-point-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.notice-point-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container::before {
        display: none;
    }
    
    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .appeals-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-item,
.stat-card,
.appeal-step {
    animation: fadeInUp 0.6s ease-out backwards;
}

.rule-item:nth-child(1) { animation-delay: 0.1s; }
.rule-item:nth-child(2) { animation-delay: 0.2s; }
.rule-item:nth-child(3) { animation-delay: 0.3s; }
.rule-item:nth-child(4) { animation-delay: 0.4s; }
.rule-item:nth-child(5) { animation-delay: 0.5s; }
.rule-item:nth-child(6) { animation-delay: 0.6s; }
