/* ===========================================
   1000Platforms — Production Design System
   Telemedicine Style: Calm Cyan + Health Green
   =========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0891B2;
    --primary-light: #22D3EE;
    --primary-dark: #0E7490;
    --secondary: #059669;
    --secondary-light: #34D399;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --bg: #F0FDFA;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hero: linear-gradient(135deg, #0E7490 0%, #0891B2 40%, #22D3EE 100%);
    --bg-section-alt: #ECFEFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-primary: #FFFFFF;
    --text-link: #0891B2;
    --border: #A5F3FC;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }

/* ---------- HEADER ---------- */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; color: var(--primary); }
.header-search { flex: 1; max-width: 480px; }
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-form input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg);
}
.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-login {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-login:hover { background: var(--primary-dark); color: #fff; }
.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--border);
    padding: 5px 12px 5px 5px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-user-menu:hover { border-color: var(--primary-light); }
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- HERO ---------- */
.hero-section {
    background: var(--bg-hero);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--text-on-primary);
}
.hero-section h1 { font-size: 2.5rem; margin-bottom: 16px; color: #fff; }
.hero-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 30px; }
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.hero-search input {
    width: 100%;
    padding: 16px 24px 16px 50px;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}
.hero-search input:focus { outline: 3px solid var(--primary-light); }
.hero-search .search-icon { left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); position: absolute; }
.hero-search form { position: relative; display: flex; align-items: center; }
.hero-search-btn {
    position: absolute;
    right: 5px; top: 50%; transform: translateY(-50%);
    background: var(--accent);
    color: #fff; border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.hero-search-btn:hover { background: var(--accent-hover); }
.hero-search input { padding-right: 120px; }

/* Header Search Button */
.search-form { position: relative; }
.header-search-btn {
    position: absolute;
    right: 4px; top: 50%; transform: translateY(-50%);
    background: var(--accent);
    color: #fff; border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.header-search-btn:hover { background: var(--accent-hover); }
.search-form input { padding-right: 100px; }

/* ---------- CARDS ---------- */
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.listing-card-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--border-light);
    background: #fff;
}
.listing-card-header { display: flex; gap: 14px; margin-bottom: 12px; }
.listing-card-info h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.listing-card-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.listing-card-info h3 a:hover { color: var(--primary); }
.listing-card-vendor { font-size: 0.8rem; color: var(--text-muted); }
.listing-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.rating-stars { color: var(--accent); font-size: 0.85rem; }
.rating-stars .text-muted { color: var(--text-muted); font-size: 0.8rem; }
.badge-vip {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-category {
    background: var(--bg-section-alt);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ---------- SECTION ---------- */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-title h2 { font-size: 1.6rem; }
.section-alt { background: var(--bg-section-alt); padding: 60px 0; }
.section-default { padding: 60px 0; }

/* ---------- CATEGORY GRID ---------- */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--primary);
}
.category-card .cat-icon { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.category-card h6 { font-size: 0.9rem; margin-bottom: 4px; }
.category-card small { color: var(--text-muted); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    font-size: 0.82rem;
    margin-bottom: 0;
}
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item a:hover { color: var(--primary-dark); text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-secondary); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before {
    content: "\F285" !important;
    font-family: "bootstrap-icons" !important;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    padding-right: 0.5rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--text-primary);
    color: #CBD5E1;
    padding: 50px 0 20px;
}
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-brand { font-size: 1.3rem; font-family: var(--font-heading); margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: #94A3B8; text-decoration: none; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }

/* ---------- BTN VARIANTS ---------- */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section { padding: 50px 0 40px; }
    .header-search { display: none; }
    .section-title h2 { font-size: 1.3rem; }
}
