/* styles.css - فایل استایل جدا برای صفحه اصلی */

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

body {
    background: url("../img/Roof_of_the_qom_grand_bazaar,_qom,_iran-1.jpg") center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-position 0.05s ease-out; /* انیمیشن نرم */
    will-change: background-position; /* بهینه‌سازی برای عملکرد بهتر */
}

/* منوی بالا سمت راست - کوچک‌تر */
.top-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 30;
    direction: rtl;
}

.menu-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.search-container {
    margin-top: 20vh;
    width: 90%;
    max-width: 500px;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-box {
    width: 100%;
    padding: 12px 20px 12px 90px;
    border-radius: 50px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: right;
    direction: rtl;
}

.search-box::placeholder {
    color: #888;
}

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #4CAF50;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
}

.search-btn:hover {
    background: #45a049;
}

/* لوگوهای پایین صفحه - زمینه سفید */
.logos-bottom-left {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 20px;
    z-index: 20;
}

.logo-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.2s;
    overflow: hidden;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-item:hover {
    transform: scale(1.1);
}

/* بخش لوکیشن - بالای لوگوها */
.location-link {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.location-icon {
    font-size: 18px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.location-link a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}

.location-link a:hover {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* متن معرفی بالای باکس جستجو */
.intro-text {
    text-align: center;
    margin-bottom: 20px;
    direction: rtl;
}

.intro-text h1 {
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #333;
    padding: 8px 18px;
    border-radius: 40px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.6);
    margin-bottom: 8px;
    line-height: 1.4;
}

.intro-text p {
    font-size: 14px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #444;
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

/* برای موبایل */
@media (max-width: 768px) {
    .intro-text h1 {
        font-size: 16px;
        padding: 6px 14px;
    }
    
    .intro-text p {
        font-size: 13px;
        padding: 5px 12px;
    }
}