﻿/* الهيدر — اللغة ثم الحملة ثم الشعار الكبير */
header {
    background: var(--primary-blue);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-top-row {
    padding: 10px 5% 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-lang-campaign {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: min(560px, 52vw);
}

[dir="ltr"] .header-lang-campaign {
    align-items: flex-end;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

[dir="rtl"] .header-lang-campaign {
    margin-inline-end: auto;
    margin-inline-start: 0;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5% 12px;
    gap: 16px;
    position: relative;
}

.header-logo-occasion-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.logo-container { display: flex; align-items: center; }

.logo-container img,
.site-logo-img {
    height: 78px;
    width: auto;
    max-width: min(460px, 58vw);
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.header-logo-occasion-wrap .header-occasion-chip {
    padding: 8px 16px;
    font-size: 0.95rem;
    gap: 10px;
}

.header-logo-occasion-wrap .header-occasion-icon {
    font-size: 1.12rem;
}

/* Navigation */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}
nav ul li a { 
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 0.95rem; 
    transition: 0.3s; 
    display: flex;
    align-items: center;
    gap: 8px;
}
nav ul li a:hover { color: var(--accent-blue); }

nav ul li a i { font-size: 0.9rem; }

/* زر اللغة */
.lang-dropdown {
    position: relative;
}
.lang-btn {
    background: none;
    border: 1px solid white; 
    padding: 8px 12px; 
    border-radius: 20px;
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: 0.3s;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lang-btn:hover { background: white; color: var(--primary-blue); }
.lang-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 120px;
    z-index: 1001;
    transition: opacity 0.3s, visibility 0.3s;
}
.lang-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    transition: 0.3s;
}
.lang-menu a:hover {
    background: var(--accent-blue);
    color: white;
}
.lang-menu.show { 
    display: block; 
    opacity: 1;
    visibility: visible;
}

[dir="rtl"] .lang-menu {
    left: auto;
    right: 0;
}

[dir="ltr"] .lang-menu {
    left: 0;
    right: auto;
}

#lang-current-label {
    font-weight: 700;
    margin-inline-start: 4px;
}

.site-footer {
    background: #0d2840;
    color: rgba(255, 255, 255, 0.92);
    padding: 26px 5%;
    font-size: 0.95rem;
    line-height: 1.75;
    border-top: 2px solid rgba(0, 168, 255, 0.35);
}

.footer-designer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    max-width: 1100px;
    margin-inline: auto;
    text-align: center;
}

.footer-designer-text {
    margin: 0;
    flex: 1 1 260px;
    max-width: 640px;
}

.footer-designer-actions {
    display: inline-flex;
    align-items: stretch;
    gap: 10px;
    flex-shrink: 0;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, filter 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.footer-contact-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.footer-contact-wa {
    background: #25d366;
    color: #fff;
    font-size: 1.45rem;
    min-width: 52px;
    padding-inline: 14px;
}

.footer-contact-phone {
    background: rgba(0, 168, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(0, 168, 255, 0.45);
}

.footer-phone-num {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* منصة التواصل الاجتماعي للشركة (روابط من لوحة الإدارة) */
.company-social-section {
    padding: 36px 5% 44px;
    background: linear-gradient(180deg, rgba(13, 40, 64, 0.06), rgba(0, 168, 255, 0.06));
    border-top: 1px solid rgba(13, 40, 64, 0.08);
}

.company-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
    max-width: 720px;
    margin-inline: auto;
}

.company-social-btn {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.38rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.company-social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.company-social-btn.soc-wa { background: #25d366; }
.company-social-btn.soc-fb { background: #1877f2; }
.company-social-btn.soc-ig {
    background: linear-gradient(35deg, #f58529, #dd2a7b, #8134af);
}
.company-social-btn.soc-tt { background: #000000; }
.company-social-btn.soc-sn { background: #fffc00; color: #000; }

/* يظهر فقط عند وجود جلسة إدارة (body.admin-session) */
.only-admin-block {
    display: none !important;
}

body.admin-session .only-admin-block {
    display: block !important;
}

.dashboard-channels-panel {
    margin: 8px 0 28px;
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(13, 40, 64, 0.06);
    border: 1px solid rgba(13, 40, 64, 0.1);
    max-width: 920px;
}

.dashboard-channels-head h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--primary-blue);
}

.dashboard-channels-hint {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: rgba(13, 40, 64, 0.78);
    line-height: 1.55;
}

.dashboard-channels-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.dashboard-channels-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-channels-list .ch-mark {
    font-weight: 800;
    min-width: 1.2em;
}

.dashboard-channels-list .ch-mark.ok { color: #1e8449; }
.dashboard-channels-list .ch-mark.no { color: #c0392b; }

.dashboard-channels-list small {
    opacity: 0.85;
    font-size: 0.85rem;
}

.dashboard-channels-edit-btn {
    max-width: 280px;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

