/* desktop-responsive.css - Load this AFTER all other CSS files */
/* Enhanced desktop responsiveness: centered layout, better scaling, fixed max-widths, improved spacing */

@media screen and (min-width: 1024px) {

    .notice-text {
        font-size: 14px;
    }

    .main-sliding {
        /* Default hidden/off-screen state */
        position: fixed;
        top: 50%;
        /* center vertically */
        left: 100vw;
        /* start off-screen to the right */
        width: 90%;
        max-width: 1100px;
        height: 100%;
        max-height: 900px;
        background-color: #121212;
        transform: translateY(-50%);
        /* only center vertically, not X */
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
            left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 99999;
        border-radius: 32px;
        overflow: auto;
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    }

    .main-sliding.active {
        left: 50%;
        /* slide to horizontal center */
        transform: translate(-50%, -50%);
        /* fully center */
    }

    .h2login {
        text-align: center;
    }

    .separator {
        max-width: 600px;
    }

    .farRight.pclong {
        margin-left: 315px;
        font-size: 18px;
    }

    .uni-selector {
        padding: 11px 32px;
        font-size: 18px;
    }

    .pcchange {
        justify-content: center;
        box-sizing: border-box;
    }

    .uni-selector .icon-placeholder {
        width: 30px;
        height: 30px;
    }

    .uni-selector .icon-placeholder img {
        width: 30px;
        height: 30px;
    }

    .social-container {
        max-width: 600px;
    }

    /* Base adjustments for better desktop feel */
    html,
    body {
        height: 100%;
        min-height: 100vh;
        overflow: auto;
        background-color: #0a0a0a;
        /* Even darker for contrast */
    }

    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Global max-width to prevent ultra-wide stretching */
        margin: 0 auto;
    }

    /* Main containers: fixed max-width, card-like appearance */
    .columnGeneral,
    .main,
    #home,
    #courseShow {
        max-width: 1024px;
        /* Tighter max-width for content focus */
        width: 100%;
        margin: 0 auto 40px;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
        background-color: #121212;
        padding: 40px 30px;
        /* More internal padding for breathing room */
        height: auto;
    }

    /* Home screen: better vertical spacing */
    #home.columnGeneral {
        padding-bottom: 60px;
        gap: 30px !important;
    }

    /* Announcements: fixed height limit, scrollable */
    .announcements {
        flex: none;
        margin: 0 auto;
        border-radius: 32px;
        margin-top: 40px;
        height: 900px;
        /* Fixed max-height to prevent endless growth */
        width: 100%;
        max-width: 1024px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .announcementsContainer {
        flex: 1;
        overflow-y: auto;
        margin: 0;
        padding: 30px;
        gap: 25px;
    }

    /* Carousel: horizontal scroll with larger gaps */
    .fullRow.carousel {
        overflow-x: auto;
        padding: 20px 0;
        gap: 25px;
        justify-content: flex-start;
    }

    .card {
        cursor: pointer;
        min-width: 240px;
        /* Larger cards */
        height: 300px;
        padding: 40px;
        border-radius: 32px;
        transition: transform 0.2s ease;
    }

    .card:hover {
        transform: translateY(-5px);
        /* Subtle hover effect for desktop */
    }

    .card.skeleton {
        min-width: 240px;
        height: 300px;
    }

    .icon-wrapper {
        width: 90px;
        height: 90px;
        font-size: 40px;
        margin-bottom: 35px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .title {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    /* Search container: centered and wider */
    .search-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 18px 28px;
        border-radius: 20px;
    }

    .search-input {
        font-size: 18px;
    }

    /* Text sizing: larger for readability */
    .header {
        font-size: 32px !important;
    }

    .cat_name {
        font-size: 24px;
    }

    .ann_text {
        font-size: 16px;
    }

    /* Announcement cards: wider, with hover */
    .announcement {
        max-width: 900px;
        margin: 0 auto;
        padding: 28px;
        border-radius: 24px;
        transition: box-shadow 0.2s ease;
    }

    .announcement:hover {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    /* Drawer: fixed position, wider */
    .drawer {
        width: 400px;
        border-radius: 32px 0 0 32px;
        padding: 40px;
        gap: 20px;
    }

    .drawer .tab {
        padding: 16px 24px;
        font-size: 18px;
        border-radius: 20px;
        cursor: pointer;
    }

    /* Course view: more padding */
    #courseShow {
        padding: 40px;
    }

    #courseShow .fullRow:first-child {
        padding-top: 0;
    }

    /* Bottom elements: static positioning */
    .bottom {
        position: static;
        margin-top: 60px;
        font-size: 16px;
    }

    /* Fullscreen announcements: modal-like, fixed size */
    .announcements.fullscreen {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        max-width: 1200px;
        height: 80vh;
        max-height: 900px;
        border-radius: 32px;
        overflow: hidden;
        z-index: 10000;
    }

    .announcements.fullscreen #announcementsContainer {
        height: calc(100% - 60px);
        /* Adjust for header */
    }

    /* Improve scrolling behavior */
    #announcementsContainer,
    #courseShow {
        overscroll-behavior-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* PFP and toggles: larger */
    .pfp {
        width: 60px;
        height: 60px;
    }

    .sidebarToggle {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        cursor: pointer;
    }

    .backButton {
        width: 50px;
        height: 50px;
        border-radius: 25px;
    }

    .main {
        overflow: auto !important;
    }

}

/* Extra large screens: scale up further */
@media screen and (min-width: 1440px) {

    .columnGeneral,
    .columnCentered,
    .main {
        max-width: 1200px;
        padding: 50px 40px;
    }

    .search-container {
        max-width: 100%;
    }

    .announcement {
        max-width: 1100px;
    }

    .card {
        min-width: 280px;
        height: 340px;
    }

    .drawer {
        width: 450px;
    }
}