/* ==========================================
   You Love Cookies - Thank You Page Styles
   ========================================== */

/* CSS Variables */
:root {
    --primary-text: #3a3a3a;
    --light-gray: #666;
    --lighter-gray: #999;
    --background: #ffffff;
    --accent-background: #fafafa;
    --header-font: 'Petrona', serif;
    --body-font: 'Libre Baskerville', serif;
    --max-width: 1200px;
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 0.9375rem; /* 15px */
    line-height: 1.8;
    color: var(--primary-text);
    background-color: var(--background);
    opacity: 0;
    transition: opacity 0.6s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-medium);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: var(--spacing-medium) 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: var(--spacing-large);
}

.brand-name {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.875rem;
    color: var(--light-gray);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-large);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: var(--spacing-medium) 0;
}

.main-heading {
    font-family: var(--header-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1.2;
    margin-bottom: var(--spacing-medium);
}

/* Message Section */
.message {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-large);
    align-items: center;
    padding: var(--spacing-medium) 0;
}

.message-content {
    max-width: 650px;
    margin: 0 auto;
}

.message-content p {
    margin-bottom: var(--spacing-medium);
    text-align: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1.6;
}

.farewell {
    margin-top: var(--spacing-large);
    font-style: italic;
    color: var(--light-gray);
}

.farewell strong {
    color: var(--primary-text);
    font-style: normal;
}

/* Image Container */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.cookie-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cookie-image:hover {
    transform: scale(1.02);
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--spacing-large) 0 var(--spacing-medium);
    border-top: 1px solid #e5e5e5;
    margin-top: var(--spacing-large);
}

.footer p {
    font-size: 0.875rem;
    color: var(--lighter-gray);
}

/* Responsive Design */
@media (min-width: 768px) {
    .message {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-large);
    }

    .message-content {
        text-align: left;
        margin: 0;
    }

    .message-content p {
        text-align: left;
    }

    .farewell {
        text-align: left;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: var(--spacing-small);
    }

    .brand-name {
        font-size: 2rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    .header {
        margin-bottom: var(--spacing-medium);
    }

    .hero {
        padding: var(--spacing-small) 0;
    }

    .message {
        gap: var(--spacing-medium);
    }

    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .main-heading {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }

    .cookie-image {
        box-shadow: none;
    }
}
