/* --- Root Styles & Global Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    color: #e6e6e6;
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* --- Layout Buttons Size Normalization --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    width: 260px;
    height: 54px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #8b0000 0%, #d4af37 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4af37 0%, #8b0000 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(20, 20, 20, 0.8);
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #0d0d0d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #b3b3b3;
    border: 1px solid #333;
}

.btn-outline:hover {
    border-color: #d4af37;
    color: #fff;
}

.btn-full-width {
    width: 100% !important;
}

.btn-login {
    width: 130px;
    height: 40px;
    font-size: 0.9rem;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #ccc;
}

.btn-login:hover {
    border-color: #d4af37;
    color: #fff;
}

.btn-discord-large {
    background: #5865F2;
    color: #fff;
}

.btn-discord-large:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.main-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #222;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    height: 5rem;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #b3b3b3;
}

.main-nav a:hover, .main-nav a.active {
    color: #d4af37;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* تنسيق زر تبديل اللغة الاحترافي */
.btn-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 4px;
    color: #ccc;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lang-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    color: #d4af37;
}

.lang-flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-overlay-darkness {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,13,13,0.4) 0%, rgba(13,13,13,0.95) 100%);
    z-index: 2;
}

.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dragon-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-branding .hero-subtitle-tag {
    font-family: 'Oswald', sans-serif;
    color: #d4af37;
    letter-spacing: 4px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 40px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-actions-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* --- Social Sticky Side-bar --- */
.side-social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-icon img {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.15);
}

/* --- Section Global Blocks --- */
.section-title-block {
    margin-bottom: 45px;
}

.section-title-block h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 2px;
}

.section-title-block.center-text {
    text-align: center;
}

.section-sub-desc {
    color: #999;
    margin-top: 8px;
    font-size: 1rem;
}

.accent-line {
    width: 80px;
    height: 3px;
    background: #d4af37;
    margin-top: 15px;
}

.accent-line.center-align {
    margin-left: auto;
    margin-right: auto;
}

/* --- News & Patch Section --- */
.news-patch-section {
    padding: 100px 20px;
}

.news-layout-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
}

