/* IHaveAGuy.app — Stylesheet */
:root {
    --primary: #2D8F5E;
    --primary-dark: #236E49;
    --primary-light: #E8F5EE;
    --accent: #E8A838;
    --accent-dark: #C78B20;
    --dark: #1E293B;
    --dark-mid: #334155;
    --text: #1E293B;
    --text-light: #64748B;
    --bg: #F8FAF9;
    --card: #FFFFFF;
    --border: #E2E8F0;
    --danger: #DC3545;
    --success: #2D8F5E;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px 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.10);
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Navbar ─────────────────────────────────── */
.navbar {
    background: var(--dark) !important;
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i { color: var(--accent); font-size: 1.4rem; }
.nav-link { color: rgba(255,255,255,0.8) !important; font-weight: 500; font-size: 0.9rem; }
.nav-link:hover { color: #fff !important; }
.dropdown-menu { border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }

/* ─── Main Content ───────────────────────────── */
.main-content { padding: 1.5rem 0; flex: 1; }

/* ─── Cards ──────────────────────────────────── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--card);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    background: var(--primary-light);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

/* ─── Provider Cards ─────────────────────────── */
.provider-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.provider-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: inherit;
}
.provider-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.provider-info { flex: 1; min-width: 0; }
.provider-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
    color: var(--text);
}
.provider-category {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
}
.provider-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    line-height: 1.4;
}
.provider-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.provider-meta i { color: var(--primary); }
.provider-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}
.favorite-badge {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ─── Share Card (public) ────────────────────── */
.share-card {
    max-width: 480px;
    margin: 2rem auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--card);
}
.share-card-header {
    background: var(--dark);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}
.share-card-header .provider-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.share-card-header h2 { font-weight: 700; margin: 0; font-size: 1.4rem; }
.share-card-header .category { color: var(--accent); font-weight: 500; font-size: 0.9rem; }
.share-card-body { padding: 1.5rem; }
.share-card-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}
.share-card-stat i { color: var(--primary); width: 20px; text-align: center; }
.share-card-footer {
    padding: 1rem 1.5rem;
    background: var(--primary-light);
    text-align: center;
    border-top: 1px solid var(--border);
}
.saved-by-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ─── Buttons ────────────────────────────────── */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}
.btn-primary:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }

/* ─── Forms ──────────────────────────────────── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,143,94,0.15);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--dark-mid); }

/* ─── Page Headers ───────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.page-header h1 {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    color: var(--text);
}

/* ─── Category Pills ─────────────────────────── */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.15s;
}
.category-pill:hover, .category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.category-pill .count {
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.75rem;
}
.category-pill.active .count { background: rgba(255,255,255,0.25); }

/* ─── Empty State ────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; color: var(--border); }
.empty-state h3 { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }

/* ─── Footer ─────────────────────────────────── */
.app-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 1rem 0;
    font-size: 0.85rem;
    margin-top: auto;
}
.app-footer .footer-brand {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    margin-right: 1rem;
}
.app-footer .footer-brand i { color: var(--accent); }

/* ─── Auth Pages ─────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}
.auth-card .brand {
    text-align: center;
    margin-bottom: 1.5rem;
}
.auth-card .brand i { font-size: 2rem; color: var(--accent); }
.auth-card .brand h1 { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 0; color: var(--text); }
.auth-card .brand p { color: var(--text-light); font-size: 0.9rem; }

/* ─── Marketing page ─────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #0F2A1E 100%);
    color: #fff;
    padding: 5rem 1rem;
    text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.15; }
.hero h1 .highlight { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; line-height: 1.5; }
.hero .btn-hero {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.hero .btn-hero:hover { background: var(--accent-dark); color: #fff; }

.features-section { padding: 4rem 1rem; }
.feature-block {
    text-align: center;
    padding: 2rem 1rem;
}
.feature-block .icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.feature-block h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-block p { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }

.how-section {
    background: var(--primary-light);
    padding: 4rem 1rem;
}
.step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.cta-section {
    background: var(--dark);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-section p { opacity: 0.8; font-size: 1.1rem; margin-bottom: 2rem; }

.marketing-nav {
    background: var(--dark);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.marketing-nav .container { display: flex; justify-content: space-between; align-items: center; }
.marketing-nav .brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.marketing-nav .brand i { color: var(--accent); font-size: 1.4rem; }
.marketing-nav .nav-links { display: flex; gap: 0.75rem; }
.marketing-nav .nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.marketing-nav .nav-links .btn-signup {
    background: var(--accent);
    color: #fff;
}
.marketing-nav .nav-links .btn-signup:hover { background: var(--accent-dark); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .provider-card { flex-direction: column; }
    .provider-actions { flex-direction: row; }
    .marketing-nav .nav-links a span { display: none; }
}
