/* ===================================================================
   LAYOUT.CSS - Bake App
   - Handles the high-level page structure, including the sticky
     footer and main welcome screen.
=================================================================== */

/* ===================================
   1. STICKY FOOTER LAYOUT
   - Ensures the footer is always at the bottom of the viewport.
=================================== */

/* These rules work together to create a flex container that fills the viewport height. */
html, body {
    height: 100%;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* The main content area will expand to fill any available space. */
.main-content {
    flex: 1 0 auto;
}

/* The footer will not shrink and is pushed to the bottom by the main content. */
.footer {
    flex-shrink: 0;
    padding: 1rem 0;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
    background-color: rgba(248, 249, 250, 0.9); /* Light background with slight transparency */
    backdrop-filter: blur(5px);
}

.footer a {
    margin: 0 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #495057;
    text-decoration: underline;
}

/* ===================================
   2. WELCOME SCREEN
   - Styles for the initial view before a recipe is selected.
=================================== */

.welcome-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease; /* Animation defined in core.css */
}

.welcome-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both; /* Delayed animation */
}

.welcome-instruction {
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.4s both; /* Further delayed animation */
}
/* Add this rule to layout.css */
.page-wrapper {
    margin-left: auto;
    margin-right: auto;
}