/*
=========================================
   سيرفر العز | AL3z Community Stylesheet
=========================================
*/

/* 1. Imports & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* 2. Theme & Custom Variables */
:root {
    --bg-primary: #0a0b0e;
    --bg-secondary: #11131b;
    --bg-tertiary: #191c28;
    --bg-glass: rgba(17, 19, 27, 0.75);
    
    --color-gold: #ffbe3b;
    --color-orange: #ff5e00;
    --color-accent: #ff8c00;
    
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-text-dark: #64748b;
    --color-white: #ffffff;
    
    --accent-gradient: linear-gradient(135deg, #ff8c00 0%, #ffbe3b 100%);
    --orange-gradient: linear-gradient(135deg, #ff5e00 0%, #ff8c00 100%);
    --dark-gradient: linear-gradient(180deg, #11131b 0%, #0a0b0e 100%);
    
    --glow-gold: 0 0 15px rgba(255, 190, 59, 0.45);
    --glow-orange: 0 0 20px rgba(255, 94, 0, 0.35);
    --glow-box: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(255, 140, 0, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --header-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --max-width: 1200px;
}

/* 3. Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-orange);
}

/* 4. Common & Utility Classes */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-orange {
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* 5. Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    gap: 10px;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: var(--glow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 190, 59, 0.7);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: rgba(255, 94, 0, 0.05);
    transform: translateY(-3px);
}

.btn-discord {
    background-color: #5865F2;
    color: var(--color-white);
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.btn-store-cta {
    background: var(--orange-gradient);
    color: var(--color-white);
    box-shadow: var(--glow-orange);
}

.btn-store-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 94, 0, 0.6);
}

.btn-store-cta:hover .btn-arrow {
    transform: translateX(-5px); /* Move left because of RTL layout */
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-normal);
}

/* 6. Screen Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.loader-ring span {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--color-orange);
    border-radius: 50%;
    animation: rotate-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring span::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--color-gold);
    border-radius: 50%;
    box-shadow: var(--glow-gold);
}

.loader-logo {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 1px;
    animation: pulse-logo 1.8s ease-in-out infinite;
}

.loader-status {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

@keyframes rotate-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); } /* Counter-clockwise for RTL flow */
}

@keyframes pulse-logo {
    0%, 100% { opacity: 0.6; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* 7. Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 94, 0, 0.4));
    transition: var(--transition-normal);
    border-radius: 50%;
}

.logo-link:hover .logo-img {
    transform: rotate(15deg) scale(1.1);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    color: var(--color-text-muted);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
    border-radius: 2px;
}

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

.nav-link.active {
    color: var(--color-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* 8. Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 40px) 0 80px;
    background-image: url('hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(25, 28, 40, 0.4) 0%, rgba(10, 11, 14, 0.98) 80%),
                linear-gradient(180deg, rgba(10, 11, 14, 0.8) 0%, #0a0b0e 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 680px;
}

.discord-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 140, 0, 0.08);
    border: 1px solid var(--border-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 24px;
}

.tag-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-orange);
    border-radius: 50%;
    position: relative;
}

.tag-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--color-orange);
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions-buttons {
    display: flex;
    gap: 20px;
}

/* Discord Widget Mock Visual */
.visual-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    background: rgba(25, 28, 40, 0.45);
    border: 1px solid var(--border-color);
    box-shadow: var(--glow-box);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2px;
    overflow: hidden;
    transition: var(--transition-slow);
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, var(--color-orange), transparent, transparent);
    animation: rotate-border 6s linear infinite;
    z-index: 1;
}

.discord-widget-mock {
    position: relative;
    background: var(--bg-secondary);
    border-radius: calc(var(--border-radius-lg) - 2px);
    z-index: 2;
    overflow: hidden;
    padding: 24px;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.server-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.server-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-gold);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-accent);
}

.server-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.server-name {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.server-status {
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
}

.widget-body {
    margin-bottom: 24px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.stat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-online {
    background-color: #23a55a;
    box-shadow: 0 0 8px rgba(35, 165, 90, 0.6);
}

.dot-total {
    background-color: var(--color-text-dark);
}

.stat-label {
    color: var(--color-text-muted);
}

.stat-val {
    font-weight: 700;
    margin-right: auto; /* Push left because of RTL flex layout */
}

.voice-channels-mock {
    margin-top: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
}

.channel-title {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.channel-item:last-child {
    margin-bottom: 0;
}

.channel-item:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.user-bubbles {
    display: flex;
    flex-direction: row-reverse;
}

.user-bubble {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-tertiary);
    margin-left: -6px;
}

.live-tag {
    background-color: var(--color-orange);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: var(--border-radius-sm);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 9. Rules Section */
.rules-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Search Bar styling */
.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 4px 18px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-box-wrapper:focus-within {
    border-color: var(--color-orange);
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.2);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-dark);
    margin-left: 14px;
}

.search-box-wrapper input {
    width: 100%;
    padding: 14px 0;
    font-size: 1.05rem;
    outline: none;
    color: var(--color-text);
}

.search-box-wrapper input::placeholder {
    color: var(--color-text-dark);
    font-weight: 400;
}

.clear-search {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    padding: 8px;
    transition: var(--transition-fast);
}

.clear-search:hover {
    color: var(--color-orange);
}

.search-stats {
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-top: 8px;
    padding-right: 8px;
    font-weight: 600;
}

/* Rules Layout Grid */
.rules-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Rules Sidebar (Sticky) */
.rules-sidebar-wrapper {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    transition: top var(--transition-normal);
}

.rules-sidebar {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    max-height: calc(100vh - var(--header-height) - 60px);
    overflow-y: auto;
    box-shadow: var(--glow-box);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.expand-all-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-orange);
    transition: var(--transition-fast);
}

