/* ===========================================
   MyEncore Supplier Directory Styles
   =========================================== */

:root {
    --color-primary: #1a73e8;
    --color-dark: #0d47a1;
    --color-darkest: #1a237e;
    --color-cta: #ff6f00;
    --color-cta-hover: #e65100;
    --color-bg: #f8f9fa;
    --color-text: #212529;
    --color-muted: #6c757d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-dark) 50%, var(--color-primary) 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero .lead {
    opacity: 0.85;
    font-size: 1.1rem;
}

.hero-search {
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.hero-search .form-control {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 2rem;
    background: var(--color-cta);
    border-color: var(--color-cta);
    font-weight: 600;
}

.hero-search .btn:hover {
    background: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
}

/* ---- Trust Badge ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ---- Cards ---- */
.supplier-card {
    background: white;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

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

.supplier-card .card-body {
    padding: 1.25rem;
}

/* ---- Category Cards ---- */
.category-card {
    background: white;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--color-text);
    display: block;
    padding: 1.5rem 1rem;
    text-align: center;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    color: var(--color-primary);
}

.category-card .category-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.category-card .category-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-card .category-count {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ---- Logo Placeholder ---- */
.logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.logo-placeholder-lg {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    border-radius: var(--radius);
}

/* ---- Badges ---- */
.badge-category {
    background: #e3f2fd;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    text-decoration: none;
}

.badge-category:hover {
    background: #bbdefb;
    color: var(--color-darkest);
}

.badge-province {
    background: #f3e5f5;
    color: #6a1b9a;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-verified {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* ---- CTA Buttons ---- */
.btn-cta {
    background: var(--color-cta);
    border-color: var(--color-cta);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

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

/* ---- Section Titles ---- */
.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ---- Audience Path Cards ---- */
.audience-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.audience-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.audience-card .icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ---- Contact Bar ---- */
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-bar .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.2s;
}

.contact-bar .contact-item:hover {
    background: #e3f2fd;
    color: var(--color-primary);
}

/* ---- Province Page ---- */
.province-hero {
    background: linear-gradient(135deg, var(--color-darkest) 0%, var(--color-dark) 100%);
    color: white;
    padding: 2rem 0;
}

/* ---- Filter Bar ---- */
.filter-bar {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* ---- Claim Page ---- */
.claim-hero {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 3rem 0;
}

/* ---- Search highlight ---- */
mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

/* ---- Article Content ---- */
.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-darkest);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--color-darkest);
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: #f0f4f8;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero .lead {
        font-size: 0.95rem;
    }

    .category-card {
        padding: 1rem 0.75rem;
    }

    .category-card .category-icon {
        font-size: 1.5rem;
    }

    .logo-placeholder-lg {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .contact-bar {
        flex-direction: column;
    }
}

/* ---- Print ---- */
@media print {
    .navbar, footer, .hero-search, .filter-bar {
        display: none !important;
    }
}
