/* ==========================================
   FONT IMPORT
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffe3ef; /* soft pink */
    color: #374151;
    line-height: 1.6;
}


/* ==========================================
   HEADER
   ========================================== */
header {
    background: linear-gradient(135deg, #ff6fb5 0%, #ff98cc 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 111, 181, 0.35);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}


/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 2.5rem 20px 4rem;
}

section {
    background: #ffffff;
    padding: 2rem 2rem 2.5rem;
    margin-bottom: 2rem;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #ff6fb5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}


/* ==========================================
   FORM FIELDS
   ========================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

input[type="text"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #ffd0e3;
    border-radius: 14px;
    background-color: #fff;
    font-size: 1rem;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff6fb5;
    box-shadow: 0 0 0 3px rgba(255, 111, 181, 0.25);
    transform: translateY(-1px);
}

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

.favorites-count {
    text-align: center;
    font-style: italic;
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 1.25rem;
}


/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1rem;
}

/* Pink primary button */
.btn-primary {
    background-color: #ff6fb5;
    color: white;
    box-shadow: 0 10px 20px rgba(255, 111, 181, 0.35);
}

.btn-primary:hover {
    background-color: #ff559f;
    transform: translateY(-2px);
}

/* Green delete button */
.btn-danger {
    background-color: #4ade80;
    color: white;
}

.btn-danger:hover {
    background-color: #2f855a;
    transform: translateY(-2px);
}


/* ==========================================
   SEARCH BAR
   ========================================== */
.search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.search-controls input {
    flex: 2;
}

.search-controls select {
    flex: 1;
}


/* ==========================================
   FAVORITES GRID
   ========================================== */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
}

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


/* ==========================================
   FAVORITE CARD STYLES
   ========================================== */
.favorite-card {
    background: #fff;
    border: 2px solid #ffd0e3;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(255, 111, 181, 0.18);
}

.favorite-card:hover {
    border-color: #ff6fb5;
    transform: translateY(-6px);
    box-shadow: 0 15px 28px rgba(255, 111, 181, 0.28);
}

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

.favorite-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #ffeff7;
    color: #ff6fb5;
    border-radius: 999px;
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
}

.favorite-rating {
    color: #4ade80;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.favorite-notes {
    color: #555;
    margin-bottom: 0.8rem;
}

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

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


/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: #ff6fb5;
    color: white;
    text-align: center;
    padding: 1.4rem 0;
    margin-top: 2rem;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

footer p {
    font-size: 0.95rem;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.4rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}
