/* استایل‌های ریسپانسیو اضافی برای سایت تاسیسات عرفان */

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* هیرو */
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* درباره ما */
    .about-content {
        flex-direction: column;
    }
    
    /* تماس با ما */
    .contact-content {
        flex-direction: column;
    }
    
    /* داشبورد */
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* ناوبری */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: block;
    }
    
    /* هیرو */
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* خدمات */
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* گالری */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* فرم‌ها */
    .form-row {
        flex-direction: column;
    }
    
    /* فوتر */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-col:nth-child(1) {
        grid-column: 1 / -1;
    }
    
    /* داشبورد کاربر */
    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .request-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* پنل ادمین */
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        flex: 1 0 auto;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    /* هیرو */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* بخش‌ها */
    .services, .about, .gallery, .contact {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* خدمات */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* گالری */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* فوتر */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* احراز هویت */
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    /* داشبورد */
    .sidebar-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .requests-filter {
        justify-content: center;
    }
    
    /* پنل ادمین */
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .admin-table table {
        font-size: 0.85rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* لوگو */
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* دکمه‌ها */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
    }
    
    /* ناوبری */
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .call-button span {
        display: none;
    }
    
    /* فرم‌ها */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    /* کارت‌ها */
    .service-card, .tutorial-card {
        padding: 1.5rem;
    }
    
    /* داشبورد */
    .dashboard-section {
        padding: 1.5rem;
    }
    
    /* پنل ادمین */
    .admin-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    /* تایپوگرافی */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* لوگو */
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* ناوبری */
    .user-button span {
        display: none;
    }
    
    /* خدمات */
    .service-icon {
        font-size: 2.5rem;
    }
}

/* پشتیبانی از حالت landscape در موبایل */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .auth-container {
        padding: 1rem 0;
    }
}

/* پشتیبانی از دستگاه‌های با دقت بالا */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* استایل‌های برای رتینا دیسپلی */
    .logo h1 {
        font-weight: 700;
    }
    
    .hero h2 {
        font-weight: 700;
    }
}

/* پشتیبانی از حالت تاریک */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .service-card, .dashboard-section, .auth-form, .contact-form {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    input, select, textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
}