/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ----------my styles-------- */

@font-face {
  font-family: 'Sage Grotesk';
  src: url('../../fonts/Sage Grotesk.woff2') format('woff2'),
       url('../../fonts/Sage Grotesk.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
    background: #181818;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.container {
    background: #fff;
    border-radius: 32px;
    padding: 20px;
    max-width: 1260px;
    width: 100%;
    /* max-height: 80vh; */
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    grid-template-areas:
        "featured sidebar"
        "featured sidebar"
        "bottom bottom";
}

a {
    text-decoration: none;
    color: inherit;
}
/* Featured Module */
.featured {
    grid-area: featured;
    background: #1a1a1a;
    color: #fff;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    text-align: left;
    border: none;
    /* width: 100%; */
}

.featured:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
}

.featured:active {
    transform: translateY(0);
}

.featured h1 {
    font-size: 2rem;
    font-weight: 100;
    margin: 0;
    margin-bottom: 20vh;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

.featured h2 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);;
    font-weight: 200;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

.featured p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: 'Sage Grotesk', 'Courier New', monospace, Arial, sans-serif;
}

/* Sidebar */
aside {
    grid-area: sidebar;
    border-radius: 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.back-btn:hover {
    opacity: 0.7;
}

.back-btn img {
    width: 50px;
    height: 40px;
}

.sidebar-nav-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    font-family: inherit;
    padding: 8px;
    transition: opacity 0.2s;
    text-align: left;
    width: 100%;
}

.sidebar-nav-btn:hover {
    opacity: 0.7;
}

/* Module Buttons */
.module-btn {
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    text-align: left;
    /* font-size: 1.8rem; */
    font-weight: 300;
    min-height: 140px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.module-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.module-btn:active {
    transform: translateY(0);
}

aside .module-btn {
    min-height: 10vh;
    font-size: 1.8rem;
}

.bottom-modules {
    grid-area: bottom;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    height: 20vh;
}

.bottom-modules .module-btn {
    min-height: 80px;
    font-size: 2rem;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 1220px) {
    .container {
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-template-rows: auto 1fr auto;
        gap: 12px;
        grid-template-areas:
            "featured sidebar"
            "featured sidebar"
            "bottom bottom";
        padding: 24px;
    }

    .featured h1 { 
        font-size: 3rem; 
    }
    
    .featured h2 { 
        font-size: 2rem; 
    }
    
    .module-btn { 
        font-size: 1.8rem; 
    }
    
    .bottom-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "featured"
            "sidebar"
            "bottom";
        padding: 24px;
    }

    .featured h1 { 
        font-size: 3rem; 
    }
    
    .featured h2 { 
        font-size: 2rem; 
    }
    
    .module-btn { 
        font-size: 1.8rem; 
    }
    
    .bottom-modules {
        grid-template-columns: 1fr;
    }
}