.featured-news-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-image-wrap {
    position: relative;
    height: 340px;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #8b0000;
    color: #fff;
    padding: 5px 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.card-body-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-meta-date {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.featured-news-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
}

.featured-news-card p {
    color: #aa9;
    line-height: 1.6;
    margin-bottom: 25px;
}

.text-link-arrow {
    font-weight: 700;
}

.patch-notes-feed-list {
    background: #141414;
    border: 1px solid #222;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.patch-notes-feed-list h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #222;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.feed-items-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.feed-item-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feed-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 600;
    min-width: 65px;
    text-align: center;
}

.tag-update { background: #d4af37; color: #000; }
.tag-event { background: #008080; color: #fff; }
.tag-fixes { background: #444; color: #ddd; }

.feed-meta-details .feed-date {
    font-size: 0.8rem;
    color: #555;
    display: block;
}

.feed-meta-details h4 a {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.4;
}

.feed-meta-details h4 a:hover {
    color: #d4af37;
}

/* --- السلايدر الأفقي السحاب الاحترافي القابل للسحب (CHOOSE YOUR CLASS ROLE) --- */
.class-showcase-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #0d0d0d 0%, #111 50%, #0d0d0d 100%);
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.class-carousel-container {
    overflow-x: auto;
    width: 100%;
    cursor: grab;
    padding: 20px 5px;
    scrollbar-width: none; /* إخفاء شريط التمرير الافتراضي في فايرفوكس */
    -webkit-overflow-scrolling: touch;
}

.class-carousel-container::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير الافتراضي في كروم وسفاري */
}

.class-carousel-container.active {
    cursor: grabbing;
}

/* فرض التموضع الأفقي المطلق لضمان بقاء الكروت بجانب بعضها بشكل شريطي */
.class-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    width: max-content;
}

/* تثبيت مساحات وأبعاد الكروت الفردية لضمان التناسق الدقيق */
.class-carousel-track .class-card-node {
    width: 320px;
    height: 420px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #252525;
    padding: 40px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px;
    box-sizing: border-box;
    flex-shrink: 0; /* يمنع الكارت تماماً من الانكماش أو النزول عمودياً */
    user-select: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.class-carousel-track .class-card-node:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
}

.class-icon-circle {
    width: 96px;
    height: 96px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    border: 1px solid #333;
}

.class-card-node h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.class-essence {
    color: #d4af37;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.class-card-node p:not(.class-essence) {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Leaderboard Rankings Section --- */
.rankings-board-section {
    padding: 100px 20px;
}

.leaderboard-data-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
}

.leaderboard-table-panel {
    background: #141414;
    border: 1px solid #222;
    padding: 30px;
}

.leaderboard-table-panel h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
}

.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

.leaderboard-data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-data-table th {
    background: #1a1a1a;
    padding: 12px 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #999;
    border-bottom: 2px solid #222;
}

.leaderboard-data-table td {
    padding: 15px;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
}

.badge-rank {
    background: #333;
    color: #fff;
    padding: 3px 8px;
    font-weight: 700;
    border-radius: 2px;
}

.rank-row-1 .badge-rank { background: #d4af37; color: #000; }
.rank-row-2 .badge-rank { background: #c0c0c0; color: #000; }
.rank-row-3 .badge-rank { background: #cd7f32; color: #000; }

.class-tag {
    font-size: 0.8rem;
    padding: 2px 6px;
    background: #222;
    border-radius: 3px;
}

.numeric-highlight {
    color: #d4af37;
    font-weight: 700;
}

.ranking-promo-media-box {
    background: #141414;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.video-preview-canvas {
    position: relative;
    height: 260px;
    cursor: pointer;
}

.video-preview-canvas img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(139, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-preview-canvas:hover .video-play-trigger {
    background: #d4af37;
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 5px;
}

.promo-text-details {
    padding: 25px;
}

.promo-text-details h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
}

.promo-text-details p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Events Schedule Section --- */
.event-calendar-section {
    padding: 100px 20px;
    background: #0a0a0a;
}

.events-schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.timeline-event-card {
    background: #141414;
    border-left: 4px solid #333;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.timeline-event-card.border-active {
    border-left-color: #d4af37;
}

.time-stamp-node {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #d4af37;
    min-width: 160px;
    font-weight: 600;
}

.event-core-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.event-core-info p {
    color: #888;
    font-size: 0.95rem;
}

/* --- Conversion Callout Row --- */
.community-convergence-banner {
    background: linear-gradient(90deg, #111 0%, #1a1a1a 100%);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 60px 0;
}

.conversion-flex-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.conversion-text-left h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 8px;
}

.conversion-text-left p {
    color: #999;
}

/* --- Support Frameworks Section --- */
.support-contact-section {
    padding: 100px 20px;
}

.support-layout-split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
}

.support-knowledge-cards h3, .support-form-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.faq-accordion-block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-node {
    background: #141414;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 4px;
}

.faq-node summary {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    outline: none;
}

.faq-node p {
    margin-top: 15px;
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
}

.support-form-card {
    background: #141414;
    border: 1px solid #222;
    padding: 40px;
    border-radius: 4px;
}

.standard-input-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field-unit {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-unit label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
}

.form-field-unit input, .form-field-unit select, .form-field-unit textarea {
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 12px 15px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-field-unit input:focus, .form-field-unit select:focus, .form-field-unit textarea:focus {
    border-color: #d4af37;
}

/* --- Main Site Footer Blocks --- */
.main-footer {
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 80px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 25px;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #888;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
}

.build-version-tag {
    margin-top: 8px;
    color: #444 !important;
}

/* --- Secure Member Sign-In Modal Layer --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #141414;
    border: 1px solid #333;
    padding: 50px;
    width: 100%;
    max-width: 480px;
    position: relative;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.modal-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.5px;
}

.modal-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
}

.form-group input {
    background: #0d0d0d;
    border: 1px solid #333;
    padding: 12px 15px;
    color: #fff;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus {
    border-color: #d4af37;
}

.form-row-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.checkbox-container {
    color: #888;
    cursor: pointer;
}

.forgot-password {
    color: #888;
}

.forgot-password:hover {
    color: #d4af37;
}

.modal-register-callout {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 15px;
    color: #666;
}

.modal-register-callout a {
    color: #d4af37;
    font-weight: 700;
}