/* استایل‌های لودینگ و پیام راه‌اندازی */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #6a11cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.setup-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.setup-message h2 {
    color: #6a11cb;
    margin-bottom: 20px;
    font-size: 2rem;
}

.setup-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.register-btn {
    background: #f1f5f9;
    color: #444;
    border: 2px solid #6a11cb;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-btn:hover {
    background: linear-gradient(135deg, #5a0cb0 0%, #1a65e8 100%);
}

.register-btn:hover {
    background: #e2e8f0;
}

.error-message {
    text-align: center;
    color: #ef4444;
    padding: 20px;
    background: #fee;
    border-radius: 8px;
    margin: 20px;
    border: 1px solid #fcc;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* استایل‌های هدر سایت */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.site-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.site-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0 0 0;
}

/* استایل‌های دکمه همبرگر */
.hamburger-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s;
    position: absolute;
    right: 15px; /* برای RTL */
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: none;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* منو ناوبری */
.nav-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: inherit;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* استایل‌های محتوای اصلی */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 60vh;
}

.content-item {
    margin: 30px 0;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.heading-content {
    color: #2d3748;
    margin: 20px 0;
    font-weight: 600;
}

.heading-content h1 {
    font-size: 2.5rem;
    margin: 20px 0;
}

.heading-content h2 {
    font-size: 2rem;
    margin: 18px 0;
}

.heading-content h3 {
    font-size: 1.75rem;
    margin: 16px 0;
}

.heading-content h4 {
    font-size: 1.5rem;
    margin: 14px 0;
}

.image-content {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}

.image-center {
    margin: 20px auto;
    display: block;
}

.image-left {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 50%;
}

.image-right {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 50%;
}

.image-full {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.link-content {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin: 10px 0;
}

.link-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.image-link-content {
    display: inline-block;
    text-decoration: none;
}

.image-link-content img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.image-link-content:hover img {
    transform: scale(1.02);
}

/* استایل‌های اسلایدر */
.slider-wrapper {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 30px 0;
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: white;
}

/* استایل‌های فوتر */
.site-footer {
    background: #1e293b;
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* استایل‌های اینماد */
.enmad-container {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.enmad-label {
    font-weight: bold;
    margin-bottom: 15px;
    color: #444;
    font-size: 1.2rem;
}

/* جداکننده */
.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
    width: 100%;
}

/* استایل‌های منو همبرگری در موبایل */
@media (max-width: 1024px) {
    .hamburger-btn {
        display: block !important;
    }
    
    .header-content {
        padding-right: 60px; /* فضا برای دکمه همبرگر */
    }
    
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        background: #4a5568 !important; 
        flex-direction: column !important;
        padding: 15px !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        z-index: 99 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        margin-top: 5px !important;
    }
    
    .nav-menu.show {
        display: flex !important;
        animation: fadeIn 0.3s ease;
    }
    
    .nav-menu a {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
        font-size: 1rem !important;
        color: inherit !important;
        text-decoration: none !important;
        display: block !important;
    }
    
    .nav-menu a:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* در دسکتاپ منو معمولی باشد */
@media (min-width: 1025px) {
    .hamburger-btn {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
       background: #4a5568 !important; 
        padding: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-menu a {
        width: auto !important;
        padding: 10px 20px !important;
        border-bottom: none !important;
        font-size: 1rem !important;
    }
    
    .header-content {
        padding-right: 20px;
    }
}

/* استایل‌های رسپانسیو دیگر */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: center;
        gap: 15px;
    }

    .nav-menu {
        justify-content: center;
    }

    .nav-menu a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .auth-buttons {
        flex-direction: column;
    }

    .auth-btn {
        width: 100%;
        justify-content: center;
    }

    .image-left,
    .image-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        display: block;
    }

    .slider-wrapper {
        height: 300px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }

    .setup-message {
        padding: 30px 15px;
    }

    .setup-message h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.2rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 20px 15px;
    }

    .content-item {
        padding: 15px;
    }

    .heading-content h1 {
        font-size: 1.8rem;
    }

    .heading-content h2 {
        font-size: 1.6rem;
    }

    .heading-content h3 {
        font-size: 1.4rem;
    }
}

/* بقیه استایل‌های موجود در فایل را حفظ کنید... */