@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --color-primary: #0d6efd;
    --color-primary-dark: #0b5ed7;
    --color-success: #0dcaf0;
    --color-success-dark: #0bb5d6;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-body-bg: #f0f2f5;
    --color-card-bg: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #6c757d;
    --color-border: #e9ecef;
    --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 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-body-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    text-rendering: optimizeLegibility;
}

/* ============ NAVBAR ============ */
.navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: #0dcaf0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
    color: #0a2a2e !important;
}

.navbar .nav-link:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000 !important;
}

.navbar .btn-outline-light {
    color: #0a2a2e;
    border-color: #0a2a2e;
}

.navbar .btn-outline-light:hover {
    background: #0a2a2e;
    color: #fff;
}

.navbar .btn-primary {
    background: #0a2a2e;
    border-color: #0a2a2e;
}

.navbar .btn-primary:hover {
    background: #000;
    border-color: #000;
}

.navbar .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.navbar .btn-danger:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
}

.navbar .text-warning {
    color: #0a2a2e !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

/* ============ BRAND WORDMARK ============ */
/* GuraAmamaza is one name but the two halves carry different colours. Both
   values stay legible on the cyan navbar/footer and on light cards. */
.brand-wordmark {
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.brand-gura {
    color: #0a2a2e;
}

.brand-amamaza {
    color: #006d84;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 575.98px) {
    .navbar-logo {
        height: 32px;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.navbar .btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
}

.navbar-toggler-icon {
    filter: brightness(0) saturate(100%);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #0dcaf0 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.hero .lead {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero {
        padding: 3rem 0;
    }
}

/* ============ CARDS ============ */
.card {
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.card.shadow-sm:hover {
    box-shadow: var(--shadow-md) !important;
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    padding: 1rem 1.5rem;
}

.card-footer {
    border-top: 1px solid var(--color-border);
    background: transparent;
    padding: 1rem 1.5rem;
}

/* ============ PRODUCT CARDS ============ */
.product-card {
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    overflow: hidden;
    background: var(--color-card-bg);
    contain: layout style;
}

.product-img,
.product-preview {
    cursor: zoom-in;
}

.product-description {
    white-space: pre-line;
}

/* ============ IMAGE LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transition: transform 0.15s ease;
    user-select: none;
    cursor: grab;
    transform-origin: center center;
    box-shadow: var(--shadow-lg);
}

.lightbox img.dragging {
    cursor: grabbing;
    transition: none;
}

.lightbox-close,
.lightbox-toolbar button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-toolbar button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1;
}

.lightbox-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.lightbox-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Boosted listings on the public pages (home + search results) */
.product-card.product-boosted {
    border: 2px solid var(--color-warning);
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
}

.product-card.product-boosted:hover {
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
}

.product-boost-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
    background: var(--color-warning);
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.product-img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background: var(--color-card-bg);
    transition: transform 0.4s ease;
    content-visibility: auto;
    aspect-ratio: 1 / 1;
}

.product-preview {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: var(--color-card-bg);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

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

.product-card .card-body h6 {
    font-size: 1rem;
}

.product-card .card-body h5 {
    font-weight: 700;
}

/* ============ BUTTONS ============ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-lg {
    border-radius: var(--radius-md);
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.35);
}



.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover {
    transform: translateY(-1px);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
}

/* ============ FORMS ============ */
.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.form-control-lg {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

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

/* ============ INPUT GROUPS ============ */
.input-group .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-color: var(--color-border);
}

.input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ============ BOOTSTRAP OVERRIDES ============ */
.text-success {
    color: #0dcaf0 !important;
}

.bg-success {
    background-color: #0dcaf0 !important;
}

.btn-success {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #0a2a2e;
}

.btn-success:hover {
    background-color: #0bb5d6;
    border-color: #0bb5d6;
    color: #0a2a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.35);
}

.btn-outline-success {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-success:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #0a2a2e;
}

.border-success {
    border-color: #0dcaf0 !important;
}

/* ============ BADGES ============ */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ============ ALERTS ============ */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    border-left: 4px solid var(--color-danger);
}

.alert-success {
    border-left: 4px solid var(--color-success);
}

.alert-info {
    border-left: 4px solid #0dcaf0;
}

/* ============ TABLES ============ */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
    padding: 0.85rem 1rem;
}

.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(13, 110, 253, 0.02);
}

.table-dark {
    background: #212529;
}

/* ============ FOOTER ============ */
footer {
    font-size: 0.85rem;
    background: #0dcaf0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #0a2a2e !important;
}

footer a,
footer a:visited,
footer .text-white-50 {
    color: #0a2a2e !important;
}

footer a:hover {
    color: #000 !important;
}

