/* ==========================================
   PROJECT 2: LOCAL FAVORITES TRACKER
   CSS organized by sections for maintainability

   Instructions: Add your styles in the marked sections below.
   Each section shows which lab adds what code.
   ========================================== */

/* ==========================================
   CSS RESET & BASE STYLES
   LAB11: Add core foundation styles here
   ========================================== */

/* TODO LAB11: Add CSS reset and base styles */
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #342203;
    background-color: #ffd79b;
}

/* ==========================================
   CONTAINER & LAYOUT
   LAB11: Add container and layout styles here
   ========================================== */

/* TODO LAB11: Add .container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER
   LAB11: Add header with gradient background
   ========================================== */

/* TODO LAB11: Add header, h1, and .subtitle styles */
header {
    background: linear-gradient(135deg, #9a95e2 0%, #5b45ca 100%);
    color: #ffe1b4;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px #ffd79b;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   MAIN CONTENT & SECTIONS
   LAB11: Add section containers and spacing
   ========================================== */

/* TODO LAB11: Add main and section styles */
main {
    padding: 2rem 0;
}

section {
    background: #ffe1b4;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px #ffd79b;
}

h2 {
    color: #5b45ca;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* ==========================================
   FORM STYLES
   LAB11: Add form layout and input styling
   TODO LAB13: May add form validation styles
   ========================================== */

/* TODO LAB11: Add .form-group, label, input, select, textarea styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #342203;
}

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #f4ede2;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #794f08;
    box-shadow: 0 0 0 3px #ffd79b;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================
   BUTTONS
   LAB11: Add primary button styling
   TODO LAB14: Will add .btn-danger and .btn-secondary here
   ========================================== */

/* TODO LAB11: Add .btn and .btn-primary styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #9a95e2;
    color: #ffe1b4;
}

.btn-primary:hover {
    background-color: #5b45ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #382a7e;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #794f08;
    color: #ffe1b4;
}

.btn-secondary:hover {
    background-color: #503505;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #342203;
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-danger {
    background-color: #9a95e2;
    color: #ffe1b4;
}

.btn-danger:hover {
    background-color: #5b45ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #382a7e;
}

.btn-danger:active {
    transform: translateY(0);
}

/* ==========================================
   SEARCH CONTROLS
   LAB11: Add search input and filter layout
   TODO LAB14: Will connect to JavaScript search functionality
   ========================================== */

/* TODO LAB11: Add .search-controls styles */
.search-controls {
    display: flex;
    gap: 1rem;
}

.search-controls input {
    flex: 2;
}

.search-controls select {
    flex: 1;
}

/* ==========================================
   FAVORITES GRID & CARDS
   LAB11: Add grid layout structure
   TODO LAB13: Cards will be populated by JavaScript
   ========================================== */

/* TODO LAB11: Add .favorites-grid and .empty-message styles */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #342203;
    font-style: italic;
    padding: 2rem;
}

/* ==========================================
   FAVORITE CARD STYLES
   LAB11: Prepare card design for JavaScript
   LAB13: JavaScript will create cards using these styles
   ========================================== */

/* TODO LAB11: Add .favorite-card and related styles */
.favorite-card {
    background: #f4ede2;
    border: 2px solid #ffd79b;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    border-color: #794f08;
    box-shadow: 0 4px 12px #503505;
    transform: translateY(-5px);
}

.favorite-card h3 {
    color: #342203;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.favorite-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #ffd79b;
    color: #5b45ca;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.favorite-rating {
    color: #5b45ca;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.favorite-notes {
    color: #342203;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.favorite-date {
    font-size: 0.85rem;
    color: #342203;
    margin-bottom: 1rem;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==========================================
   FOOTER
   LAB11: Add simple centered footer
   ========================================== */

/* TODO LAB11: Add footer styles */
footer {
    background-color: #342203;
    color: #f4ede2;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}


/* ==========================================
   RESPONSIVE DESIGN
   LAB11: Add mobile-first responsive breakpoints
   IMPORTANT: Keep ALL media queries in this section!
   TODO LAB13-15: May add responsive adjustments for new features
   ========================================== */

/* TODO LAB11: Add @media queries for tablet and mobile */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .search-controls {
        flex-direction: column;
    }

    .search-controls input,
    .search-controls select {
        flex: 1;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    section {
        padding: 1rem;
    }
}