/* ============================================
   CHEF.TC - YEMEK SOSYAL MEDYA PLATFORMU
   Mobile-First Responsive CSS
   ============================================ */

/* CSS Variables - Temalar */
:root {
    /* Primary Colors */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8C61;
    
    /* Secondary Colors */
    --secondary: #2D3436;
    --secondary-light: #636E72;
    
    /* Accent Colors */
    --accent: #00B894;
    --accent-light: #55EFC4;
    
    /* Like Red */
    --like-red: #E74C3C;
    
    /* Light Theme (Default) */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5F5F5;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Dark Theme */
.dark-theme {
    --bg-primary: #1A1A2E;
    --bg-secondary: #16213E;
    --bg-tertiary: #0F3460;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #6C757D;
    --border-color: #2D3748;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.menu-toggle:hover {
    background: var(--bg-tertiary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--like-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 80px 16px 16px;
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.search-modal.active {
    transform: translateY(0);
}

.search-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-container button {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.close-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* ============================================
   MAIN CONTAINER & SIDEBAR
   ============================================ */
.main-container {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 70px;
}

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-content {
    padding: 20px;
}

/* User Profile Card */
.user-profile-card {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.profile-info h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.profile-info .username {
    font-size: 0.85rem;
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Guest Card */
.guest-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.guest-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.guest-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.guest-buttons {
    display: flex;
    gap: 12px;
}

.guest-buttons .btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Admin Section */
.admin-section {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    color: var(--accent) !important;
}

/* Popular Tags */
.popular-tags {
    margin-bottom: 20px;
}

.popular-tags h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Suggested Users */
.suggested-users {
    margin-bottom: 20px;
}

.suggested-users h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

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

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-handle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.follow-btn-small {
    padding: 6px 14px;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.follow-btn-small:hover {
    background: var(--primary);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.theme-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    transition: all 0.2s;
}

.theme-btn.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 16px;
    max-width: 100%;
}

/* Feed Filters */
.feed-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Recipe Cards */
.recipe-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recipe-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.recipe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.recipe-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recipe-menu {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
}

.recipe-menu:hover {
    background: var(--bg-tertiary);
}

.recipe-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.recipe-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.action-left {
    display: flex;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.liked {
    color: var(--like-red);
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

.save-btn {
    color: var(--text-secondary);
}

.save-btn:hover {
    color: var(--primary);
}

.save-btn.saved {
    color: var(--primary);
    fill: var(--primary);
}

.recipe-content {
    padding: 0 16px 16px;
}

.recipe-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.recipe-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   CHAT ROOMS
   ============================================ */
.chat-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-room-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: background 0.2s;
}

.chat-room-item:hover {
    background: var(--bg-tertiary);
}

.room-avatar {
    position: relative;
}

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

.unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-info {
    flex: 1;
    min-width: 0;
}

.room-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.room-last-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-meta {
    text-align: right;
}

.room-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Chat Messages */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 140px);
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-header-info h3 {
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.message.received {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.add-btn {
    position: relative;
    top: -20px;
}

.add-btn-circle {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.close-modal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    border-radius: 8px;
}

.close-modal:hover {
    background: var(--bg-tertiary);
}

/* Forms */
.recipe-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-block {
    width: 100%;
}

/* ============================================
   NOTIFICATIONS PANEL
   ============================================ */
.notifications-panel {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: var(--bg-secondary);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 950;
    box-shadow: var(--shadow);
}

.notifications-panel.active {
    transform: translateX(0);
}

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notifications-header h3 {
    font-size: 1.1rem;
}

.notifications-header button {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.notifications-list {
    padding: 16px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   BUTTONS & UTILITIES
   ============================================ */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-primary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   TABLET & DESKTOP BREAKPOINTS
   ============================================ */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
    
    .main-container {
        padding-top: 0;
    }
    
    .sidebar {
        position: relative;
        transform: none;
        width: 260px;
        top: 0;
        box-shadow: none;
        border-right: 1px solid var(--border-color);
    }
    
    .main-content {
        padding: 24px;
    }
    
    .recipe-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .recipe-card {
        margin-bottom: 0;
    }
    
    .bottom-nav {
        display: none;
    }
    
    .main-container {
        padding-bottom: 0;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .sidebar {
        width: 300px;
    }
    
    .sidebar-content {
        padding: 24px;
    }
    
    .main-content {
        padding: 32px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .recipe-feed {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .chat-container {
        height: calc(100vh - 64px);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .main-content {
        max-width: 900px;
    }
    
    .recipe-feed {
        max-width: 700px;
    }
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.admin-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.admin-nav-item {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-nav-item.active {
    background: var(--primary);
    color: white;
}

.admin-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: var(--bg-tertiary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(0, 184, 148, 0.1);
    color: var(--accent);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.status-badge.banned {
    background: rgba(231, 76, 60, 0.1);
    color: var(--like-red);
}

.admin-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 6px;
}

.admin-btn-edit {
    background: var(--primary);
    color: white;
}

.admin-btn-delete {
    background: var(--like-red);
    color: white;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}