/* 
   Molly's Graduation Celebration Styles
   A casual and fun design for a burger celebration
*/

/* ===== Variables ===== */
:root {
    /* Color Scheme */
    --primary-color: #FF6B35;     /* Warm orange */
    --secondary-color: #F7C59F;   /* Light peach */
    --accent-color: #EFEFD0;      /* Cream */
    --text-color: #2E282A;        /* Dark gray */
    --background-color: #FAF3DD;  /* Light cream */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --border-radius: 8px;
    
    /* Box Shadow */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E55A24; /* Darker orange */
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Layout ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: var(--spacing-xs) auto;
}

/* ===== Header Section ===== */
.header {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9) 0%, rgba(247, 197, 159, 0.9) 100%);
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

.main-title {
    font-size: 2rem; /* Even smaller base size for mobile */
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal; /* Ensures text wraps naturally */
    display: inline-block; /* Helps with text alignment */
    width: 100%; /* Full width */
    text-align: center; /* Center the text */
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ===== Photo Section ===== */
.photo-section {
    background-color: var(--white);
    text-align: center;
}

.photo-container {
    max-width: 400px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 5px solid var(--secondary-color);
}

.molly-photo {
    width: 100%;
    transition: transform 0.3s ease;
}

.photo-container:hover .molly-photo {
    transform: scale(1.02);
}

.photo-caption {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
}

/* ===== Achievement Section ===== */
.achievement-section {
    background-color: var(--accent-color);
    text-align: center;
}

.achievement-content {
    max-width: 800px;
    margin: 0 auto;
}

.achievement-text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.degree-details {
    display: block;
    font-style: italic;
    margin-top: var(--spacing-xs);
    color: #666;
}

.achievement-quote {
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.achievement-quote::before,
.achievement-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.achievement-quote::before {
    top: 0;
    left: 10px;
}

.achievement-quote::after {
    bottom: -10px;
    right: 10px;
}

/* ===== Event Details Section ===== */
.event-section {
    background-color: var(--white);
}

.event-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.detail-text h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

/* ===== Surprise Section ===== */
.surprise-section {
    background-color: var(--secondary-color);
    text-align: center;
}

.surprise-content {
    max-width: 800px;
    margin: 0 auto;
}

.surprise-message {
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 2px dashed var(--primary-color);
    position: relative;
}

.surprise-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.surprise-message p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.surprise-message p strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* ===== Map Section ===== */
.map-section {
    background-color: var(--accent-color);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

#map {
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--light-gray);
    /* Placeholder styling until map loads */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
}

#map::after {
    content: 'Map loading...';
}

.directions {
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.directions h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.parking-info {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs);
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer p {
    margin-bottom: 0;
    font-size: 1.2rem;
}

/* ===== Media Queries ===== */
/* Tablet (768px and up) */
@media screen and (min-width: 768px) {
    .event-details {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .map-container {
        grid-template-columns: 2fr 1fr;
    }
    
    .main-title {
        font-size: 3.5rem;
        hyphens: none; /* Disable hyphenation on larger screens */
        /* Maintain other properties from mobile but adjust for larger screens */
        white-space: normal;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
}

/* Desktop (1024px and up) */
@media screen and (min-width: 1024px) {
    .container {
        width: 80%;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 2rem;
    }
    
    #map {
        height: 400px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header, .photo-section, .achievement-section, 
.event-section, .map-section, .footer {
    animation: fadeIn 1s ease-out;
}

/* Stagger the animations */
.photo-section { animation-delay: 0.2s; }
.achievement-section { animation-delay: 0.4s; }
.event-section { animation-delay: 0.6s; }
.surprise-section { animation-delay: 0.8s; }
.map-section { animation-delay: 1s; }
.footer { animation-delay: 1.2s; }