/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* الألوان - الوضع الداكن */
    --primary: #8A2BE2;
    --primary-dark: #2D1B69;
    --secondary: #1A103C;
    --text: #FFFFFF;
    --text-light: #CCCCCC;
    --card-bg: rgba(45, 27, 105, 0.7);
    --border: rgba(138, 43, 226, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.3s ease;
}

.light-mode {
    /* الألوان - الوضع الفاتح */
    --primary: #7B1FA2;
    --primary-dark: #6A11CB;
    --secondary: #F8F9FA;
    --text: #1A1A1A;
    --text-light: #333333;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(123, 31, 162, 0.15);
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    transition: var(--transition);
    overflow-x: hidden;
}

body.ltr {
    direction: ltr;
    font-family: 'Poppins', sans-serif;
}

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

/* التمرير السلس */
html {
    scroll-behavior: smooth;
}

/* الهيدر */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    transition: var(--transition);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: var(--primary);
    color: white;
}

/* شريط الأخبار */
.news-ticker {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 10px 0;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 30s linear infinite;
    font-weight: 500;
    font-size: 1rem;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.ltr .ticker-content {
    padding-right: 0;
    padding-left: 100%;
    animation: ticker-ltr 30s linear infinite;
}

@keyframes ticker-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.edit-news-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.edit-news-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.light-mode .edit-news-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
}

.light-mode .edit-news-btn:hover {
    background: white;
}

/* قسم البطل */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%238a2be2" opacity="0.05" d="M0,0 L100,0 L100,100 Z"/></svg>');
    background-size: cover;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary), #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 800;
}

.light-mode .hero-content h1 {
    background: linear-gradient(135deg, #7B1FA2, #D81B60);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    font-weight: 500;
    line-height: 1.8;
}

.light-mode .hero-content p {
    color: #333;
    font-weight: 600;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.4);
}

.cta-btn:active {
    transform: translateY(-2px);
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.profile-image {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.live-indicator {
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    background: var(--card-bg);
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #666;
    backdrop-filter: blur(10px);
    font-weight: 600;
    transition: var(--transition);
    min-width: 120px;
    justify-content: center;
}

.live-indicator.live {
    border-color: #FF0000;
    color: #FF0000;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
        border-color: #FF0000;
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
        border-color: #FF4444;
    }
}

.live-indicator.live .dot {
    background: #FF0000;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    transition: var(--transition);
    display: inline-block;
}

.profile-titles {
    margin: 25px 0;
    text-align: center;
    height: 50px;
    overflow: hidden;
}

.title-slider {
    height: 40px;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    flex-direction: column;
    animation: slide 20s infinite ease-in-out;
}

@keyframes slide {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-40px); }
    40%, 55% { transform: translateY(-80px); }
    60%, 75% { transform: translateY(-120px); }
    80%, 95% { transform: translateY(-160px); }
    100% { transform: translateY(0); }
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0 10px;
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .profile-actions {
        flex-direction: column;
    }
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    min-height: 45px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.action-btn.twitch {
    background: #9146FF;
    color: white;
}

.action-btn.twitch:hover {
    background: #7B3AE6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(145, 70, 255, 0.3);
}

.action-btn.discord {
    background: #5865F2;
    color: white;
}

.action-btn.discord:hover {
    background: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.motivational-quote {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
}

.light-mode .motivational-quote {
    border-left-color: var(--primary);
}

/* قسم عني */
.about {
    padding: 80px 0;
    background: var(--secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    border: 5px solid var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.light-mode .about-text p {
    color: #444;
}

/* روابط التواصل */
.social {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    position: relative;
}

.social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

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

.social-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.social-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.social-card:hover i {
    transform: scale(1.1);
}

.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.social-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
    margin: 0;
}

.light-mode .social-card p {
    color: #555;
}

/* ألوان منصات التواصل */
.youtube { color: #FF0000; }
.twitch { color: #9146FF; }
.instagram { color: #E4405F; }
.twitter { color: #1DA1F2; }
.kick { color: #53FC18; }
.tiktok { color: #000000; }
.discord { color: #5865F2; }

.light-mode .tiktok {
    color: #333;
}

/* قسم الديسكورد */
.discord-section {
    padding: 80px 0;
    background: var(--secondary);
    position: relative;
}

.discord-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.discord-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.discord-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.discord-header {
    margin-bottom: 30px;
}

.discord-header i {
    font-size: 4rem;
    color: #5865F2;
    margin-bottom: 15px;
    transition: var(--transition);
}

.discord-card:hover .discord-header i {
    transform: rotate(10deg) scale(1.1);
}

.discord-header h3 {
    font-size: 2rem;
    color: var(--text);
    font-weight: 700;
}

.discord-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.light-mode .discord-desc {
    color: #555;
}

.join-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    margin: 20px 0;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.join-discord:hover::before {
    left: 100%;
}

.join-discord:hover {
    background: #4752C4;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.3);
}

.discord-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.discord-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.discord-features span:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    transform: translateY(-2px);
}

.discord-features i {
    color: #5865F2;
}

/* قسم القواعد */
.rules {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    position: relative;
}

.rules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.rules-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.rule {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.rule:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 8px;
}

.rule:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rule-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.rule:hover .rule-number {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.rule-content h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.rule-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.light-mode .rule-content p {
    color: #555;
}

/* الفوتر */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 50px 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: rotate(15deg);
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 700;
}

.footer-info {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.light-mode .footer-info {
    color: #666;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* تأثيرات انتقال النصوص */
.quote-transition {
    transition: opacity 0.5s ease;
}

.title-transition {
    transition: var(--transition);
}

/* التحميل السريع للصور */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* التجاوب */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        padding: 20px;
        gap: 0;
        transition: 0.3s;
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px !important;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .discord-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .edit-news-btn {
        margin-right: 15px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .rules-list {
        padding: 20px;
    }
    
    .discord-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .motivational-quote {
        font-size: 1rem;
        padding: 15px;
    }
    
    .rule {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .rule-number {
        width: 35px;
        height: 35px;
        margin: 0 auto;
    }
}

/* تحسينات الوضع الفاتح */
.light-mode .navbar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.light-mode .news-ticker {
    background: linear-gradient(90deg, #6A11CB, #7B1FA2);
}

.light-mode .hero {
    background: linear-gradient(135deg, #6A11CB, #F8F9FA);
}

.light-mode .social {
    background: linear-gradient(135deg, #6A11CB, #F8F9FA);
}

.light-mode .rules {
    background: linear-gradient(135deg, #6A11CB, #F8F9FA);
}

/* تحسينات إضافية */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: white;
}

/* تأثيرات التركيز */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* تحسينات الشحن */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
