/* HatkeOffers - Main Stylesheet
   Premium startup look · Bootstrap 5.3 · Mobile First */

:root {
    --ho-primary: #ff4d4f;
    --ho-primary-dark: #e63946;
    --ho-primary-light: #ffe5e7;
    --ho-secondary: #1f2a44;
    --ho-accent: #16c79a;
    --ho-accent-dark: #0fa680;
    --ho-success: #2bb673;
    --ho-warning: #f59e0b;
    --ho-error: #dc2626;
    --ho-bg: #f7f8fc;
    --ho-surface: #ffffff;
    --ho-text: #1a1d29;
    --ho-muted: #6b7280;
    --ho-border: #e5e7eb;
    --ho-radius: 14px;
    --ho-radius-sm: 10px;
    --ho-shadow: 0 4px 24px rgba(20, 30, 60, .06);
    --ho-shadow-lg: 0 12px 40px rgba(20, 30, 60, .10);
    --ho-gradient: linear-gradient(135deg, #ff4d4f 0%, #ff7a45 100%);
    --ho-gradient-2: linear-gradient(135deg, #1f2a44 0%, #2d3a5f 100%);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--ho-bg);
    color: var(--ho-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ho-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ho-primary-dark); }

.btn-primary {
    background: var(--ho-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.4rem;
    border-radius: var(--ho-radius-sm);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 77, 79, .3); color: #fff; }
.btn-outline-primary { color: var(--ho-primary); border-color: var(--ho-primary); }
.btn-outline-primary:hover { background: var(--ho-primary); color: #fff; border-color: var(--ho-primary); }
.btn-accent { background: var(--ho-accent); color: #fff; }
.btn-accent:hover { background: var(--ho-accent-dark); color: #fff; }

.form-control, .form-select {
    border-radius: var(--ho-radius-sm);
    border-color: var(--ho-border);
    padding: .65rem .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ho-primary);
    box-shadow: 0 0 0 .2rem rgba(255, 77, 79, .15);
}

.text-primary { color: var(--ho-primary) !important; }
.bg-primary { background: var(--ho-primary) !important; }
.bg-dark { background: var(--ho-secondary) !important; }

/* === Header === */
.site-header { background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); }
.navbar { padding: .75rem 0; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--ho-gradient); color: #fff; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 77, 79, .3);
}
.brand-text { font-weight: 800; font-size: 1.3rem; color: var(--ho-secondary); letter-spacing: -.02em; }
.brand-text span { color: var(--ho-primary); }
.search-nav { min-width: 320px; }
.search-nav .input-group { border-radius: 50px; overflow: hidden; border: 1px solid var(--ho-border); background: var(--ho-bg); }
.search-nav .input-group-text { border: none; background: var(--ho-bg); }
.search-nav .form-control { border: none; background: var(--ho-bg); box-shadow: none; }
.search-nav .btn { border-radius: 50px; padding-left: 1.2rem; padding-right: 1.2rem; }
.avatar-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--ho-gradient); color: #fff; font-weight: 700; font-size: .85rem;
}

/* === Hero === */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at 20% 20%, rgba(255, 122, 69, .15), transparent 50%),
                radial-gradient(circle at 80% 0%, rgba(22, 199, 154, .12), transparent 50%),
                var(--ho-bg);
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--ho-secondary);
}
.hero h1 .accent { background: var(--ho-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--ho-muted); max-width: 600px; }
.hero-search {
    background: #fff; border-radius: var(--ho-radius);
    box-shadow: var(--ho-shadow-lg); padding: 1rem;
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.hero-search .form-control, .hero-search .form-select { border: 1px solid var(--ho-border); }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--ho-secondary); }
.hero-stat .label { color: var(--ho-muted); font-size: .9rem; }
.hero-illustration {
    background: var(--ho-gradient-2); border-radius: 24px; padding: 2rem;
    color: #fff; position: relative; overflow: hidden;
    min-height: 320px; display: flex; flex-direction: column; justify-content: center;
}
.hero-illustration::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.hero-illustration .offer-card {
    background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
    border-radius: 14px; padding: 1.2rem; margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, .15);
}

