/* ============================================
   HOST RA - Responsive Stylesheet
   Designed by: امیراحسان رمزی
   Version: 1.0.0
   ============================================ */

/* ============ LARGE DESKTOPS (1200px and above) ============ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .plans-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============ DESKTOPS (1024px to 1199px) ============ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero .container {
        gap: 40px;
    }
    
    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* ============ TABLETS (768px to 1023px) ============ */
@media (max-width: 1023px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .nav-actions {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: x-small;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .server-animation {
        width: 200px;
        height: 200px;
    }
    
    .server-box {
        width: 120px;
        height: 150px;
    }
    
    .server-icon {
        font-size: 2.5rem;
    }
    
    /* Sections */
    .learn-section,
    .hosting-section,
    .domain-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Learn Grid */
    .learn-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Hosting Tabs */
    .hosting-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .tab-btn small {
        display: none;
    }
    
    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-card {
        width: 280px;
        height: 380px;
        margin: 0 auto;
    }
    
    /* Domain */
    .domain-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-col:first-child {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }
    
    .footer-col h4::after {
        right: 0;
    }
}

/* ============ MOBILE LARGE (576px to 767px) ============ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .hero-stats {
        margin-top: 170px;
        margin-bottom: 95px;
        gap: 20px;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Cards */
    .learn-card,
    .plan-card,
    .contact-card {
        padding: 25px 20px;
    }
    
    .learn-card h3 {
        font-size: 1.2rem;
    }
    
    .learn-features {
        gap: 8px;
    }
    
    .learn-features span {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Plans */
    .plans-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .plan-card {
        padding: 30px 25px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    /* Domain Checker */
    .domain-checker,
    .domain-prices {
        padding: 25px 20px;
    }
    
    .domain-search-box {
        flex-direction: column;
    }
    
    .domain-input {
        min-width: 100%;
    }
    
    .domain-extension {
        width: 100%;
    }
    
    .btn-check-domain {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-content.modal-lg {
        width: 95%;
    }
    
    .modal-body iframe {
        height: 400px;
    }
    
    /* Guide Steps */
    .guide-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }
    
    /* About */
    .about-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .about-feature:hover {
        transform: translateY(-5px);
    }
    
    .about-card {
        width: 250px;
        height: 350px;
    }
    
    .about-card-content {
        padding: 30px 25px;
    }
    
    .about-card-content i {
        font-size: 3rem;
    }
    
    .about-card-content h3 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
        align-items: center;
    }
    
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-col ul li a:hover {
        transform: translateX(0) translateY(-2px);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Fixed Elements */
    .dark-mode-toggle,
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }
    
    .dark-mode-toggle {
        left: 20px;
    }
    
    .back-to-top {
        right: 20px;
    }
}

/* ============ MOBILE SMALL (320px to 575px) ============ */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .server-animation {
        width: 160px;
        height: 160px;
    }
    
    .server-box {
        width: 100px;
        height: 130px;
        gap: 15px;
    }
    
    .server-icon {
        font-size: 2rem;
    }
    
    .light {
        width: 8px;
        height: 8px;
    }
    
    /* Section Badge */
    .section-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Cards */
    .learn-card,
    .plan-card {
        padding: 20px 15px;
    }
    
    .learn-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .learn-icon-wrapper i {
        font-size: 2rem;
    }
    
    .icon-glow {
        width: 40px;
        height: 40px;
    }
    
    /* Features */
    .learn-features span {
        width: 100%;
        justify-content: center;
    }
    
    /* Plans */
    .plan-card {
        gap: 20px;
    }
    
    .plan-features {
        gap: 12px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .plan-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .stat-mini {
        flex: 1;
        min-width: 80px;
    }
    
    .plan-actions {
        flex-direction: column;
    }
    
    .plan-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Domain */
    .price-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 15px;
    }
    
    .price-row:hover {
        transform: translateX(0);
    }
    
    .domain-note {
        padding: 15px;
    }
    
    .domain-note ol {
        padding-right: 15px;
    }
    
    /* Contact */
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .map-container iframe {
        height: 200px;
    }
    
    /* Modal */
    .modal-content {
        padding: 15px;
        border-radius: var(--radius-md);
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body iframe {
        height: 300px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo svg {
        width: 120px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* ============ LANDSCAPE MOBILE ============ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero .container {
        gap: 20px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}

/* ============ HIGH DPI SCREENS ============ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-clouds,
    .clouds-bg,
    .contact-clouds {
        opacity: 0.8;
    }
}

/* ============ TOUCH DEVICES ============ */
@media (hover: none) and (pointer: coarse) {
    .learn-card:hover,
    .plan-card:hover,
    .contact-card:hover,
    .about-feature:hover {
        transform: none;
    }
    
    .plan-card:hover {
        transform: none;
    }
    
    .about-feature:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .nav-link,
    .mobile-nav-list li a,
    .btn {
        min-height: 44px;
    }
    
    .hamburger {
        min-width: 44px;
        min-height: 44px;
    }
}