/* ==========================================================================
   SYBERNETICS — RESPONSIVE STYLES
   This stylesheet centralizes all media queries to ensure the portal
   is fully functional and visually consistent across all devices.
   ========================================================================== */

/* ==========================================================================
   GLOBAL / SITE-WIDE RESPONSIVENESS
   Pertains to: All Pages (via styles.css)
   ========================================================================== */

@media (max-width: 600px) {
    header {
        width: 95%;
        margin: 20px auto;
        padding: 40px 20px 20px 20px;
        box-shadow:
            3px 3px 0px var(--magenta),
            0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .logo {
        width: 60%;
    }

    nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    main {
        width: 92%;
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1rem;
    }

    footer li {
        width: 50%;
    }
}

/* ==========================================================================
   INDEX & UPDATES PAGE RESPONSIVENESS
   Pertains to: index.html, updates.html (via homestyles.css)
   ========================================================================== */

@media (max-width: 600px) {
    .tagline {
        font-size: 0.85rem;
        margin-bottom: 30px;
    }

    /* Stack content vertically on mobile */
    .index-content {
        flex-direction: column;
    }

    .changelog {
        max-width: 100%;
    }
}

/* ==========================================================================
   MY BOOKSHELF RESPONSIVENESS
   Pertains to: books.html (via bookshelf.css)
   ========================================================================== */

@media (max-width: 600px) {
    .bookshelf-container {
        padding: 20px;
        width: 92%;
        margin: 20px auto;
    }
    
    .shelf {
        margin-bottom: 50px;
    }

    .shelf li {
        flex: 0 0 120px;
        height: 180px;
        font-size: 0.7rem;
        padding: 10px;
    }

    .modal-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .book-modal-left {
        flex: 0 0 auto;
        width: 150px;
    }
}

/* ==========================================================================
   CAPTAIN'S LOG RESPONSIVENESS
   Pertains to: blog.html (via blog.css)
   ========================================================================== */

@media (max-width: 600px) {
    .blog-entries {
        gap: 40px;
    }
    
    .entry {
        padding-bottom: 30px;
    }
}

/* ==========================================================================
   COMMUNICATIONS LOG RESPONSIVENESS
   Pertains to: chatroom.html (via comms.css)
   ========================================================================== */

@media (max-width: 600px) {
    .comms-container {
        padding: 20px;
        width: 92%;
        margin: 20px auto;
    }
    
    .comms-welcome h2 {
        font-size: 1.4rem;
    }
}
