/* جلوگیری از انتخاب متن و کپی */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* اجازه انتخاب برای input ها */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* مخفی کردن سورس صفحه */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

/* استایل‌های منوی موبایل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        width: 100%;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }
}

/* انتقال بخش header-content به سمت بالا */
.header-content {
    position: relative;
    top: -70px;
    margin-bottom: -70px;
}

@media (max-width: 768px) {
    .header-content {
        top: -50px;
        margin-bottom: -50px;
    }
}

@media (max-width: 480px) {
    .header-content {
        top: -40px;
        margin-bottom: -40px;
    }
}

/* کاهش فاصله هدر با ناوبری */
header {
    padding-bottom: 20px;
}

.space-10 {
    display: inline-block;
    width: 100px;
}

/* استایل جدید و زیبا برای دکمه بازی و سرگرمی */
.games-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ff6b6b 100%);
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    margin: 10px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    min-width: 220px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
    transform: translateZ(0);
}

.games-button:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #ff7b7b 50%, #ff5252 100%);
    transform: translateY(-2px) translateZ(0);
}

.games-button:active {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    transform: translateY(0) translateZ(0);
}

.games-button i {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* استایل برای دکمه‌های دیگر */
.cta-button {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    margin: 8px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
}

.cta-button:hover {
    background: linear-gradient(135deg, #45B7D1, #3498db);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px) translateZ(0);
}

/* استایل برای دکمه ادمین */
.admin-access {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.admin-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.admin-btn:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.admin-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .admin-access {
        bottom: 15px;
        left: 15px;
    }
    
    .admin-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* تنظیم بخش طبقات برای 4 باکس در یک ردیف */
.floor-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* استایل‌های بخش طبقات */
.floor-plan {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: white;
}

.floor-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.floor-plan-image {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.floor-plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floor-plan-header {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
    color: white;
}

.floor-plan-content {
    padding: 15px;
}

.floor-details-container {
    margin-top: 30px;
    width: 100%;
}

.floor-details {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.floor-details.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* اصلاح شده: حذف shop-item که با shop-card تداخل دارد */
/* .shop-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
} */

.restaurant-info {
    line-height: 1.8;
}

@media (max-width: 1200px) {
    .floor-plan {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .floor-plan {
        flex: 1 1 100%;
    }
}

/* حذف انیمیشن‌های لرزان */
.header-content {
    animation: none !important;
}

.main-title {
    animation: none !important;
}

header p {
    animation: none !important;
}

/* بهینه‌سازی برای کروم */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* استایل‌های بخش پلان بزرگ */
.floor-plan-large {
    margin-bottom: 30px;
    text-align: center;
}

.floor-plan-large h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.large-plan-image {
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin: 0 auto;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-plan-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.large-plan-image:hover img {
    transform: scale(1.02);
}

.shops-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.shops-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

/* استایل‌های بخش جزئیات */
.floor-details {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
}

.floor-details.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* استایل‌های ریسپانسیو */
@media (max-width: 768px) {
    .large-plan-image {
        height: 300px;
    }
    
    .floor-plan-large h3 {
        font-size: 1.3rem;
    }
    
    .shops-section h3 {
        font-size: 1.2rem;
    }
    
    .floor-details {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .large-plan-image {
        height: 250px;
    }
    
    .floor-plan-large h3 {
        font-size: 1.2rem;
    }
    
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* استایل‌های جدید برای کارت مغازه‌ها - اصلاح شده */
.shop-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    min-height: 200px; /* ارتفاع حداقلی */
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* اصلاح شده: shop-top-bar عمومی - حذف gradient ثابت */
.shop-top-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 15px;
    /* حذف gradient ثابت */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #333; /* تغییر رنگ متن به تیره */
    height: 40px;
    border-bottom: 2px solid #ddd;
}

.shop-number {
    font-weight: bold;
    font-size: 1.1rem;
    background: #d63031;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.shop-plan-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
}

.shop-brand-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 15px;
    background: #f8f9fa;
    height: 80px;
    border-bottom: 1px solid #e9ecef;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.brand-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.shop-products {
    padding: 24px 15px;
    background: white;
    min-height: 120px;
}

.shop-products h4 {
    margin-bottom: 10px;
    color: #495057;
    font-size: 1rem;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 5px;
}

.shop-products ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-products li {
    padding: 4px 0;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
    padding-right: 12px;
}

.shop-products li:before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* اضافه کردن استایل برای وضعیت */
.shop-status {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    color: #000000;
    min-width: 120px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    justify-self: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .shop-brand-bar {
        padding: 15px 12px;
        height: 70px;
    }
    
    .shop-products {
        padding: 20px 12px;
        min-height: 110px;
    }
}

@media (max-width: 480px) {
    .shops-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-top-bar {
        padding: 10px 12px;
        height: 35px;
    }
    
    .shop-brand-bar {
        height: 60px;
        padding: 12px 10px;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
}

.close-details {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    float: left;
}

.floor-plan {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floor-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}