/* ============ MESSAGES / TOASTS ============ */
.alert-dismissible .btn-close {
    padding: 1.1rem;
}

/* ============ SECTION SPACING ============ */
section {
    position: relative;
}

/* ============ UTILITY OVERRIDES ============ */
a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

a:visited {
    color: #6f42c1;
}

a:visited.btn,
a:visited.btn-primary,
a:visited.btn-success,
a:visited.btn-danger,
a:visited.btn-outline-primary,
a:visited.btn-outline-success,
a:visited.btn-outline-danger,
a:visited.btn-outline-secondary,
a:visited.badge,
a:visited.nav-link,
a:visited.navbar-brand,
a:visited.dropdown-item {
    color: inherit;
}

a:visited.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

a:visited.text-white,
a:visited.text-light {
    color: #fff !important;
}

.card a:not(.btn):visited {
    color: #5a32a3;
}

a:visited:hover {
    color: var(--color-primary-dark);
}

hr {
    opacity: 0.15;
    margin: 1.25rem 0;
}

/* ============ BACKGROUND OVERRIDES ============ */
.bg-light {
    background: #f8f9fa !important;
}

/* ============ DROPDOWNS ============ */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.dropdown-item.active {
    background: var(--color-primary);
}

.dropdown-item:active {
    background: var(--color-primary-dark);
}

/* ============ LIST GROUP HOVER ============ */
.list-group-item {
    transition: var(--transition);
}

.list-group-item:hover {
    background: #f0f7ff;
    transform: translateX(4px);
}

/* ============ FEATURE CARD HOVER ============ */
.about-feature-card,
.section-card {
    transition: var(--transition);
}

.about-feature-card:hover,
.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ============ TABLE ROW HOVER ============ */
.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05) !important;
}

/* ============ CARD HOVER ENHANCED ============ */
.card:not(.product-card):not(.login-card):not(.register-card):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

/* ============ NAV LINK HOVER ENHANCE ============ */
.nav-link:not(.dropdown-toggle)::after {
    transition: var(--transition);
}

.nav-link:not(.btn):hover {
    color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus {
    background: rgba(0, 0, 0, 0.08);
    color: #000 !important;
}

/* ============ IMAGE HOVER ZOOM ============ */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.4s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .navbar form {
        margin: 10px 0;
        flex-wrap: wrap;
    }
    .navbar form .form-control {
        min-width: 160px;
    }
    .navbar .navbar-nav {
        padding-top: 0.5rem;
    }
    .navbar .nav-item {
        margin: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero {
        padding: 2.5rem 0;
    }
    .card-body {
        padding: 1.25rem;
    }
    .product-img {
        height: 180px;
    }
    .stats-card h2 {
        font-size: 1.6rem;
    }
    footer {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    .product-img {
        height: 160px;
    }
    .hero h1 {
        font-size: 1.35rem;
    }
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ============ HOME LISTING FOOTER ============ */
.home-listing-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.home-listing-footer .btn-lg {
    min-width: 15rem;
}

@media (max-width: 575.98px) {
    .home-listing-footer .btn-lg {
        min-width: 0;
        width: 100%;
    }
}

/* ============ USER GUIDE ============ */
.step-badge {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0;
}

#for-buyers,
#for-traders {
    scroll-margin-top: 90px;
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background: rgba(13, 110, 253, 0.06);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--color-border);
}

@media (max-width: 767.98px) {
    #for-buyers,
    #for-traders {
        scroll-margin-top: 80px;
    }

    .accordion-button {
        font-size: 0.95rem;
    }
}

/* ============ SOCIAL SHARE ============ */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.share-bar .share-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: var(--transition);
}

.share-btn i {
    font-size: 1rem;
}

.share-btn:hover,
.share-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: #fff;
    text-decoration: none;
}

.share-btn.share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.share-btn.share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.share-x:hover {
    background: #000;
    border-color: #000;
}

.share-btn.share-telegram:hover {
    background: #229ed9;
    border-color: #229ed9;
}

.share-btn.share-copy:hover,
.share-btn.share-native:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.share-btn.share-copied {
    background: var(--color-success, #198754);
    border-color: var(--color-success, #198754);
    color: #fff;
}

/* Icon-only variant used on product cards. */
.share-bar-compact .share-btn {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 50%;
}

.share-bar-compact .share-label {
    font-size: 0;
    margin-right: 0;
}

.share-bar-compact .share-label i {
    font-size: 0.9rem;
}

}

@keyframes product-highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45); }
    70% { box-shadow: 0 0 0 0.5rem rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.product-highlight {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    animation: product-highlight-pulse 1.8s ease-out 1;
}

