﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Floating Add Ad button */
.fab-post-ad {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080; /* above nav & cards */
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

/* Optional: tweak sticky header shadow after scroll (JS later) */
/* .sticky-top { box-shadow: 0 2px 8px rgba(0,0,0,.06); } */


:root {
    --header-offset: 1px;
}
/* fallback; JS will set this precisely */

.filter-bar {
    position: sticky;
    top: var(--header-offset);
    z-index: 1040;
    max-width: 1400px;
    margin: 0 auto;
    transition: box-shadow .2s ease;
}

    .filter-bar.is-stuck {
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

@media (max-width: 576px) {
    :root {
        --header-offset: 56px;
    }

    .filter-bar {
        max-width: 100%;
    }
}

.ad-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 20; /* <- ensures it sits above the image/ratio */
    padding: .25rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: .25rem;
}

.badge-premium {
    background: #f7d774;
    color: #2b2b2b;
}

.badge-promoted {
    background: #0d6efd;
    color: #fff;
    top: .5rem;
    left: .5rem;
    z-index: 20; /* <- ensures it sits above the image/ratio */
    padding: .25rem .5rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: .25rem;
}
/* COLOR + SPACING */
.af-footer {
    background: #08264a; /* potrivit cu headerul */
    color: #ffffff;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* GRID ULTRA SIMPLU ȘI SIMETRIC */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Banner mai mare în footer */
.af-footer-banner img {
    max-height: 60px; /* mai mare decât înainte */
    width: auto !important;
    object-fit: contain !important;
}

/* Linkuri */
.af-footer-link {
    color: #dfe8ff;
    text-decoration: none;
    font-weight: 500;
}

    .af-footer-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* Eliminare spațiu alb sub footer */
body, html {
    padding: 0 !important;
    margin: 0 !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.af-footer {
    flex-shrink: 0;
}
