/* =====================================================
   Tech UGC Application Portal - Beatriz Paz
   CIS515 Project styles
   M05 Project Part 3: all styling for index, about (page 1),
   apply (page 2), and contact comes from this file.
   ===================================================== */

/* Universal selector: a little breathing room on every element */
* {
    box-sizing: border-box;
    padding: 2px;
}

/* Page background: soft lavender-to-pink gradient that matches the purple/pink brand,
   light enough that the white content cards stay easy to read */
body {
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #1f1235;
    background-color: #f5f3ff;
    background-image: linear-gradient(180deg, #f5f3ff 0%, #fce7f3 100%);
    background-attachment: fixed;
    line-height: 1.7;
}

/* =====================
   Banner (top of every page)
   ===================== */

.banner {
    background-color: #1f1235;
    color: #ffffff;
}

.banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
}

/* Image border: dotted pink ring around the small logo */
.brand img {
    width: 44px;
    height: 44px;
    border: 2px dotted #f9a8d4;
    border-radius: 10px;
}

/* Nav bar background: a lighter pill so the links stand apart from the dark banner */
.main-nav {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

/* Descendant selector: space between nav items so links are easier to click */
.main-nav ul li {
    margin: 0 4px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    color: #e9d5ff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

/* Pseudo-class: links grow slightly and brighten on hover */
.main-nav a:hover,
.main-nav a:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: scale(1.08);
}

/* Set by js/main.js on the link for the page you're on */
.main-nav a[aria-current="page"] {
    background-color: #ec4899;
    color: #ffffff;
}

/* =====================
   Page heading
   ===================== */

/* My own rule: a purple-to-pink gradient banner on every page so each page title
   feels like the start of something, and the site has one recognizable look */
.page-heading {
    background-image: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    text-align: center;
    padding: 48px 20px;
}

.page-heading h1 {
    margin: 0 0 8px;
    font-size: 2.3em;
    line-height: 1.2;
}

.page-heading p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

/* =====================
   Main content
   ===================== */

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px;
}

section {
    background-color: #ffffff;
    border: 1px solid #ede9fe;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

/* Headings pop in the brand purple */
h2 {
    color: #7c3aed;
    margin-top: 0;
}

h3 {
    color: #1f1235;
    margin-bottom: 4px;
}

a {
    color: #7c3aed;
}

a:hover {
    color: #ec4899;
}

/* Image border: dashed lavender frame around the home page illustration */
.hero-image {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 24px;
    border: 4px dashed #c4b5fd;
    border-radius: 16px;
}

/* About page (page 1) paragraphs: bigger, darker, more line spacing,
   with a pink accent bar so the program details are easy to scan */
.bio {
    font-size: 1.05em;
    color: #3b2a5c;
    line-height: 1.9;
    border-left: 4px solid #ec4899;
    padding-left: 14px;
}

/* My own rule: a yellow sticky-note box so visitors (and my instructor) can tell
   at a glance which text is placeholder content that gets replaced later */
.placeholder-note {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.95em;
}

/* Related links list */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ede9fe;
}

.resource-list li:last-child {
    border-bottom: none;
}

.resource-list a {
    font-weight: 700;
}

/* =====================
   Contact form
   ===================== */

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label,
.form-fieldset legend {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 1em;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #ec4899;
    border-color: #ec4899;
}

.hint {
    font-size: 0.85em;
    color: #6b5b8a;
    margin: 4px 0 0;
}

.required {
    color: #db2777;
}

.form-fieldset {
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 18px;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-block;
    background-image: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* =====================
   Form handler results
   ===================== */

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #ede9fe;
    vertical-align: top;
}

.results-table th {
    width: 35%;
    color: #7c3aed;
}

/* =====================
   Footer
   ===================== */

/* ID selector: footer gets smaller italic serif text so it reads differently from the page */
#site-footer {
    background-color: #1f1235;
    color: #c4b5fd;
    text-align: center;
    padding: 24px 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

#site-footer p {
    margin: 4px 0;
}

#site-footer a {
    color: #f9a8d4;
}

/* =====================
   Small screens
   ===================== */

@media (max-width: 600px) {
    .banner-inner {
        justify-content: center;
    }

    .page-heading h1 {
        font-size: 1.6em;
    }

    section {
        padding: 20px 16px;
    }
}
