/*
Theme Name: Chefavorite Project
Author: Gemini
Version: 1.1
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

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

body {
    background-color: #f9f9f9; 
    color: #232528; 
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. HEADER (Horizontal & Centered) --- */
#main-header {
    height: 70px;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.header-logo a { 
    font-size: 22px; 
    font-weight: 900; 
    letter-spacing: -1px; 
    text-decoration: none; 
    color: #000;
    background: #b6ff00; /* Lime green from your screenshot */
    padding: 2px 10px;
}

/* Centering the Menu */
.header-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-menu a { 
    text-decoration: none; 
    color: #232528; 
    font-weight: 600; 
    font-size: 14px;
    transition: color 0.2s;
}

.header-menu a:hover {
    color: #b6ff00;
}

.header-right { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.header-right .icon { 
    font-size: 20px; 
    cursor: pointer; 
    text-decoration: none;
    color: #232528;
}

.user-avatar img { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    object-fit: cover;
}

/* --- 3. PLATFORM LAYOUT (20/80 Dynamic) --- */
#platform-wrapper { 
    display: flex; 
    margin-top: 100px; /* Space for the fixed header */
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 40px 20px;
    gap: 25px;
}

/* Sidebar as a Card */
#sidebar-column {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.078);
    height: fit-content;
    padding: 20px;
    position: sticky;
    top: 100px;
}

/* Main Content Area */
#main-content {
    flex: 1;
}

/* --- 4. CARDS & COMPONENTS --- */
.card, 
section.card, 
.inbox-container { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.078);
    margin-bottom: 25px;
    border: none;
}

h1, h2, h3 {
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Buttons */
.sb-btn { 
    display: inline-block; 
    background: #000; 
    color: #fff; 
    padding: 12px 20px; 
    text-align: center; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.sb-btn:hover {
    background: #333;
}

.sb-btn:active {
    transform: scale(0.98);
}

/* Forms */
input[type="text"], 
input[type="email"], 
input[type="password"], 
select, 
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
    margin-top: 5px;
    font-family: inherit;
}

/* --- 5. SIDEBAR MENU ITEMS --- */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    text-decoration: none;
    color: #232528;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f5f5f5;
}

.count-badge {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px; /* Adjust based on your badge position */
    background: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: transform 0.2s;
}
.wishlist-btn:hover { transform: scale(1.1); }

/* Wishlist Button Styling */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px; /* Positioned top-left as requested */
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 20;
    font-size: 18px;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

/* Favorites Widget (Top Right) */
.favorite-widget {
    position: fixed;
    top: 85px; /* Adjust based on your header height */
    right: 20px;
    background: white;
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

.fav-item-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-left: -10px; /* Overlap effect */
}