/* قنادی وانیلا - طراحی تمیز و حرفه‌ای */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Sahel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    text-align: center;
    background: linear-gradient(135deg, #862633 0%, #862633 100%);
    min-height: 100vh;
    color: #ffffff;
    font-weight: 400;
    overflow-x: hidden;
}

/* صفحه اصلی */
.main-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    will-change: transform;
}

/* اثر بصری پس‌زمینه */
.main-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.main-page > * {
    position: relative;
    z-index: 2;
}

/* کانتینر لوگو */
.logo-container {
    margin-bottom: 6px;
    animation: fadeInUp 0.8s ease-out;
}

/* لوگوی اصلی */
.logo-main-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: all 0.4s ease;
    drop-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.logo-main-img:hover {
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

/* متن زیر لوگو */
.logo-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* آیکون پایین */
.down-arrow {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 5px 0;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.down-arrow:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* منوی اصلی - باکس شعبه‌ها */
.main-menu {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px 35px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    min-width: 520px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

/* اثر نور محیطی برای منو */
.main-menu::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.05));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.main-menu:hover::after {
    opacity: 1;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    position: relative;
}

/* آیتم‌های منو */
.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    border: none;
    min-height: 45px;
}

/* اثر بصری درخشان */
.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    transition: right 0.6s ease;
}

.menu-link:hover::before {
    right: 100%;
}

/* حالت hover */
.menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* آیکون فلش */
.menu-link::after {
    content: "◀";
    color: #ffffff;
    font-size: 0.8rem;
    transition: all 0.4s ease;
    margin-left: 15px;
}

.menu-link:hover::after {
    color: #ffffff;
    transform: translateX(-8px);
}

.menu-link.active::after {
    transform: rotate(-90deg);
}

/* باکس‌های پایین */
.bottom-boxes {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 20px !important;
    justify-content: center !important;
    align-items: center !important;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    max-width: 500px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.bottom-box {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
}

.bottom-box-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 10px 12px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 40px;
    white-space: nowrap;
}

/* اثر درخشان برای باکس‌های کوچک */
.bottom-box-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
    transition: right 0.5s ease;
}

.bottom-box-link:hover::before {
    right: 100%;
}

.bottom-box-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ریسپانسیو - تبلت */
@media (max-width: 768px) {
    .main-page {
        padding: 20px 12px;
    }
    
    .logo-main-img {
        max-width: 220px;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .main-menu {
        padding: 25px 25px;
        margin: 15px 8px;
        min-width: 350px;
        max-width: 450px;
        border-radius: 18px;
    }
    
    .menu-link {
        font-size: 0.85rem;
        padding: 14px 20px;
        border-radius: 12px;
        min-height: 50px;
    }
    
    .bottom-boxes {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 10px !important;
        max-width: 320px !important;
        flex-wrap: wrap !important;
    }
    
    .bottom-box {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .bottom-box-link {
        font-size: 0.7rem;
        padding: 10px 12px;
        border-radius: 12px;
        min-height: 40px;
    }
}

/* ریسپانسیو - موبایل */
@media (max-width: 480px) {
    .main-page {
        padding: 15px 8px;
    }
    
    .logo-main-img {
        max-width: 180px;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        margin-bottom: 15px;
    }
    
    .main-menu {
        padding: 20px 20px;
        margin: 10px 4px;
        min-width: 280px;
        max-width: 340px;
        border-radius: 16px;
    }
    
    .menu-link {
        font-size: 0.8rem;
        padding: 12px 16px;
        border-radius: 10px;
        min-height: 45px;
    }
    
    .menu-link::after {
        font-size: 0.6rem;
        margin-left: 8px;
    }
    
    .bottom-boxes {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 8px !important;
        max-width: 260px !important;
        flex-wrap: wrap !important;
    }
    
    .bottom-box {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .bottom-box-link {
        font-size: 0.65rem;
        padding: 8px 10px;
        border-radius: 10px;
        min-height: 35px;
    }
    
    .down-arrow {
        font-size: 1.2rem;
        margin: 10px 0;
    }
} 