/* ============================================================
   CooknShare — Social App UI (Mobile + Desktop)
   ============================================================ */

/* =========================
   IMPORT & VARIABLES
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #FF7A00;
    --bg: #F6F6F8;
    --card: #FFFFFF;
    --text: #1C1C1E;
    --muted: #8E8E93;
    --border: #E5E5EA;
}

/* =========================
   RESET
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   GLOBAL
   ========================= */
.container {
    padding: 16px;
}

h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }

label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
}

/* =========================
   INPUTS
   ========================= */
input,
textarea {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

input[type="search"] {
    background: #EFEFF4;
    border: none;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: white;
    border: 1px solid #FF3B30;
    color: #FF3B30;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
    display: none;
}

/* =========================
   FILTER BAR
   ========================= */
.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

.filter-btn {
    background: #EFEFF4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* =========================
   RECIPE CARD
   ========================= */
.recipe-card {
    background: var(--card);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.recipe-card:hover {
    transform: translateY(-2px);
}

.recipe-card h3 {
    margin-bottom: 10px;
}

/* HEADER */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    margin-right: 10px;
}

.card-user {
    font-size: 13px;
    font-weight: 500;
}

/* IMAGE */
.card-image {
    font-size: 40px;
    text-align: center;
    margin: 10px 0;
}

/* CONTENT */
.card-title {
    font-size: 15px;
    font-weight: 600;
}

.card-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0;
}

/* META */
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
}

/* ACTIONS */
.card-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 14px;
}

/* =========================
   PROFILE
   ========================= */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header-card {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #eee;
    margin: auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* PROFILE MENU */
.profile-menu {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.profile-menu-vertical {
    margin-top: 20px;
}

.profile-item {
    display: block;
    background: white;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    color: black;
}

/* ACTIONS */
.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.profile-actions .btn {
    flex: 1;
}

/* FORM */
.form-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
}

/* =========================
   LISTS
   ========================= */
.ingredient-list li,
.instruction-list li {
    margin-bottom: 8px;
}

/* =========================
   BOTTOM NAV (MOBILE)
   ========================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.nav-item {
    text-align: center;
    font-size: 10px;
    color: var(--muted);
}

.nav-item span {
    font-size: 18px;
}

.nav-item.active {
    color: var(--primary);
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 768px) {

    .container {
        max-width: 700px;
        margin: 30px auto;
    }

    .recipes-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .bottom-nav {
        display: none;
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        background: white;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-links a {
        margin-left: 15px;
        text-decoration: none;
        color: var(--text);
        font-size: 14px;
    }
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 1024px) {

    .container {
        max-width: 1100px;
    }

    .recipes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body {
        background: #ECECEC;
    }

    .recipe-card {
        padding: 18px;
    }

    .nav-links a:hover {
        color: var(--primary);
    }
}