/* Responsive Styles for Nova Nexus */

/* Tablet and smaller desktop screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
    }
    
    .hero-content {
        padding: 80px 20px;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .planet-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: var(--header-height);
        padding: 10px 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: var(--background-darker);
    }
    
    .logo {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-darker);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        height: auto;
    }
    
    .nav-links a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        height: auto;
        text-align: left;
    }
    
    /* Auth navigation items on mobile */
    .nav-links li a[href*="login.html"],
    .nav-links li a[href*="register.html"] {
        margin: 10px 20px;
        text-align: center;
        border-radius: 4px;
        height: auto;
    }
    
    .nav-links li a[href*="login.html"] {
        border: 1px solid var(--accent-color);
    }
    
    .nav-links li a[href*="register.html"] {
        background-color: var(--secondary-color);
        color: var(--text-color);
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }
    
    .hero {
        margin-top: var(--header-height);
        min-height: 500px;
        background-position: center center;
    }
    
    .hero-content {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }
    
    .hero p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .planet-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links, .social-links {
        margin: 20px 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Shop button styles */
    .shop-btn {
        background-color: var(--secondary-color);
        color: var(--text-color);
        padding: 8px 16px;
        border-radius: 4px;
        margin: 10px 20px;
        text-align: center;
        display: block;
    }
    
    .shop-btn:hover {
        background-color: var(--primary-color);
        color: var(--text-color);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
    }
    
    h2 {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .hero h1 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }
    
    .section {
        padding: 30px 0;
    }
    
    .data-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .data-table th, .data-table td {
        padding: 8px;
        min-width: 100px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .card {
        margin: 0;
    }
    
    .footer {
        padding: 30px 0;
    }
}

/* Print styles */
@media print {
    header, .hero, footer, .mobile-menu-btn {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    .data-table {
        border: 1px solid #000;
        width: 100%;
    }
    
    .data-table th, .data-table td {
        border: 1px solid #000;
        padding: 8px;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        height: auto;
        max-height: 80vh;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 40px 15px;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('../images/backgrounds/milky_way_background@2x.jpeg');
    }
    
    .bg-earth {
        background-image: url('../images/backgrounds/earth_from_space@2x.webp');
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 