
/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
   /* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ==========================================
   NAVIGATION
   ========================================== */
/* Navigation styling for "Back to Portfolio Home" link */
nav {
    background: rgb(249, 227, 249);
    padding: 1rem 2rem;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #007bff;
}

nav a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
   .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* ==========================================
   HEADER
   ========================================== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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


/* ==========================================
   MAIN CONTENT & SECTIONS
   ========================================== */

main {
    padding: 2rem 0;
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}


/* ==========================================
   FORM STYLES
   ========================================== */

   .form-group {
    margin-bottom: 1.5rem;
}

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

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    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: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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


/* ==========================================
   BUTTONS
   ========================================== */

.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: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

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

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

.search-controls {
    display: flex;
    gap: 1rem;
}

.search-controls input {
    flex: 2;
}

.search-controls select {
    flex: 1;
}

/* ==========================================
   FAVORITES GRID & CARDS
   TODO LAB13: Cards will be populated by JavaScript
   ========================================== */

.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: #999;
    font-style: italic;
    padding: 2rem;
}

/* ==========================================
   FAVORITE CARD STYLES
   LAB13: JavaScript will create cards using these styles
   ========================================== */

.favorite-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

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

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

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

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

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

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

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0;
}

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

@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;
    }
}