﻿/* =====================================================
   allai.bio - الصفحة الرئيسية (home.css)
   ===================================================== */

:root {
    --bg-body: #F1F3F4;
    --bg-card: #FFF;
    --bg-hover: #F1F3F4;
    --bg-input: #F1F3F4;

    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-muted: #2d2d2d;

    --border-light: #dadce0;
    --border-focus: #1A73E8;

    --primary: #1A73E8;
    --primary-light: #e8f0fe;
    --primary-hover: #1558b0;
    --primary-glow: rgba(26, 115, 232, 0.15);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 16px;
    
    --font-main: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --slider-height: 340px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-primary);
    padding: 12px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* =====================================================
   شاشة تحميل الصور
   ===================================================== */
.slider-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: var(--radius);
    transition: opacity 0.4s ease;
}

.slider-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.slider-loader.hidden-final {
    display: none !important;
}

.slider-loader .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8ecf1;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.slider-loader p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-main);
}

.slider-loader .progress-text {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   الهيدر - صورة في أقصى اليمين ونص على اليسار
   ===================================================== */
.header {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 10px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}

.header:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-brand img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.header-brand img:hover {
    transform: scale(1.05);
}

.header-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.header-brand .brand-name {
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.header-brand .brand-sub {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

.header-cta {
    display: none !important;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.lang-toggle-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* =====================================================
   المحتوى الرئيسي
   ===================================================== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    align-items: stretch;
}

/* =====================================================
   العمود الأيسر - تسجيل الدخول
   ===================================================== */
.auth-section {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    background: #f5f5f5;
}

.auth-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
}

.auth-card .auth-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.auth-card .auth-title i {
    color: var(--primary);
    margin-left: 8px;
}

/* =====================================================
   أزرار المصادقة - باللون الأسود
   ===================================================== */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-main);
    cursor: pointer;
    border: 2px solid #e0e0e0;
    background: #ffffff;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== زر Google ===== */
.btn-google {
    border-color: #e0e0e0;
    color: #1a1a1a;
}

.btn-google:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
}

.btn-google .google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #4285f4;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}

.btn-google i {
    font-size: 18px;
    color: #4285f4;
}

.btn-google:hover i {
    color: #4285f4;
}

/* ===== زر Facebook ===== */
.btn-facebook {
    border-color: #e0e0e0;
    color: #1a1a1a;
    margin-top: 8px;
}

.btn-facebook:hover {
    border-color: #1877f2;
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.15);
}

.btn-facebook .facebook-f {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1877f2;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}

.btn-facebook i {
    font-size: 18px;
    color: #1877f2;
}

.btn-facebook:hover i {
    color: #1877f2;
}

/* =====================================================
   الفاصل
   ===================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* =====================================================
   نموذج تسجيل الدخول
   ===================================================== */
.login-form {
    margin-top: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-form .form-group {
    margin-bottom: 14px;
}

.login-form label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.login-form label i {
    margin-left: 4px;
}

.login-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: ltr;
}

.login-form input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.login-form .btn-login {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-family: var(--font-main);
    margin-top: auto;
}

.login-form .btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-form .form-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 10px;
    font-family: var(--font-main);
}

.login-form .form-links a {
    color: var(--primary);
    text-decoration: none;
}

.login-form .form-links a:hover {
    text-decoration: underline;
}

.login-form .error-msg {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.login-form .success-msg {
    color: #2e7d32;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
    display: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 45px;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.auth-security {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 14px;
    font-family: var(--font-main);
}

.auth-security i {
    color: var(--primary);
}

/* =====================================================
   العمود الأيمن - سلايدر
   ===================================================== */
.slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

/* =====================================================
   الشريط الأزرق العلوي
   ===================================================== */
.hero-mini {
    background: linear-gradient(135deg, var(--primary) 0%, #1558b0 100%);
    border-radius: var(--radius);
    padding: 18px 24px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-main);
    flex-shrink: 0;
}

.hero-mini h2 {
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.hero-mini h2 span {
    color: #ffd700;
}

.hero-mini p {
    font-family: var(--font-main);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =====================================================
   السلايدر
   ===================================================== */
.slider-container {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    background: #f0f2f5;
    min-height: var(--slider-height);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    direction: ltr;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide {
    min-width: 100%;
    width: 100%;
    height: var(--slider-height);
    position: relative;
    flex-shrink: 0;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =====================================================
   مؤشرات السلايدر - نقاط زرقاء
   ===================================================== */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5d5e8;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(26, 115, 232, 0.4);
}

.slider-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.slider-btn {
    display: none !important;
}

/* =====================================================
   الفوتر - بدون صورة وشعار، فقط أزرار المنصات
   ===================================================== */
.footer {
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
}

.footer:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-lg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand {
    display: none !important;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-family: var(--font-main);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.footer-link.directory { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.footer-link.directory:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
.footer-link.terms { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.footer-link.terms:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4); }
.footer-link.privacy { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.footer-link.privacy:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4); }
.footer-link.help { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); color: #1a1a1a; }
.footer-link.help:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4); }

.footer-link i { font-size: 0.9rem; }

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
    font-family: var(--font-main);
}

.footer-bottom i {
    color: var(--primary);
    margin: 0 4px;
}

/* =====================================================
   استجابة الجوال (Media Queries)
   ===================================================== */
@media (max-width: 992px) {
    .main-content { grid-template-columns: 1fr; gap: 20px; }
    .header { padding: 10px 16px; }
    .header-brand .brand-name { font-size: 1.3rem; }
    .header-brand img { width: 42px; height: 42px; }
    :root { --slider-height: 280px; }
}

@media (max-width: 600px) {
    body { padding: 8px; }
    .header { padding: 8px 12px; }
    .header-brand .brand-name { font-size: 1.1rem; }
    .header-brand .brand-sub { font-size: 0.7rem; }
    .header-brand img { width: 36px; height: 36px; }
    .auth-card { padding: 20px 16px; }
    .auth-card .auth-title { font-size: 1.1rem; }
    .hero-mini h2 { font-size: 1rem; }
    .hero-mini p { font-size: 0.8rem; }
    .hero-mini { padding: 14px 16px; }
    .slider-dots { bottom: 10px; padding: 4px 10px; gap: 6px; }
    .slider-dot { width: 8px; height: 8px; }
    .footer-links { gap: 6px; }
    .footer-link { font-size: 0.7rem; padding: 6px 12px; }
    :root { --slider-height: 220px; }
}

@media (max-width: 400px) {
    .header-brand .brand-name { font-size: 0.95rem; }
    .header-brand img { width: 30px; height: 30px; }
    .hero-mini h2 { font-size: 0.9rem; }
    .hero-mini p { font-size: 0.7rem; }
    :root { --slider-height: 180px; }
}

@media (min-width: 1200px) {
    body { padding: 30px; }
    .auth-card { padding: 40px 36px; }
    .header-brand img { width: 56px; height: 56px; }
    :root { --slider-height: 380px; }
}

@media (hover: none) {
    .header:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
    .auth-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
    .footer:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); }
    .footer-link:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
}

/* ===== زر Twitter/X ===== */
.btn-twitter {
    border-color: #e0e0e0;
    color: #1a1a1a;
    margin-top: 8px;
}
.btn-twitter:hover {
    border-color: #000;
    background: #f8f9fa;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.btn-twitter i {
    font-size: 18px;
    color: #000;
}

/* ===== English Font Override ===== */
html[lang="en"] {
    --font-main: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

html[lang="en"] body,
html[lang="en"] .header,
html[lang="en"] .auth-card,
html[lang="en"] .hero-mini,
html[lang="en"] .footer {
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}