/* استایل‌های پایه منو */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: light-dark(#fff, #1a1a1a);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
    display: block;
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-logo .logo-dark {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}

.nav-logo .logo-light {
    opacity: 1;
}

/* تغییر لوگو در تم تاریک */
[data-theme='dark'] .nav-logo .logo-light {
    opacity: 0;
}

[data-theme='dark'] .nav-logo .logo-dark {
    opacity: 1;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* منوی همبرگری */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* منوی اصلی */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: light-dark(#333, #fff);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color, #fba301);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* دکمه تغییر تم */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: light-dark(#333, #fff);
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color, #fba301);
}

.sun-icon,
.moon-icon {
    display: none;
}

[data-theme='light'] .sun-icon,
[data-theme='dark'] .moon-icon {
    display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: light-dark(#fff, #1a1a1a);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-actions {
        /* margin-top: auto; */
        padding-top: 2rem;
        border-top: 1px solid light-dark(#eee, #333);
    }

    /* انیمیشن منوی همبرگری */
    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

/* انیمیشن‌ها */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* استایل‌های فوتر */
.main-footer {
    background: light-dark(#f8f9fa, #1a1a1a);
    padding: 4rem 0 2rem;
    /* margin-top: 4rem; */
    border-top: 1px solid light-dark(#eee, #333);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    position: relative;
    display: inline-block;
}

.footer-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo .logo-dark {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}

.footer-logo .logo-light {
    opacity: 1;
}

[data-theme='dark'] .footer-logo .logo-light {
    opacity: 0;
}

[data-theme='dark'] .footer-logo .logo-dark {
    opacity: 1;
}

.footer-description {
    color: light-dark(#666, #aaa);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: light-dark(#333, #fff);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: light-dark(#666, #aaa);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color, #fba301);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: light-dark(#666, #aaa);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: light-dark(#fff, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent-color, #fba301);
    transform: translateY(-3px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: light-dark(#666, #aaa);
}

.footer-contact svg {
    color: var(--accent-color, #fba301);
}

.footer-contact a {
    color: light-dark(#666, #aaa);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color, #fba301);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid light-dark(#eee, #333);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: light-dark(#666, #aaa);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: light-dark(#666, #aaa);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color, #fba301);
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
} 