/* === Section === */
.section { padding: 4rem 0; }
.section-title {
    font-size: 1.8rem; font-weight: 800; color: var(--ho-secondary);
    letter-spacing: -.02em; margin-bottom: .5rem;
}
.section-subtitle { color: var(--ho-muted); margin-bottom: 2.5rem; }

/* === Cards === */
.card-ho {
    background: var(--ho-surface); border-radius: var(--ho-radius);
    box-shadow: var(--ho-shadow); border: 1px solid var(--ho-border);
    overflow: hidden; transition: transform .25s, box-shadow .25s;
    height: 100%;
}
.card-ho:hover { transform: translateY(-4px); box-shadow: var(--ho-shadow-lg); }
.card-ho .card-img-top { aspect-ratio: 16/10; object-fit: cover; background: var(--ho-bg); }
.card-ho .card-body { padding: 1.2rem; }
.card-ho .card-title { font-weight: 700; color: var(--ho-secondary); }
.card-ho .card-text { color: var(--ho-muted); font-size: .9rem; }
.badge-discount {
    position: absolute; top: 12px; left: 12px;
    background: var(--ho-gradient); color: #fff; font-weight: 700;
    padding: .35rem .7rem; border-radius: 8px; font-size: .8rem;
    box-shadow: 0 4px 12px rgba(255, 77, 79, .35);
}
.badge-featured {
    position: absolute; top: 12px; right: 12px;
    background: var(--ho-accent); color: #fff; font-weight: 700;
    padding: .3rem .6rem; border-radius: 8px; font-size: .75rem;
}
.badge-category {
    background: var(--ho-primary-light); color: var(--ho-primary-dark);
    padding: .25rem .65rem; border-radius: 50px; font-size: .75rem; font-weight: 600;
}

/* Category card */
.cat-card {
    background: var(--ho-surface); border-radius: var(--ho-radius);
    padding: 1.5rem 1rem; text-align: center;
    box-shadow: var(--ho-shadow); transition: transform .2s;
    display: block; color: var(--ho-text);
}
.cat-card:hover { transform: translateY(-3px); color: var(--ho-text); }
.cat-card .cat-icon {
    width: 60px; height: 60px; margin: 0 auto .8rem;
    border-radius: 18px; background: var(--ho-primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--ho-primary);
}
.cat-card .cat-name { font-weight: 700; color: var(--ho-secondary); }
.cat-card .cat-count { color: var(--ho-muted); font-size: .8rem; }

/* Star rating */
.star-rating { color: #f59e0b; display: inline-flex; gap: 2px; }
.star-rating .bi-star, .star-rating .bi-star-fill { font-size: 1rem; }
.star-rating .interactive { cursor: pointer; opacity: .5; transition: opacity .15s; }
.star-rating .interactive:hover, .star-rating .interactive.active { opacity: 1; }

/* Business card */
.biz-card { display: flex; flex-direction: column; }
.biz-card .biz-logo {
    width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
    background: var(--ho-bg); border: 1px solid var(--ho-border);
}
.biz-card .biz-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.biz-card .biz-meta span { color: var(--ho-muted); font-size: .8rem; }
.biz-card .biz-actions { display: flex; gap: .4rem; margin-top: .8rem; }

/* Offer card */
.offer-card { position: relative; }
.offer-card .offer-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; font-size: .8rem; color: var(--ho-muted); }
.offer-card .coupon-code {
    background: var(--ho-primary-light); color: var(--ho-primary-dark);
    padding: .25rem .6rem; border-radius: 6px; font-family: monospace; font-weight: 700;
    border: 1px dashed var(--ho-primary);
}

