@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    font-size: 17px;
    background-color: #FAFBFC;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FAFBFC;
    color: #1A1A1A;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    display: block;
    padding: 120px 20px 0 20px;
    text-align: left;
    line-height: 1.6;
}

a {
    color: #1A1A1A;
    transition: color 0.2s ease;
}

a:hover {
    color: #4A5568;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* 2. Align the logo and links inside the bar */
.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    /* Brand on left, Nav on right */
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 30px;
    /* Space between links */
}

.main-nav a {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:visited {
    color: #6B7280;
}

.main-nav a:hover {
    color: #CE3B62;
}

.main-nav a.active {
    color: #CE3B62;
    font-weight: 600;
}

.site-title {
    font-weight: 600;
    text-decoration: none;
    color: #1A1A1A;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.site-title:hover {
    color: #CE3B62;
}

main {
    width: 100%;
    /* Matches the max-width of header-inner */
    max-width: 1200px;
    /* Centers the main content area */
    margin: 0 auto;
    /* Matches the horizontal padding of header-inner */
    padding: 0 20px;
    /* Ensures the width calculation includes the padding */
    box-sizing: border-box;
}

.generator-wrapper {
    min-height: calc(100vh - 120px);

    /* Center content perfectly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Safety constraints */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* --- DESKTOP STYLES --- */

h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0F172A;
    text-align: center;
}

h2 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: center;
}

button {
    font-size: 1rem;
    background-color: #0F172A;
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

#output {
    font-size: 1.125rem;
    margin-top: 3rem;
    padding: 2.5rem;
    max-width: 600px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.7;
    display: none;
    color: #374151;
}

.button-group {
    margin-top: 1.5rem;
    display: none;
    gap: 10px;
    justify-content: center;
}

#generate {
    margin-top: 2rem;
}

#generateAgain,
#copyBtn {
    font-size: 1rem;
    padding: 12px 24px;
    background-color: #FFFFFF;
    color: #1A1A1A;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-weight: 500;
    width: 200px;
    text-align: center;
    display: inline-block;
    transition: all 0.2s ease;
}

#generateAgain:hover,
#copyBtn:hover {
    background-color: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

footer {
    position: relative;
    width: 100%;
    margin-top: 100px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

footer a {
    color: #6B7280 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #1A1A1A !important;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 50px;
}

.footer-content .divider {
    color: #D1D5DB;
}

/* --- RESOURCES PAGE STYLES --- */

/* Layout & Alignment Fix */
.resources-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding-bottom: 4rem;
    padding-left: 20px;
    padding-right: 20px;
}

/* Keep the main title centered for balance */

.page-intro {
    margin-bottom: 3rem;
    color: #4B5563;
    font-size: 1.125rem;
    line-height: 1.7;
    text-align: left;
    max-width: 700px;
}

.resources-container h2 {
    font-size: 1.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E5E7EB;
    color: #374151;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* The Grid System */
.resource-grid {
    display: grid;
    /* Creates a responsive grid: 1 column on mobile, 2 on desktop */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

/* The Clean Minimal Cards */
.resource-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.2s ease;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: #D1D5DB;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Typography inside cards */
.resource-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0F172A;
}

.resource-card h3 a {
    color: #CE3B62;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-card h3 a:hover {
    color: #932542;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.resource-card .founder {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.resource-card .founder a {
    color: #4B5563;
    font-weight: 500;
}

.resource-card p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4B5563;
}

/* Fix for the section titles */
.resource-group h2 {
    font-size: 0.875rem;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 0.75rem;
    font-weight: 600;
}

/* Hide the checkbox and button on desktop */
#nav-check, .nav-btn {
    display: none;
}

/* --- MOBILE STYLES --- */

@media (max-width: 768px) {
    
    body {
        padding-bottom: 20px; 
        height: auto;
        min-height: 100vh;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    #output {
        font-size: 1.25rem;
        padding: 1.5rem;
        width: 95%;
        max-width: 500px; 
        margin-top: 1.5rem;
        box-sizing: border-box;
    }

    button {
        font-size: 1.1rem;
        padding: 18px 24px;
        border-radius: 12px;
        width: 90%;
        max-width: 350px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    #generateAgain,
    #copyBtn {
        font-size: 1.1rem;
        padding: 16px;
        width: 90%;
        max-width: 350px;
    }

    #generate {
    margin-top: 2rem;
}

    .footer-content {
        background: transparent;
        backdrop-filter: none;
    }

    .generator-wrapper {
        /* On small screens, STOP forcing vertical centering.
           Just let it flow naturally from the top so nothing gets cut off. */
        justify-content: flex-start; 
        padding-top: 20px; 
        
        /* Ensure height is auto so it can scroll if needed */
        min-height: auto; 
    }
    
    .resource-grid {
    grid-template-columns: 1fr; /* Forces cards to be 100% width on phones */
    }

.nav-btn {
    display: inline-block;
}

.nav-btn label {
    display: inline-block;
    width: 30px;
    height: 30px;
    padding: 5px;
    cursor: pointer;
}

/* The three lines of the hamburger */
.nav-btn label span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #1A1A1A;
    margin: 4px 0;
    border-radius: 2px;
}

.main-nav {
    /* Position it as a dropdown */
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0 !important;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.main-nav a {
    width: 100%;
    padding: 16px 20px;
    border-bottom: 1px solid #F3F4F6;
}

/* If the checkbox is checked, show the nav */
#nav-check:checked~.main-nav {
    display: flex;
}

#nav-check {
    display: none;
}

}
