:root {
    --primary: #d94025;
    --bg: #0f0f0f;
    --card: #1e1e1e;
    --text: #f5f5f5;
    --muted: #999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
}

.app {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

/* الهيدر */
header {
    background: linear-gradient(135deg, #1a1a1a, #2a1a1a);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(217, 64, 37, 0.2);
}

.logo {
    font-size: 1.7rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 3px 10px rgba(217, 64, 37, 0.6);
    line-height: 1.1;
}

.slogan {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 9px;
    width: 100%;
    max-width: 280px;
    animation: pulse 2s infinite;
    transition: transform 0.2s;
}

.btn:active { transform: scale(0.97); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(217, 64, 37, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(217, 64, 37, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 64, 37, 0); }
}

/* ================================
   السلايدر - الحل السحري: خلفية ضبابية
   ================================ */
.slider-container {
    flex: 1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid #333;
    min-height: 200px;
}

.slider {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الخلفية الضبابية - نسخة من الصورة نفسها */
.slide-bg {
    position: absolute;
    inset: -20px; /* نكبر الخلفية شوي عشان ما يبان حدود الضباب */
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.5);
    transform: scale(1.1);
    z-index: 0;
}

/* الصورة الأصلية - تظهر كاملة في المنتصف */
.slide img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 1;
    pointer-events: none;
    -webkit-user-drag: none;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* عداد */
.counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(217, 64, 37, 0.5);
    z-index: 10;
}

.counter span#current { color: var(--primary); }

/* أزرار التنقل */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217, 64, 37, 0.85);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 3px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.nav-btn:active { transform: translateY(-50%) scale(0.9); }
.nav-btn.prev { right: 10px; }
.nav-btn.next { left: 10px; }

/* النقاط */
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(217, 64, 37, 0.8);
}

/* معلومات مختصرة */
.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex-shrink: 0;
}

.info div {
    background: var(--card);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
}

.info i {
    color: var(--primary);
    font-size: 1rem;
}

.info span {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 700;
    margin-top: 3px;
}

/* الفوتر */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--card);
    border-radius: 14px;
    border: 1px solid #333;
    flex-shrink: 0;
}

.social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social a {
    color: var(--text);
    font-size: 1.15rem;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
}

.social a:hover,
.social a:active {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

footer p {
    font-size: 0.65rem;
    color: var(--muted);
}