/* === Footer === */
.site-footer { background: var(--ho-secondary); color: #fff; }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: .8rem; }
.social-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .1); display: inline-flex;
    align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
    transition: background .2s;
}
.social-links a:hover { background: var(--ho-primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.2rem 0; }

/* Floating CTA */
.floating-cta {
    position: fixed; bottom: 24px; right: 24px; z-index: 1050;
    background: var(--ho-gradient); color: #fff;
    padding: .9rem 1.4rem; border-radius: 50px;
    font-weight: 600; display: inline-flex; align-items: center; gap: .5rem;
    box-shadow: 0 12px 30px rgba(255, 77, 79, .4);
    transition: transform .2s;
}
.floating-cta:hover { transform: scale(1.05); color: #fff; }
.floating-cta i { font-size: 1.2rem; }

/* Buttons */
.btn-like, .btn-fav {
    border: none; background: transparent; font-size: 1.2rem; color: var(--ho-muted);
    transition: color .2s, transform .2s; cursor: pointer;
}
.btn-like:hover, .btn-like.active { color: var(--ho-primary); }
.btn-fav:hover, .btn-fav.active { color: var(--ho-warning); }
.btn-like.active i { animation: pop .3s; }
@keyframes pop { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* Detail page */
.detail-hero {
    background: var(--ho-gradient-2); color: #fff; padding: 3rem 0 2rem;
}
.detail-hero h1 { font-weight: 800; }
.detail-hero .meta { color: rgba(255, 255, 255, .8); }

.gallery-thumb { cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.05); }

.info-box {
    background: var(--ho-surface); border-radius: var(--ho-radius);
    padding: 1.5rem; box-shadow: var(--ho-shadow); margin-bottom: 1.5rem;
}
.info-box h5 { font-weight: 700; color: var(--ho-secondary); margin-bottom: 1rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .5rem 0; border-bottom: 1px solid var(--ho-border); display: flex; gap: .8rem; align-items: start; }
.info-list li:last-child { border-bottom: none; }
.info-list i { color: var(--ho-primary); margin-top: .15rem; }
.info-list .label { color: var(--ho-muted); font-size: .85rem; }
.info-list .value { font-weight: 500; }

/* Reviews */
.review-item { padding: 1.2rem 0; border-bottom: 1px solid var(--ho-border); }
.review-item:last-child { border-bottom: none; }
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ho-gradient); color: #fff; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Forms */
.form-card {
    background: var(--ho-surface); border-radius: var(--ho-radius);
    box-shadow: var(--ho-shadow); padding: 2rem; max-width: 520px; margin: 0 auto;
}
.form-card h2 { font-weight: 800; color: var(--ho-secondary); }
.auth-wrap { min-height: 80vh; display: flex; align-items: center; padding: 2rem 0; }

/* Stats */
.stat-card {
    background: var(--ho-surface); border-radius: var(--ho-radius);
    padding: 1.5rem; box-shadow: var(--ho-shadow); text-align: center;
}
.stat-card .stat-icon {
    width: 50px; height: 50px; border-radius: 14px; margin: 0 auto .8rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-card .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--ho-secondary); }
.stat-card .stat-label { color: var(--ho-muted); font-size: .85rem; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ho-muted); }
.empty-state i { font-size: 3.5rem; opacity: .4; margin-bottom: 1rem; }

/* Breadcrumb */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; }
.breadcrumb-item a { color: var(--ho-muted); }

/* Mobile */
@media (max-width: 768px) {
    .hero { padding: 3rem 0 2rem; }
    .search-nav { min-width: 100%; margin: 1rem 0; }
    .floating-cta span { display: none; }
    .floating-cta { padding: .9rem; border-radius: 50%; }
    .section { padding: 2.5rem 0; }
    .hero-stats { gap: 1.2rem; }
    .hero-stat .num { font-size: 1.5rem; }
}

/* Utility */
.text-muted { color: var(--ho-muted) !important; }
.shadow-soft { box-shadow: var(--ho-shadow); }
.rounded-xl { border-radius: var(--ho-radius); }
.fw-800 { font-weight: 800; }
.divider { height: 1px; background: var(--ho-border); margin: 1.5rem 0; }
.listing-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.no-underline { text-decoration: none !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