.expand-all-btn:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 8px;
}

.sidebar-menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
    user-select: none;
}

.category-header:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
}

.category-header.active {
    color: var(--color-gold);
    background: rgba(255, 190, 59, 0.05);
}

.cat-icon {
    width: 18px;
    height: 18px;
    margin-left: 12px;
    color: inherit;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    margin-right: auto; /* Push left in RTL */
    transition: transform var(--transition-normal);
    color: var(--color-text-dark);
}

.category-header.active .chevron-icon {
    transform: rotate(180deg);
    color: var(--color-gold);
}

/* Sidebar Submenu */
.sidebar-submenu {
    margin-top: 6px;
    padding-right: 28px; /* Indent sub items under name in RTL */
    display: none; /* Managed by JS, starts collapsed unless geral active */
}

.sidebar-submenu li {
    margin-bottom: 6px;
}

.sidebar-submenu li:last-child {
    margin-bottom: 0;
}

.submenu-link {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 6px 0;
    border-right: 2px solid transparent;
    padding-right: 10px;
    transition: var(--transition-normal);
}

.submenu-link:hover {
    color: var(--color-text);
    border-right-color: var(--color-text-dark);
}

.submenu-link.active {
    color: var(--color-orange);
    border-right-color: var(--color-orange);
    font-weight: 700;
}

/* Rules Content area */
.rules-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.rules-group {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.rules-group-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.rules-group-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-gradient);
}

.rule-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition-normal), border var(--transition-normal);
    scroll-margin-top: calc(var(--header-height) + 40px);
}

.rule-card:last-child {
    margin-bottom: 0;
}

.rule-card:hover {
    border-color: rgba(255, 140, 0, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.rule-card.highlighted-card {
    border-color: var(--color-orange);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.15);
}

.rule-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.rule-num {
    background: rgba(255, 140, 0, 0.1);
    color: var(--color-orange);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 14px;
}

.rule-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
}

.rule-anchor-link {
    margin-right: auto; /* Push left */
    color: var(--color-text-dark);
    font-weight: 500;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.rule-card:hover .rule-anchor-link {
    opacity: 1;
}

.rule-anchor-link:hover {
    color: var(--color-orange);
}

.rule-body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.rule-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.tag-ban {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.tag-mute {
    color: #eab308;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.15);
}

.tag-warn {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Highlight matching search text */
mark.match-highlight {
    background-color: rgba(255, 140, 0, 0.3);
    color: var(--color-white);
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 700;
}

/* Search Empty States */
.no-results-card {
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 24px;
    box-shadow: var(--glow-box);
}

.no-results-icon {
    width: 64px;
    height: 64px;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.no-results-card h4 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.no-results-card p {
    color: var(--color-text-muted);
    font-weight: 300;
    font-size: 0.95rem;
}

/* 10. Store Section */
.store-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.store-card {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    background: radial-gradient(circle at top left, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--glow-box);
    overflow: hidden;
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.store-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 30px;
    box-shadow: var(--glow-gold);
}

.store-card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 94, 0, 0.06);
    border: 2px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--glow-orange);
}

.store-card-icon {
    width: 36px;
    height: 36px;
    color: var(--color-orange);
}

.store-card-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 14px;
}

.store-card-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.store-card-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 460px;
    margin: 0 auto 40px;
    text-align: right;
}

.store-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-icon {
    font-size: 1.2rem;
}

/* 11. Footer Styling */
.main-footer {
    background-color: #050608;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-about {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 360px;
}

.footer-links-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-right: 4px; /* Slight push on hover in RTL */
}

.footer-contact-info {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.social-link:hover {
    color: var(--color-white);
    transform: translateY(-3px);
}

.social-link.discord:hover {
    background-color: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.salla-partner {
    color: var(--color-text-dark);
}

/* 12. Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Positioned left in RTL layouts */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-orange);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 94, 0, 0.5);
}

.back-to-top-btn svg {
    width: 20px;
    height: 20px;
}

/* 13. JS Fade in Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* 14. Responsive Breakpoints */

/* Responsive rules for Tablet size devices */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-actions-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    
    .rules-layout {
        grid-template-columns: 1fr; /* Stack sidebar and rules content vertically */
        gap: 30px;
    }
    
    .rules-sidebar-wrapper {
        position: relative;
        top: 0 !important;
    }
    
    .rules-sidebar {
        max-height: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* Responsive rules for Mobile devices */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    /* Responsive header & mobile menu drawer */
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: rotate(45deg) translate(-4px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* off screen */
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: var(--transition-normal);
        padding: 100px 30px;
        border-left: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .header-actions .btn-discord {
        display: none; /* Hide button inside small headers, show in menu or hero */
    }
    
    /* Hero scaling */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions-buttons .btn {
        width: 100%;
    }
    
    /* Store padding */
    .store-card {
        padding: 30px 20px;
    }
    
    .store-card-title {
        font-size: 1.8rem;
    }
    
    .store-feature-item {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    /* Footer layout */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
