/* =========================
   MAIN.CSS - Hannah Matriccino
   ========================= */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@300;400;600&display=swap');

/* CSS Variables for the color palette */
:root {
    --blue-main: #7a9bbf;       /* Steel blue - main sections */
    --blue-dark: #5f7fa3;       /* Darker blue - footer, accents */
    --blue-light: #b0c8e0;      /* Light blue - hover, borders */
    --blue-pale: #dce8f2;       /* Very light blue - backgrounds */
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #f0f4f8;
    --nav-text: #3a5a7c;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page base */
body {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    background-color: var(--blue-pale);
    color: var(--text-dark);
}

/* =========================
   WRAPPER
   ========================= */

#wrapper {
    width: 85%;
    max-width: 1100px;
    margin: 30px auto;
    background-color: var(--white);
    box-shadow: 0 2px 16px rgba(90, 130, 170, 0.18);
    border-radius: 4px;
    overflow: hidden; /* keeps children from bleeding out of rounded corners */
}

/* =========================
   HEADER
   ========================= */

header {
    display: flex;                  /* Side-by-side layout */
    align-items: center;            /* Vertically center name and nav */
    justify-content: space-between; /* Name left, nav right */
    padding: 18px 30px;
    background-color: var(--white);
    border-bottom: 2px solid var(--blue-pale);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-main);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* =========================
   NAVIGATION
   ========================= */

nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a {
    text-decoration: none;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--nav-text);
    padding: 6px 10px;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
    background-color: var(--blue-pale);
    color: var(--blue-dark);
    text-decoration: none;
}

/* =========================
   MAIN LAYOUT
   ========================= */

main {
    display: flex;
    gap: 0;
    background-color: var(--blue-main);
    padding: 40px 35px;
    align-items: center;
    min-height: 260px;
}

/* =========================
   SECTION (MAIN CONTENT)
   ========================= */

section {
    flex: 3;
    color: var(--white);
    padding-right: 30px;
}

section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

section p {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--white);
}

/* =========================
   ASIDE (PHOTO / SIDEBAR)
   ========================= */

aside {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Style for a profile photo inside aside */
aside img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border: 5px solid var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(40, 70, 100, 0.3);
}

/* =========================
   FOOTER
   ========================= */

footer {
    background-color: var(--blue-dark);
    color: var(--text-light);
    text-align: center;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

footer h4 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-light);
}

