/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    direction: rtl;
    font-size: 16px;
    overflow-x: hidden;
}

/* رأس الصفحة - تصميم مبسط للهواتف */
header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header h1 {
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

header h1 i {
    font-size: 1.3rem;
}

header p {
    display: none; /* إخفاء العنوان الفرعي على الهواتف */
}

/* زر القائمة الجانبية */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* القائمة الجانبية للهواتف */
.side-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.side-nav.active {
    right: 0;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-nav a {
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.side-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-right: 30px;
}

.side-nav a i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.side-nav a.active {
    background-color: #8B4513;
    border-right: 4px solid #FFD700;
}

/* طبقة التعتيم للخلفية */
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* إخفاء شريط التنقل الأصلي للهواتف */
nav {
    display: none;
}

/* المساحة الرئيسية مع مراعاة الهيدر الثابت */
main {
    margin-top: 70px; /* نفس ارتفاع الهيدر */
    padding-bottom: 20px;
}

/* الأقسام العامة */
section {
    padding: 25px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background-color: #f9f3e9;
    border-top: 1px solid #e0d8c8;
    border-bottom: 1px solid #e0d8c8;
}

h2 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #A0522D;
}

h2 i {
    margin-left: 8px;
    font-size: 1.3rem;
}

h3 {
    color: #A0522D;
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

/* قسم المقدمة */
.main-section {
    text-align: center;
    padding: 20px 15px;
}

.intro-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.intro-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.intro-item:hover {
    transform: translateY(-3px);
}

.intro-item i {
    font-size: 1.8rem;
    color: #8B4513;
    margin-bottom: 8px;
}

.intro-item h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

/* قسم عن المقهى */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text {
    width: 100%;
}

.about-image {
    width: 100%;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* الجداول */
table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

th, td {
    padding: 12px 10px;
    text-align: right;
    border: none;
}

th {
    background-color: #8B4513;
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f1eb;
}

td {
    border-top: 1px solid #eee;
}

/* معرض الصور */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    padding: 10px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    background: white;
    font-size: 0.9rem;
}

/* قسم الفيديو */
.video-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.video-container iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.video-info ol {
    margin-right: 15px;
    margin-top: 10px;
}

.video-info li {
    margin-bottom: 10px;
    padding-right: 10px;
    position: relative;
    font-size: 0.95rem;
}

.video-info li:before {
    content: '•';
    color: #8B4513;
    font-weight: bold;
    position: absolute;
    right: -15px;
}

/* قسم اتصل بنا */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info, .contact-form {
    width: 100%;
}

.contact-table {
    margin: 15px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-table td {
    padding: 10px 12px;
    border: none;
    font-size: 0.9rem;
}

.contact-table tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

.contact-table td:first-child {
    color: #8B4513;
    width: 30px;
    text-align: center;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #8B4513;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: #A0522D;
    transform: translateY(-2px);
}

/* نموذج الاتصال */
form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 15px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #8B4513;
}

button[type="submit"] {
    background: linear-gradient(to right, #8B4513, #A0522D);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #A0522D, #8B4513);
}

/* تذييل الصفحة */
footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 25px 15px 15px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo, .footer-links, .footer-hours {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 3px 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-hours p {
    margin-bottom: 5px;
    color: #bbb;
    font-size: 0.9rem;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 15px;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* زر العودة للأعلى */
.top-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 1.2rem;
    text-decoration: none;
    display: none;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.top-btn:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
}

/* تصميم شريط التنقل للكمبيوتر فقط */
@media (min-width: 769px) {
    header {
        position: relative;
        height: auto;
        padding: 20px 0;
        display: block;
    }
    
    .header-content {
        display: block;
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    header p {
        display: block;
        font-size: 1.1rem;
        opacity: 0.9;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .side-nav, .overlay {
        display: none;
    }
    
    nav {
        display: block;
        background-color: #A0522D;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul {
        display: flex;
        list-style: none;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    nav li {
        margin: 0;
        flex: 1;
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    nav li:last-child {
        border-right: none;
    }
    
    nav a {
        color: white;
        text-decoration: none;
        padding: 15px;
        display: block;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }
    
    nav a:hover {
        background-color: #8B4513;
    }
    
    nav a i {
        margin-left: 5px;
        font-size: 1.1rem;
    }
    
    main {
        margin-top: 0;
    }
    
    .intro-box {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .video-container {
        flex-direction: row;
    }
    
    .video-container iframe {
        height: 300px;
    }
    
    .contact-content {
        flex-direction: row;
    }
    
    .footer-content {
        flex-direction: row;
    }
}

/* تحسينات للهواتف المتوسطة */
@media (min-width: 481px) and (max-width: 768px) {
    header h1 {
        font-size: 1.3rem;
    }
    
    .intro-box {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-container iframe {
        height: 250px;
    }
}

/* تحسينات للهواتف الصغيرة جداً */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.1rem;
    }
    
    .side-nav {
        width: 250px;
    }
    
    .intro-box {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

