/* ملف CSS محسن لصفحة الاتصال بنا */
/* تحسين الأداء والتصميم */

:root {
    --gold-dark: #C9A100;
    --gold: #FFD700;
    --gold-light: #FFE55C;
    --black: #000000;
    --white: #ffffff;
    --gray-dark: #1a1a1a;
    --card-bg: rgba(20, 20, 20, 0.95);
    --card-border: rgba(255, 215, 0, 0.4);
    --item-bg: rgba(30, 30, 30, 0.9);
    --item-border: rgba(255, 215, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--black);
    color: var(--white);
    direction: rtl;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* خلفية ثابتة لتحسين الأداء */
.static-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: linear-gradient(45deg, var(--black) 0%, var(--gray-dark) 50%, var(--black) 100%);
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
}

.page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-title {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.page-subtitle {
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.card-title {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    position: relative;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    background: var(--item-bg);
    border-radius: 12px;
    border: 1px solid var(--item-border);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--black);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.contact-details {
    flex: 1;
    text-align: center;
    width: 100%;
}

.contact-label {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.contact-value {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.contact-link {
    color: var(--gold);
    text-decoration: none;
}

.map-frame {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 12px;
    background: var(--item-bg);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.day-item {
    padding: 0.8rem;
    background: var(--item-bg);
    border-radius: 12px;
    border: 1px solid var(--item-border);
}

.day-name {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.day-time {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

/* Hover Animation للأزرار فقط */
.btn-social {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-align: center;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.map-info {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* زر الأدمن المخفي في الزاوية */
.admin-fab {
    position: fixed;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

.admin-fab:hover {
    opacity: 0.5;
}

.admin-fab svg {
    width: 15px;
    height: 15px;
}

/* زر الخريطة مع Hover Animation */
.map-link {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid var(--gold);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
    text-align: center;
    transition: all 0.2s ease;
}

.map-link:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,215,0,0.6);
    border-color: var(--gold-light);
}

/* تحسينات للهاتف */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        backdrop-filter: none;
        border: 1px solid var(--card-border);
        padding: 1rem;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .contact-item {
        padding: 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .btn-social {
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .btn-social:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }
    
    .map-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .map-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255,215,0,0.5);
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .map-info {
        font-size: 0.9rem;
    }
    
    .map-frame {
        height: 200px;
    }
    
    .day-item {
        padding: 0.6rem;
    }
}

/* Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
