/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0d0d0d;
    --secondary-black: #1a1a1a;
    --card-bg: #242424;
    --primary-red: #dc143c;
    --hover-red: #ff1744;
    --gold: #ffd700;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --success-green: #00c853;
    --border-color: #333;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, #1a0a0a 100%);
    color: var(--text-white);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 900;
    color: var(--text-white);
}

.logo i {
    color: var(--primary-red);
    font-size: 38px;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-white), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold {
    color: var(--gold);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background: rgba(220, 20, 60, 0.1);
}

.nav-link i {
    margin-left: 8px;
}

/* Censor Banner */
.censor-banner {
    background: linear-gradient(135deg, var(--secondary-black), #2a0a0a);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.censor-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.censor-toggle {
    background: var(--primary-red);
    color: var(--text-white);
    border: none;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.4);
    font-family: 'Tajawal', sans-serif;
}

.censor-toggle:hover {
    background: var(--hover-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.6);
}

.censor-toggle.active {
    background: var(--success-green);
    box-shadow: 0 6px 25px rgba(0, 200, 83, 0.4);
}

.censor-toggle.active:hover {
    background: #00e676;
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.6);
}

.censor-toggle i {
    font-size: 24px;
}

.censor-description {
    color: var(--text-gray);
    font-size: 16px;
    text-align: center;
}

/* Status Message */
.status-message {
    position: fixed;
    top: 120px;
    right: 50%;
    transform: translateX(50%);
    background: var(--card-bg);
    color: var(--text-white);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 2px solid var(--primary-red);
    font-size: 18px;
    font-weight: 600;
}

.status-message.show {
    opacity: 1;
}

.status-message.success {
    border-color: var(--success-green);
    background: linear-gradient(135deg, #1a3a1a, var(--card-bg));
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-white), var(--gold), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 50px;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    color: var(--text-white);
    padding: 15px 30px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50px;
    border: 2px solid var(--primary-red);
}

.feature i {
    color: var(--gold);
    font-size: 28px;
}

/* Manhwa Section */
.manhwa-section {
    padding: 60px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-white);
}

.section-title i {
    color: var(--primary-red);
    margin-left: 15px;
}

.manhwa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.manhwa-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.manhwa-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.4);
}

.manhwa-card-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: var(--secondary-black);
}

.manhwa-card-content {
    padding: 20px;
}

.manhwa-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.manhwa-card-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 14px;
}

.manhwa-card-genre {
    background: rgba(220, 20, 60, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary-red);
    font-weight: 600;
}

.manhwa-card-chapters {
    color: var(--gold);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: rgba(26, 26, 26, 0.5);
}

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

.step {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(220, 20, 60, 0.3);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--hover-red));
    color: var(--text-white);
    font-size: 36px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-white);
}

.step p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-black);
    padding: 40px 0;
    text-align: center;
    border-top: 2px solid var(--primary-red);
    margin-top: 80px;
}

.footer p {
    color: var(--text-gray);
    font-size: 16px;
    margin: 8px 0;
}

.footer-subtitle {
    color: var(--gold);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

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

    .hero-subtitle {
        font-size: 18px;
    }

    .manhwa-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .censor-toggle {
        font-size: 18px;
        padding: 15px 35px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}