/* 🎨 Design System & Variables */
:root {
    /* Your Custom Palette */
    --color-primary: #351431;    /* Midnight Violet */
    --color-secondary: #775253;  /* Chocolate Plum */
    --color-accent: #bdc696;     /* Dry Sage */
    --color-bg-paper: #d1d3c4;   /* Bone */
    --color-bg-main: #dfe0dc;    /* Alabaster Grey */
    
    /* Functional Colors */
    --color-text-dark: #2c2c2c;
    --color-text-light: #ffffff;
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.1);
    --radius-main: 12px;
}

/* 🏗️ Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-dark);
    /* This adds enough padding at bottom for the fixed nav bar */
    padding-bottom: 80px; 
}

/* 🔍 Header & Search Bar */
.app-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.search-container {
    margin-top: 1rem;
}

#globalSearch {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* ⚡ Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: -20px 0 20px 0; /* Pulls buttons up into the header slightly */
    position: relative;
    z-index: 10;
}

.action-btn {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.05);
    background-color: var(--color-primary);
}

/* 🖼️ Grid Layout for Memories */
#recent-memories {
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* 🏛️ "Museum Card" Style Placeholder */
.memory-card {
    background-color: var(--color-bg-paper); /* Bone color */
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.placeholder-text {
    text-align: center;
    color: var(--color-secondary);
    font-style: italic;
    padding: 2rem;
}

/* 📱 Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-accent); /* Dry Sage accent */
}

.nav-item {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--color-primary);
    font-weight: bold;
}
