/* ===================================
   CampusConnect - Main Stylesheet
   Modern, Professional Design
   =================================== */

:root {
    /* Colors */
    --primary: #1b4332;
    --primary-light: #2d6a4f;
    --primary-lighter: #52b788;
    --accent: #b7941d;
    --accent-light: #f4d35e;
    --blue: #4361ee;
    --blue-light: #eef2ff;
    --purple: #7209b7;
    --purple-light: #f3e8ff;
    --pink: #ff006e;
    --pink-light: #ffe0ec;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* ===================================
   Layout - App Container
   =================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    padding: 24px 32px;
    flex: 1;
    max-width: 1400px;
    width: 100%;
}

/* ===================================
   Top Bar
   =================================== */

.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-brand {
    display: none;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-family: inherit;
    background: var(--gray-50);
    transition: all 0.2s;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.topbar-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    width: 18px;
    height: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.topbar-icon-btn:hover {
    background: var(--gray-200);
}

.topbar-icon-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--pink);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    transition: all 0.2s;
}

.topbar-user:hover {
    background: var(--gray-200);
}

.topbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.topbar-user-info {
    line-height: 1.2;
}

.topbar-user-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
}

.topbar-user-meta {
    font-size: 11px;
    color: var(--gray-500);
}

/* ===================================
   Brand / Logo
   =================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    padding: 0 12px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    font-family: var(--font-display);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--gray-900);
}

.brand-name span {
    color: var(--primary-light);
}

.brand-tagline {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
}

/* ===================================
   Sidebar Navigation
   =================================== */

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all 0.15s;
    position: relative;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.05));
    color: var(--primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.nav-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.nav-item-label {
    flex: 1;
    line-height: 1.3;
}

.nav-item-desc {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 1px;
}

.nav-item.has-desc {
    align-items: flex-start;
    padding: 8px 12px;
}

.nav-item.has-desc .nav-item-icon {
    margin-top: 2px;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #3651db 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border-color: var(--gray-200);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.25);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 50%, #6d28d9 100%);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow-xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.hero-left {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-btn.secondary {
    background: var(--blue);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.hero-btn.secondary:hover {
    transform: translateY(-2px);
    background: #3651db;
}

.hero-stats {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: grid;
    gap: 14px;
    min-width: 200px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-stat-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-growth {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ===================================
   Category Tiles
   =================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.category-tile {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--gray-100);
    cursor: pointer;
    display: block;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.category-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin: 0 auto 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.category-tile-icon.green { background: #d1fae5; color: var(--primary); }
.category-tile-icon.blue { background: #dbeafe; color: var(--blue); }
.category-tile-icon.pink { background: var(--pink-light); color: var(--pink); }
.category-tile-icon.orange { background: #ffedd5; color: #ea580c; }
.category-tile-icon.purple { background: var(--purple-light); color: var(--purple); }
.category-tile-icon.teal { background: #ccfbf1; color: #0d9488; }
.category-tile-icon.lime { background: #ecfccb; color: #65a30d; }
.category-tile-icon.indigo { background: #e0e7ff; color: #4f46e5; }

.category-tile-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 3px;
}

.category-tile-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===================================
   Section Layout
   =================================== */

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.section-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
}

.section-link:hover {
    text-decoration: underline;
}

/* Two-column layout */
.grid-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* ===================================
   Listing Cards
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.listing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid var(--gray-100);
    position: relative;
    display: block;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.listing-card-image {
    width: 100%;
    height: 160px;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.2s;
    z-index: 2;
    cursor: pointer;
}

.listing-card-fav:hover {
    color: var(--pink);
    transform: scale(1.1);
}

.listing-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.listing-card-body {
    padding: 14px 16px;
}

.listing-card-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.listing-card-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 6px;
}

.listing-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray-500);
}

.listing-card-campus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===================================
   I NEED Sidebar Widget
   =================================== */

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
}

.widget-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
}

.request-list {
    list-style: none;
}

.request-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.request-item:last-child {
    border-bottom: none;
}

.request-icon {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    margin-top: 8px;
    flex-shrink: 0;
}

.request-icon.high { background: var(--pink); }
.request-icon.normal { background: var(--warning); }
.request-icon.new { background: var(--success); }

.request-content {
    flex: 1;
    min-width: 0;
}

.request-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
    margin-bottom: 2px;
    line-height: 1.3;
}

.request-meta {
    font-size: 11px;
    color: var(--gray-500);
}

.request-time {
    font-size: 11px;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 8px;
}

.request-new-tag {
    display: inline-block;
    padding: 1px 6px;
    background: var(--pink-light);
    color: var(--pink);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 4px;
}

/* ===================================
   Opportunities
   =================================== */

.opp-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
    display: block;
    position: relative;
}

.opp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-200);
}

.opp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.opp-type-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.opp-type-tag.internship { background: var(--blue-light); color: var(--blue); }
.opp-type-tag.hackathon { background: var(--purple-light); color: var(--purple); }
.opp-type-tag.part_time { background: #fff3cd; color: #856404; }
.opp-type-tag.workshop { background: #d1fae5; color: var(--primary); }
.opp-type-tag.competition { background: var(--pink-light); color: var(--pink); }

.opp-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.opp-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opp-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.opp-org {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.opp-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.opp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===================================
   Campuses Widget
   =================================== */

.campus-list {
    list-style: none;
}

.campus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.campus-item:last-child {
    border-bottom: none;
}

.campus-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.campus-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.campus-students {
    font-size: 11px;
    color: var(--gray-500);
}

/* ===================================
   Green Campus Banner
   =================================== */

.green-banner {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    border: 1px solid #86efac;
}

.green-banner-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.green-banner-content p {
    color: var(--gray-700);
    font-size: 13px;
    max-width: 500px;
}

.green-banner-illust {
    font-size: 60px;
    line-height: 1;
}

/* ===================================
   Forms
   =================================== */

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 140px;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-option label {
    display: block;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.radio-option input:checked + label {
    border-color: var(--primary-light);
    background: rgba(45, 106, 79, 0.05);
    color: var(--primary);
    font-weight: 600;
}

/* ===================================
   Filter Bar
   =================================== */

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid var(--gray-200);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

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

/* ===================================
   Flash Messages
   =================================== */

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.flash.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.flash.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===================================
   Login Prompt Bar
   =================================== */

.login-prompt {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-prompt a {
    background: white;
    color: var(--primary);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
}

.login-prompt a:hover {
    background: var(--gray-50);
}

/* ===================================
   Mobile Menu Toggle
   =================================== */

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ===================================
   Empty State
   =================================== */

.empty-state {
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px 32px;
    text-align: center;
    border: 1px dashed var(--gray-200);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.empty-state-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===================================
   Page Header
   =================================== */

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -1px;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 15px;
}

/* ===================================
   Post Detail
   =================================== */

.detail-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-100);
}

.detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 20px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 20px;
    color: var(--gray-500);
    font-size: 14px;
}

.detail-description {
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.seller-name {
    font-weight: 600;
    color: var(--gray-900);
}

.seller-campus {
    font-size: 13px;
    color: var(--gray-500);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .grid-two-col {
        grid-template-columns: 1fr;
    }
    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-wrapper {
        margin-left: 0;
    }
    .main-content {
        padding: 16px;
    }
    .topbar {
        padding: 12px 16px;
    }
    .topbar-brand {
        display: flex;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .topbar-user-info {
        display: none;
    }
    .hero {
        padding: 28px 24px;
    }
    .hero-title {
        font-size: 26px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .green-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-title {
        font-size: 24px;
    }
}
