/* ========================================
   StellarFX - Responsive Styles
   ======================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .hero .container {
        gap: 2rem;
    }
    
    .features-grid,
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Tablets / Small Desktops (768px - 992px) */
@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 240px;
    }
    
    .dashboard-main {
        margin-left: 240px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        gap: 1.5rem;
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    /* Sections */
    .features h2,
    .platforms h2,
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    /* Dashboard */
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .dashboard-header {
        flex-wrap: wrap;
    }
    
    .header-info {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .trade-actions {
        flex-direction: column;
    }
    
    .trade-actions .btn {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Auth */
    .auth-card {
        margin: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 12px;
    }
    
    .trades-table th,
    .history-table th,
    .trades-table td,
    .history-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Mobile Phones (below 576px) */
@media (max-width: 576px) {
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .logo {
        font-size: 16px;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-login,
    .btn-signup {
        padding: 0.4rem 0.8rem;
        font-size: 12px;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Cards & Sections */
    .feature-card,
    .platform-card,
    .method-card {
        padding: 1.5rem 1rem;
    }
    
    .features,
    .platforms,
    .cta {
        padding: 2.5rem 0;
    }
    
    /* Dashboard */
    .dashboard-header {
        padding: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 20px;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .card-amount {
        font-size: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 13px;
    }
    
    .btn-block {
        display: block;
        width: 100%;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-form {
        padding: 1rem;
    }
    
    /* Tables */
    .trades-table,
    .history-table {
        font-size: 12px;
    }
    
    .trades-table th,
    .history-table th,
    .trades-table td,
    .history-table td {
        padding: 0.5rem;
    }
    
    /* Chat */
    .livechat-container {
        height: 400px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    /* Deposit/Withdraw */
    .deposit-methods,
    .crypto-methods {
        gap: 1rem;
    }
    
    .payment-address {
        padding: 0.75rem;
    }
    
    .btn-copy {
        padding: 0.4rem;
        right: 0.5rem;
        top: 0.5rem;
    }
}

/* Extra Small Devices (below 360px) */
@media (max-width: 360px) {
    /* Navigation */
    .logo-text {
        display: none;
    }
    
    .logo {
        gap: 0;
    }
    
    .btn-login,
    .btn-signup {
        padding: 0.35rem 0.6rem;
        font-size: 11px;
    }
    
    /* Hero */
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        padding: 0.6rem 0.8rem;
        font-size: 13px;
    }
    
    /* Cards */
    .stat-card {
        padding: 0.75rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    /* Tables - Hide less important columns */
    .trades-table .time-col,
    .history-table .transaction-col {
        display: none;
    }
    
    /* Auth */
    .auth-card {
        padding: 1rem;
    }
    
    .auth-card h1 {
        font-size: 1.25rem;
    }
    
    /* Footer */
    .footer-section h4 {
        font-size: 13px;
    }
    
    .footer-section a {
        font-size: 12px;
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .sidebar-toggle,
    .btn,
    .action-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero .container {
        gap: 1.5rem;
    }
    
    .dashboard-header {
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
