/* ============================================
   الملف: style.css
   مشروع: رحلة - موقع زواج ورحلات داخلية
   الألوان الرئيسية: أزرق داكن (#1e2a47) + برتقالي (#e67e22)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #1e2a47;
    padding-bottom: 75px;
    min-height: 100vh;
}

:root {
    --dark-blue: #1e2a47;
    --orange: #e67e22;
    --orange-dark: #d35400;
    --light-bg: rgba(255,255,255,0.95);
    --border-color: rgba(0,0,0,0.08);
    --green-online: #2ecc71;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

/* ========== شريط الأخبار المتحرك ========== */
.news-ticker {
    background: var(--dark-blue);
    color: white;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-ticker span {
    display: inline-block;
    animation: scrollNewsLeftToRight 25s linear infinite;
    font-weight: 500;
    letter-spacing: 0.5px;
}

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

/* ========== الهيدر العلوي (زجاجي) ========== */
.main-header {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 36px;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    color: var(--dark-blue);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.notification-icon {
    font-size: 24px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.notification-icon:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* ========== التنقل السفلي (زجاجي) ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--light-bg);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 12px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.nav-item {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 12px;
    border-radius: 20px;
}

.nav-item.active {
    color: var(--orange);
    font-weight: bold;
    background: rgba(230,126,34,0.1);
}

.nav-item:hover {
    transform: translateY(-2px);
    color: var(--orange);
}

.nav-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

/* ========== الصفحات ========== */
.page {
    display: none;
    margin-top: 105px;
    padding: 16px;
    padding-bottom: 30px;
    animation: fadeIn 0.3s ease;
}

.page.active-page {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== بطاقات الأعضاء ========== */
.member-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 3px solid var(--orange);
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.avatar {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--dark-blue), #2c3e66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.online-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    background: var(--green-online);
    border-radius: 50%;
    border: 2px solid white;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: bold;
    font-size: 17px;
    color: var(--dark-blue);
}

.member-detail {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 4px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-like, .btn-message {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-like {
    color: #e74c3c;
    background: rgba(231,76,60,0.1);
}

.btn-like:hover {
    transform: scale(1.15);
    background: rgba(231,76,60,0.2);
}

.btn-message {
    color: var(--orange);
    background: rgba(230,126,34,0.1);
}

.btn-message:hover {
    transform: scale(1.15);
    background: rgba(230,126,34,0.2);
}

/* ========== بطاقات الرحلات ========== */
.trip-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    border-right: 5px solid var(--orange);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.trip-card:hover {
    transform: translateX(-3px);
    box-shadow: var(--shadow-md);
}

.trip-price {
    color: var(--orange);
    font-weight: bold;
    font-size: 20px;
    margin: 10px 0;
}

.btn-subscribe {
    background: linear-gradient(135deg, var(--dark-blue), #2c3e66);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    margin-top: 12px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== نموذج البحث المتقدم ========== */
.search-card {
    background: var(--light-bg);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.search-card h3 {
    color: var(--dark-blue);
    margin-bottom: 18px;
    font-size: 20px;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-blue);
}

.age-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-range input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.age-range input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}

.gender-options {
    display: flex;
    gap: 20px;
}

.gender-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.search-btn {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230,126,34,0.4);
}

.no-results {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 24px;
    color: #7f8c8d;
    font-size: 16px;
}

/* ========== صفحة المراسلات ========== */
.chat-list {
    background: white;
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    border-radius: 16px;
}

.chat-item:hover {
    background: rgba(230,126,34,0.05);
}

.chat-preview {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    color: var(--dark-blue);
}

.chat-last {
    font-size: 12px;
    color: #95a5a6;
}

/* ========== صفحة البروفايل ========== */
.profile-card {
    background: white;
    border-radius: 32px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--dark-blue), #2c3e66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    margin: 0 auto 16px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
}

.edit-btn {
    background: var(--orange);
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    color: white;
    margin-top: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    background: var(--orange-dark);
    transform: scale(1.02);
}

/* ========== لوحة التحكم ========== */
.admin-panel {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.admin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    padding: 16px;
    border-radius: 20px;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
    font-weight: bold;
}

/* ========== زر الأدمن العائم ========== */
.admin-fab {
    position: fixed;
    bottom: 85px;
    right: 20px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    box-shadow: 0 6px 18px rgba(230,126,34,0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s;
}

.admin-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(230,126,34,0.5);
}

/* ========== نموذج تسجيل الدخول ========== */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 16px;
}

.auth-card button {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.auth-card button:hover {
    transform: translateY(-2px);
}

/* ========== رسوم متحركة إضافية ========== */
.hidden {
    display: none;
}

button {
    cursor: pointer;
}