/* ==========================================================================
   PUBLIC PAGES STYLES - Home, Browse, public listings
   ========================================================================== */

/* Hero Banner */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 6rem 2rem;
    color: white;
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Common public elements */
.public-card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

* {
    box-sizing: border-box;
}

body {
    color: var(--text-main);
    background: var(--bg-main);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    padding: 24px 0 28px;
}

.grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: start;
}

.headline {
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    line-height: 1.05;
    margin: 10px 0 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.subline {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    margin: 0 0 24px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

/* Category buttons */
.cats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cat {
    flex: 1 1 160px;
    min-width: 160px;
    border: 1px solid var(--border-main);
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    position: relative;
    user-select: none;
}

.cat:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.cat.active {
    background: var(--primary-color);
    border-color: var(--primary-hover);
    color: var(--text-inverse);
}

.cat.active .title,
.cat.active .hint {
    color: var(--text-inverse);
}

.cat .icon {
    width: 58px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
}

.cat .title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 17px;
    margin-top: 2px;
    color: var(--text-main);
}

.cat .hint {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.8;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: 18px;
    box-shadow: var(--shadow-main);
}

.search-card {
    padding: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

label {
    font-size: 12px;
    font-weight: 900;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input,
.select {
    width: 100%;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    outline: none;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--input-text);
    transition: .15s ease;
}

.input:focus,
.select:focus {
    border-color: var(--primary-color);
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    font-size: 17px;
    transition: all 0.3s ease;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
}

/* Right panel */
.right-card {
    padding: 0;
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-main);
    background: var(--bg-main);
}

.tab {
    flex: 1;
    padding: 14px 16px;
    font-weight: 950;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    background: transparent;
    border: none;
}

.tab.active {
    color: var(--green2);
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), #34d399);
}

.panel {
    padding: 16px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow1);
}

.badgeIcon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--input-bg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.listing-thumb {
    background: var(--bg-main);
    border: 1px solid var(--border-light);
}

.item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.item h4 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.item h4 a:hover {
    color: var(--primary-color);
}

.meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    align-items: center;
}

.item .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 11px;
    display: block;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 980px) {
    .headline {
        font-size: 40px;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .headline {
        font-size: 28px;
        margin-top: 8px;
    }

    .row2 {
        grid-template-columns: 1fr;
    }

    /* Mobilde butonlar yan yana */
    .cats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .cat {
        min-width: 0;
        padding: 12px 10px;
        border-radius: 16px;
    }

    .cat .icon {
        width: 46px;
        height: 40px;
        border-radius: 12px;
    }

    .cat .title {
        font-size: 14px;
        line-height: 1.2;
    }

    .cat .hint {
        display: none;
    }

    .cat.active::after {
        bottom: -7px;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid rgba(47, 143, 107, .35);
    }
}

.crumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.crumbs a {
    color: inherit;
    text-decoration: none;
}

.crumbs a:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: start;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
}

.gallery {
    padding: 12px;
}

.heroImg {
    height: 360px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, .9);
    background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(16, 185, 129, .10));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.heroImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow: auto;
    padding-bottom: 4px;
}

.thumb {
    width: 92px;
    height: 68px;
    border-radius: 14px;
    border: 1px solid var(--border-main);
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    background: var(--input-bg);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content {
    padding: 16px;
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.3px;
    line-height: 1.12;
}

.metaTop {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    align-items: center;
    margin-bottom: 14px;
}

.pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-main);
    background: var(--input-bg);
}

.desc {
    white-space: pre-line;
    color: var(--text);
    font-weight: 650;
    line-height: 1.55;
    margin-top: 10px;
}

.side {
    padding: 16px;
    position: sticky;
    top: 14px;
}

.price {
    font-size: 28px;
    font-weight: 950;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}

.sideRow {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-weight: 850;
    font-size: 13px;
    margin: 10px 0;
}

.sideRow strong {
    color: var(--text);
    font-weight: 950;
}

.cta {
    width: 100%;
    border: none;
    border-radius: var(--radius2);
    padding: 14px 14px;
    background: linear-gradient(180deg, var(--green), var(--green2));
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(47, 143, 107, .20);
    font-size: 16px;
    margin-top: 12px;
}

.cta.secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .side {
        position: relative;
        top: auto;
    }

    .heroImg {
        height: 300px;
    }
}

/* Istersen site.css'e tasi */
.demand-card {
    transition: transform .12s ease, box-shadow .12s ease;
}

.demand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08) !important;
}

html[data-theme="dark"] .demand-card {
    background: var(--card);
    border-color: var(--border);
}

html[data-theme="dark"] .demand-card .text-dark {
    color: var(--text) !important;
}

html[data-theme="dark"] .demand-card .text-muted {
    color: var(--muted) !important;
}

html[data-theme="dark"] .badge.text-bg-light {
    background: var(--chip) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}