/* ========================================
   Index Page Custom Styles
   Persian Real Estate Directory
   ======================================== */

/* Header Styles - Enhanced Shadow */
.site-header {
    padding: 2rem 0;
    margin-bottom: 0; /* حذف فاصله از پایین */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); /* سایه مشابه search bar */
    background: var(--card);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.dark .site-header {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); /* سایه تیره‌تر در دارک مد */
}

/* Theme Toggle Button */
.custom-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-theme-btn .theme-icon {
    /* Light mode: Orange moon 🌙 */
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(0deg);
    font-size: 1.5rem;
    display: inline-block;
}

.dark .custom-theme-btn .theme-icon {
    /* Dark mode: White sun ☀️ */
    filter: brightness(0) invert(1);
}

.custom-theme-btn:hover {
    background: transparent;
    transform: none;
}

.custom-theme-btn:hover .theme-icon {
    /* Keep same orange color on hover */
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(1000%) hue-rotate(0deg);
}

.dark .custom-theme-btn:hover .theme-icon {
    filter: brightness(0) invert(1);
}

/* Hero Section */
.modern-hero {
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    margin-top: 0; /* حذف فاصله از بالا */
    background-color: var(--bg);
}

.hero-content {
    background-color: var(--card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 1000px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark .hero-content {
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
}

/* Hero Title */
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.dark .hero-content h1 {
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(255, 138, 47, 0.4);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Category Buttons Container */
.hero-category-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: nowrap;
}

/* Category Buttons */
.hero-cat-btn {
    padding: 0.9rem 2rem;
    min-width: 160px;
    background-color: var(--card);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    white-space: nowrap;
}

.hero-cat-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 138, 47, 0.4);
}

.hero-cat-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 138, 47, 0.5);
}

.dark .hero-cat-btn {
    background-color: rgba(255, 138, 47, 0.1);
}

.dark .hero-cat-btn:hover,
.dark .hero-cat-btn.active {
    box-shadow: 0 6px 25px rgba(255, 138, 47, 0.6);
}

/* Search Container */
.hero-search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Search Input Wrapper */
.hero-search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hero Search Input */
.hero-search-input {
    flex: 1;
    height: 47px;
    padding: 0.9rem 1.5rem;
    background-color: var(--card);
    border: 2px solid var(--accent);
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 138, 47, 0.3);
}

.hero-search-input::placeholder {
    color: var(--text-light);
}

/* Search Icon Button (ذره‌بین) */
.hero-search-icon-btn {
    flex-shrink: 0;
    width: 47px;
    height: 47px;
    background: var(--accent) !important;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 138, 47, 0.3);
}

.hero-search-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 138, 47, 0.5);
}

.hero-search-icon-btn:active {
    transform: scale(0.95);
}

/* Advanced Search Button */
.hero-advanced-search-btn {
    flex-shrink: 0;
    width: 47px;
    height: 47px;
    min-width: 47px;
    padding: 0;
    background-color: rgba(255, 138, 47, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 138, 47, 0.2);
}

.hero-advanced-search-btn:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 138, 47, 0.4);
}

.hero-advanced-search-btn:active {
    transform: scale(0.95);
}

.hero-advanced-search-btn i {
    font-size: 1.1rem;
}

/* Property Cards - Orange Theme */
.property-card {
    background-color: #fff;
    border: 2px solid #ff8c00;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
    width: 250px !important;
    height: 400px !important;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
    border-color: #ff7700;
}

.dark .property-card {
    background-color: #2a2a2a;
    border: 2px solid #ff8c00;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.3);
}

.dark .property-card:hover {
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
    border-color: #ff7700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }

    .modern-hero {
        min-height: 400px;
        height: auto;
        padding: 1.5rem 0;
        margin-top: 0; /* حذف فاصله در موبایل */
    }

    .hero-content {
        padding: 2rem 1.5rem;
        width: 95%;
        height: auto;
        max-width: 95%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-cat-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.3rem;
        min-width: 140px;
    }

    .hero-search-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-search-wrapper {
        width: 100%;
    }

    .hero-search-input {
        flex: 1;
    }

    .hero-advanced-search-btn {
        width: 47px;
        height: 47px;
    }
}

@media (max-width: 480px) {
    .modern-hero {
        min-height: 350px;
        height: auto;
        margin-top: 0; /* حذف فاصله در موبایل کوچک */
    }

    .hero-content {
        width: 95%;
        height: auto;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-cat-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-width: 120px;
    }

    .custom-theme-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* CSS Variables - Use New Theme */
/* These variables are now defined in new-theme.css */
/* Keep only page-specific overrides here */


