/* ==========================================================================
   SNR SOFT MODERN CLASSIFIEDS COMPLETE THEME STYLES
   ========================================================================== */

/* --- 1. Global Reset & Body Styles --- */
body, html {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

.app-canvas, .section.style2, .section.style3 {
    background: #f8fafc !important;
    padding: 25px 0 40px !important;
    margin-top: 0px !important;
}

/* --- 2. Header & Top Navigation Bar --- */
.doc-header.style4 {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    padding: 10px 0 !important;
}

.doc-header .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
}

.app-logo {
    display: flex !important;
    align-items: center !important;
}

.headerRight {
    display: flex !important;
    align-items: center !important;
}

.header-action-container {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

/* --- 3. Modern Search Widget --- */
.search-filters-header {
    display: inline-block !important;
}

.search-widget-modern {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 25px !important;
    padding: 4px 6px 4px 18px !important;
    width: 320px !important;
    transition: all 0.3s ease !important;
}

.search-widget-modern:focus-within {
    background: #ffffff !important;
    border-color: #00b4db !important;
    box-shadow: 0 0 15px rgba(0, 180, 219, 0.2) !important;
    width: 360px !important;
}

.search-widget-modern input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 13px !important;
    color: #1e293b !important;
    padding: 6px 0 !important;
}

.search-widget-modern input::placeholder {
    color: #94a3b8 !important;
}

.search-widget-modern button {
    background: #00b4db !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.search-widget-modern button:hover {
    background: #0083b0 !important;
    transform: scale(1.06) !important;
}

/* --- 4. Header Action Buttons --- */
.header-buttons-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.header-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
}

/* Primary CTA: İlan Ver */
.btn-post-ad {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 180, 219, 0.3) !important;
    font-weight: 700 !important;
}

.btn-post-ad:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 180, 219, 0.45) !important;
}

/* Secondary: Üye Ol */
.btn-register {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1.5px solid #bbf7d0 !important;
}

.btn-register:hover {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
    transform: translateY(-2px) !important;
}

/* Ghost / Outline: Giriş Yap */
.btn-login {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #e2e8f0 !important;
}

.btn-login:hover {
    background: #f8fafc !important;
    color: #0284c7 !important;
    border-color: #0284c7 !important;
    transform: translateY(-2px) !important;
}

/* Account Button */
.btn-account {
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1.5px solid #bae6fd !important;
    position: relative !important;
}

.btn-account:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    transform: translateY(-2px) !important;
}

.btn-logout {
    background: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1.5px solid #fecdd3 !important;
    padding: 8px 12px !important;
}

.btn-logout:hover {
    background: #ffe4e6 !important;
    color: #be123c !important;
}

/* Hamburger Trigger */
.btn-menu-trigger {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 8px 12px !important;
}

.btn-menu-trigger:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.msg-badge {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    margin-left: 4px !important;
}

/* --- 5. Modern Hero Slider --- */
.slick-margin-fix {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 25px !important;
}

.slick-slide img {
    border-radius: 16px !important;
    max-height: 420px !important;
    height: 420px !important;
    width: 100% !important;
    object-fit: cover !important;
}

/* --- 6. Modern Category Grid --- */
.cat-boxes {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px !important;
    margin-top: 25px !important;
}

.cat-box {
    border-radius: 14px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    background: #ffffff !important;
    padding: 14px 10px !important;
    min-width: 135px !important;
    text-decoration: none !important;
}

.cat-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0, 180, 219, 0.15) !important;
    border-color: #00b4db !important;
}

.cat-box .inner .bg1 {
    border-radius: 50% !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 62px !important;
    height: 62px !important;
    margin: 0 auto 10px !important;
}

.cat-box:hover .inner .bg1 {
    transform: scale(1.1) !important;
}

.cat-box span {
    font-weight: 600 !important;
    color: #334155 !important;
    font-size: 13px !important;
}

/* --- 7. MODERN LISTING CARDS ARCHITECTURE --- */
.modern-card-grid {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.modern-card-grid [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.modern-item-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 24px !important;
    position: relative !important;
}

.modern-item-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 18px 36px rgba(0, 180, 219, 0.14) !important;
    border-color: #00b4db !important;
}

.modern-item-card.showcase-card {
    border: 1.5px solid #fde68a !important;
}

.modern-item-card.showcase-card:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.18) !important;
}

/* Card Thumbnail Area */
.card-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    height: 195px !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
}

.card-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.modern-item-card:hover .card-thumb-img {
    transform: scale(1.06) !important;
}

/* Category Badge */
.card-badge-category {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* GeT & Vitrin Badges */
.card-badge-get {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #16a34a !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4) !important;
}

.card-badge-featured {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #f59e0b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    z-index: 2 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

/* Card Body Content */
.card-body-wrap {
    padding: 16px 18px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

.card-price-tag {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0284c7 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px !important;
}

.card-title-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: 40px !important;
    margin: 0 0 14px 0 !important;
    overflow: hidden !important;
}

.card-title-text a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.card-title-text a:hover {
    color: #00b4db !important;
}

.card-meta-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 10px !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.card-meta-footer i {
    margin-right: 4px !important;
    color: #94a3b8 !important;
}

/* --- 8. Modern Load More Button --- */
.modern-load-more-btn {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 12px 36px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

.modern-load-more-btn:hover {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%) !important;
    color: #ffffff !important;
    border-color: #00b4db !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 180, 219, 0.35) !important;
}

.modern-load-more-btn i {
    margin-right: 6px !important;
}

/* --- 9. Responsive Adjustments --- */
@media (max-width: 991px) {
    .search-widget-modern, .search-widget-modern:focus-within {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .headerRight, .header-action-container {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .card-thumb-wrap {
        height: 175px !important;
    }
}
