/* ==================== VARIABLES ==================== */

:root {
    --bg-color: #fafaf8;
    --text-color: #2a2a2a;
    --accent-color: #6b5b4a;
    --border-color: #e8e4dc;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* ==================== CONTAINER & LAYOUT ==================== */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== HEADER ==================== */

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
}

/* ==================== MAIN CONTENT ==================== */

.content {
    flex: 1;
}

/* ==================== LIKES GRID ==================== */

.likes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ==================== LIKE ITEM CARD ==================== */

.like-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.like-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.item-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

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

.footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #888;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .likes-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .like-item {
        padding: 1.5rem;
    }

    .item-title {
        font-size: 1.15rem;
    }

    .item-description {
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .likes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .like-item {
        padding: 1.25rem;
    }

    .item-title {
        font-size: 1.1rem;
    }

    .item-description {
        font-size: 0.85rem;
    }

    .footer {
        margin-top: 2rem;
        padding-top: 1rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container {
        padding: 0.75rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .likes-grid {
        gap: 0.75rem;
    }

    .like-item {
        padding: 1rem;
    }
}

/* ==================== PRINT STYLES ==================== */

@media print {
    body {
        background-color: white;
    }

    .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .like-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .like-item:hover {
        transform: none;
        box-shadow: none;
    }
}
