
/* MOBILE RESPONSIVE STYLES */

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
    background: rgba(255, 118, 64, 0.1);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    /* Header adjustments */
    .nav-container {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px 15px;
        position: relative;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        margin-left: auto;
    }
    
    /* Mobile navigation - hidden by default */
    nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
        border-radius: 16px;
        overflow: hidden;
    }
    
    nav.active {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav ul {
        flex-direction: column;
        gap: 4px;
        background: var(--bg-medium);
        border-radius: 16px;
        padding: 12px;
        border: 2px solid var(--primary);
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        text-align: center;
        border-radius: 12px;
        transition: all 0.25s ease;
    }
    
    nav a:active {
        transform: scale(0.98);
    }
    
    nav a.active {
        background: var(--primary);
        color: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(255, 118, 64, 0.3);
    }
    
    /* User nav adjustments */
    .user-nav {
        order: 2;
        margin-left: 10px;
    }
    
    .user-name {
        display: none;
    }
    
    /* Hero section */
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Steps section */
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .step-card {
        max-width: 100%;
        width: 100%;
        border-radius: 20px;
    }
    
    /* Server info cards */
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    /* Auth forms */
    .auth-box {
        margin: 20px;
        padding: 25px;
        border-radius: 20px;
    }
    
    /* Support page */
    .support-container {
        padding: 15px;
    }
    
    .ticket-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    /* Admin panel */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Chat */
    .chat-panel {
        height: 400px;
        border-radius: 16px;
    }
    
    .chat-input-wrapper textarea {
        font-size: 16px;
        border-radius: 12px;
    }
    
    /* Centered smooth buttons for mobile */
    .btn,
    .btn-primary,
    .btn-secondary,
    button[type="submit"] {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 14px;
        padding: 14px 24px;
        font-size: 15px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn-small {
        max-width: 150px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn:active {
        transform: scale(0.96);
    }
    
    /* Cards smoother */
    .card {
        border-radius: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    /* News cards */
    .news-card {
        border-radius: 20px;
    }
    
    /* Stat cards */
    .stat-card {
        border-radius: 20px;
        transition: all 0.3s ease;
    }
    
    /* Form inputs smoother */
    input,
    textarea,
    select {
        border-radius: 12px;
        transition: all 0.2s ease;
    }
    
    input:focus,
    textarea:focus,
    select:focus {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 118, 64, 0.2);
    }
    
    /* Back link button */
    .back-link .btn {
        max-width: 200px;
    }
    
    /* Chat send button */
    .btn-send {
        width: 48px;
        height: 48px;
        max-width: none;
        padding: 0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
    }
    
    /* File upload button */
    .file-upload-btn {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 12px;
    }
    
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    /* Even smoother small buttons */
    .btn-small {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    /* Card padding adjustment */
    .card {
        padding: 25px 20px;
    }
    
    /* Section padding */
    .section {
        padding: 60px 15px;
    }
}
