/* Rules Page Styles */

.rules-hero {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.rules-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.glitch {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 
        3px 3px 0 rgba(255, 0, 0, 0.5),
        -3px -3px 0 rgba(0, 255, 255, 0.5);
    animation: glitch-anim 3s infinite;
}

@keyframes glitch-anim {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(2px, 2px);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-3 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }
    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }
    /* Add more keyframes for variety */
    100% {
        clip: rect(35px, 9999px, 66px, 0);
    }
}

@keyframes glitch-anim-3 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }
    5% {
        clip: rect(52px, 9999px, 74px, 0);
    }
    10% {
        clip: rect(79px, 9999px, 85px, 0);
    }
    /* Add more keyframes for variety */
    100% {
        clip: rect(60px, 9999px, 80px, 0);
    }
}

.rules-content {
    padding: 4rem 0;
    background: var(--dark-bg);
}

/* Rules Cards */
.rules-main {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.rules-card {
    background: linear-gradient(135deg, rgba(26, 29, 53, 0.9) 0%, rgba(10, 14, 39, 0.9) 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rules-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.rules-card:hover::before {
    left: 100%;
}

.rules-card:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
    transform: translateY(-4px);
}

.rules-card.emphasized {
    border-color: rgba(255, 0, 100, 0.5);
    background: linear-gradient(135deg, rgba(40, 20, 30, 0.9) 0%, rgba(20, 10, 20, 0.9) 100%);
}

.rules-card.emphasized:hover {
    border-color: rgba(255, 0, 100, 0.8);
    box-shadow: 0 8px 32px rgba(255, 0, 100, 0.3);
}

.rule-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.rules-card.emphasized .rule-number {
    color: #ff0066;
}

.rule-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.rule-note {
    font-size: 0.95rem;
    color: var(--light-blue);
    opacity: 0.8;
    font-style: italic;
    margin-top: 0.75rem;
}

/* Manifesto Section */
.manifesto-section {
    margin: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.manifesto-card {
    background: linear-gradient(135deg, rgba(26, 29, 53, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
    border: 2px solid rgba(138, 43, 226, 0.4);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2);
}

.manifesto-text {
    font-size: 1.2rem;
    color: var(--light-blue);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.manifesto-signature {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.manifesto-signature p {
    font-size: 1.1rem;
    color: var(--white);
    margin: 0.5rem 0;
}

.signature-note {
    font-size: 0.9rem;
    color: var(--light-blue);
    opacity: 0.6;
    font-style: italic;
}

/* Forbidden Section */
.forbidden-section {
    margin: 4rem 0;
}

.forbidden-title {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.forbidden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.forbidden-card {
    background: linear-gradient(135deg, rgba(40, 20, 20, 0.9) 0%, rgba(20, 10, 10, 0.9) 100%);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.forbidden-card:hover {
    border-color: rgba(255, 0, 0, 0.6);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
    transform: translateY(-4px);
}

.forbidden-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.forbidden-title-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6666;
    margin-bottom: 1rem;
}

.forbidden-description {
    font-size: 0.95rem;
    color: var(--light-blue);
    line-height: 1.6;
}

/* Discord Disclaimer */
.discord-disclaimer {
    margin: 4rem 0 2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.disclaimer-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.disclaimer-text {
    font-size: 1rem;
    color: var(--light-blue);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.disclaimer-text strong {
    color: #5865f2;
    font-weight: 700;
}

.disclaimer-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #5865f2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.disclaimer-button:hover {
    background: #4752c4;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .rule-text {
        font-size: 1.2rem;
    }
    
    .manifesto-card {
        padding: 2rem 1.5rem;
    }
    
    .manifesto-text {
        font-size: 1rem;
    }
    
    .forbidden-grid {
        grid-template-columns: 1fr;
    }
    
    .discord-disclaimer {
        flex-direction: column;
        text-align: center;
    }
    
    .disclaimer-icon {
        font-size: 2.5rem;
    }
}