footer a {
    color: var(--blue-pale);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* =========================
   UTILITY CLASSES
   ========================= */

/* For a contact info footer layout like in the design */
.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-contact span::before {
    content: '|';
    margin-right: 18px;
    opacity: 0.5;
}

.footer-contact span:first-child::before {
    content: '';
    margin: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.photo-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================
CONTACT FORM STYLING
========================= */

.contact-form {
    margin-top: 20px;
}

/* each row (label + input) */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* labels (Name, Email, Message) */
.form-row label {
    width: 90px;
    background-color: white;
    color: #5f88a3;
    padding: 6px 10px;
    border-radius: 10px;
    margin-right: 10px;
    font-size: 10px;
    font-weight: 700;
}

/* inputs */
.form-row input {
    flex: 1;
    height: 25px;
    border: none;
    background-color: white;
    border-radius: 4px;
    padding: 5px;
}

/* textarea row */
.message-row {
    align-items: flex-start;
}

/* textarea */
.form-row textarea {
    flex: 1;
    height: 120px;
    border: none;
    background-color: white;
    border-radius: 4px;
    padding: 8px;
    resize: none;
}

/* button */
.contact-form button {
    margin-left: 100px;
    padding: 6px 14px;
    border: none;
    background-color: white;
    color: #5f88a3;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: 0.8;
}

button[type="submit"] {
    background-color: white;
    color: var(--blue-dark);
    padding: 10px 25px;
    border: 2px solid var(--blue-dark);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background-color: var(--blue-dark);
    color: white;
}

/* Makes the video larger and responsive */
.video-container iframe {
    width: 100%;
    max-width: 854px; /* Standard large player size */
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin-top: 20px;
}

/* Ensures the main section can expand for the larger video */
main {
    align-items: flex-start; /* Allows the blue area to grow vertically */
    padding-bottom: 60px;
}

/* Styling for the Download Area */
.download-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-button {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.8rem;
    color: #5f7fa3; /* Matches your blue-dark variable */
    text-decoration: underline;
    font-weight: 400;
    line-height: 1.2;
    display: block;
}

/* Adjusting the resume image size */
.resume-preview {
    width: 100%;
    max-width: 450px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Centers content vertically in the main blue bar */
main {
    align-items: center;
}

/* Container for the white box to prevent it from stretching too far */
.download-box {
    background-color: var(--white);
    padding: 60px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Limits the width of the white box */
    margin: 0 auto;   /* Centers it within the section */
}

/* Styling the text link */
.download-button {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.6rem;
    color: #5f7fa3; 
    text-decoration: underline;
    font-weight: 400;
    line-height: 1.3;
}

/* Ensure the resume image is large and visible */
.resume-preview {
    width: 100%;
    max-width: 400px; /* Adjust this to make the picture bigger or smaller */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

/* Container for the white box to prevent it from stretching too far */
.download-box {
    background-color: var(--white);
    padding: 60px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* Limits the width of the white box */
    margin: 0 auto;   /* Centers it within the section */
}

/* Styling the text link */
.download-button {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.6rem;
    color: #5f7fa3; 
    text-decoration: underline;
    font-weight: 400;
    line-height: 1.3;
}

/* Ensure the resume image is large and visible */
.resume-preview {
    width: 100%;
    max-width: 400px; /* Adjust this to make the picture bigger or smaller */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

/* Layout alignment */
main {
    display: flex;
    align-items: center; /* Vertically centers the box and image */
    justify-content: space-around; 
    padding: 40px;
}

/* The white background box for links */
.links-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px 40px; /* Space between rows and columns */
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Individual link row styling */
.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.link-item img {
    width: 45px; /* Size of the social icons */
    height: 45px;
    object-fit: contain;
}

.link-item a {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.5rem;
    color: #5f7fa3; /* Matches your theme blue */
    text-decoration: underline;
    transition: opacity 0.2s;
}

.link-item a:hover {
    opacity: 0.7;
}

/* Centers the "Links:" title above the box */
section h1 {
    text-align: center;
    width: 100%;
    margin-bottom: 10px;
}

/* --- RESUME PAGE SPECIFIC STYLES --- */

/* This layout will ONLY apply to the resume page */
.resume-page main {
    display: flex;
    align-items: center; 
    justify-content: space-around;
    padding: 50px;
    gap: 20px;
}

.resume-page main section {
    flex: 1; 
    display: flex;
    justify-content: center;
}

.resume-page main aside {
    flex: 2; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* These classes are already specific, so they are safe at the bottom */
.download-box {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.resume-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


/* --- MEDIA PAGE ONLY --- */

/* Changes the layout from side-by-side to a centered column */
.media-page main {
    display: flex;
    flex-direction: column; 
    align-items: center;    /* Centers the video horizontally */
    justify-content: center;
    text-align: center;     /* Centers the "Media" title */
    padding: 60px 20px;
}

/* Forces the section to take up the full width for centering */
.media-page main section {
    flex: none;
    width: 100%;
    padding-right: 0;
}

/* Centering the video container and ensuring it is large enough to load the picture */
.media-page .video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}

.media-page .video-container iframe {
    width: 100%;
    max-width: 800px; /* Large enough to prevent Error 153 */
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Hides the empty aside on the media page so it doesn't take up space */
.media-page aside {
    display: none;
}



/* --- MEDIA PAGE ADDITIONS --- */

.media-page .podcast-container {
    display: flex;
    justify-content: center;
    width: 100%;
    /* This ensures it lines up perfectly with the YouTube video */
    max-width: 800px; 
    margin: 40px auto 0 auto; 
}

.media-page .podcast-container iframe {
    /* Spotify embeds look best when they fill their container width */
    width: 100%;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}