:root {
    --primary: #2563eb;
    --bg-light: #f8fafc;
}

body {
    background: var(--bg-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
}
.hero-section .text-muted { color: rgba(255,255,255,.7) !important; }
.hero-section .form-control {
    border-left: none;
}

/* Tool cards */
.tool-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform .15s, box-shadow .15s;
    color: inherit;
    background: #fff;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,99,235,.12);
    border-color: #bfdbfe;
    color: inherit;
}

.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;
}

/* Filter sidebar */
.filter-list {
    max-height: 200px;
    overflow-y: auto;
}
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Tool icon */
.tool-icon-lg { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.tool-icon-sm { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }

/* Admin */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #1e293b;
}
.admin-sidebar .nav-link {
    color: #94a3b8;
    border-radius: 8px;
    padding: .6rem 1rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.admin-sidebar .nav-link i { width: 20px; }

.min-w-0 { min-width: 0; }

/* Tool logo */
.tool-logo-wrap {
    width: 48px; height: 48px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tool-logo-wrap img {
    width: 40px; height: 40px;
    object-fit: contain;
}
.tool-logo-wrap .letter-av {
    display: none;
    width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}
.tool-logo-wrap.lg {
    width: 72px; height: 72px;
    border-radius: 14px;
}
.tool-logo-wrap.lg img { width: 56px; height: 56px; }
.tool-logo-wrap.lg .letter-av { font-size: 1.8rem; }

/* Tool description */
.tool-description { line-height: 1.8; color: #374151; }
.tool-description .separator { clear: both; text-align: center !important; margin: 1rem 0; }
.tool-description img { max-width: 100%; height: auto; border-radius: 8px; }
.tool-description a { color: var(--primary); }
.tool-description p { margin-bottom: .8rem; }
.tool-description div[style*="text-align: center"] { text-align: center; }

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Guide icon banner */
.guide-icon-banner {
    height: 120px;
    font-size: 3rem;
    color: rgba(255,255,255,.9);
}
.guide-icon-banner.c0 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.guide-icon-banner.c1 { background: linear-gradient(135deg, #065f46, #10b981); }
.guide-icon-banner.c2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.guide-icon-banner.c3 { background: linear-gradient(135deg, #b45309, #f59e0b); }
.guide-icon-banner.c4 { background: linear-gradient(135deg, #be123c, #f43f5e); }
.guide-icon-banner.c5 { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.guide-icon-banner.c6 { background: linear-gradient(135deg, #4338ca, #818cf8); }
.guide-icon-banner.c7 { background: linear-gradient(135deg, #166534, #4ade80); }

/* Reviews */
.review-item:last-child { border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
.star-label { cursor: pointer; transition: color .1s; }
.star-rating { flex-direction: row-reverse; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* Category cards */
.cat-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    color: inherit;
    background: #fff;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37,99,235,.13);
    border-color: #bfdbfe;
    color: inherit;
}
.cat-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    color: #2563eb;
}

/* Popular search pills */
.popular-search-pill {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    font-size: .8rem;
    padding: .35em .8em;
    transition: background .15s;
}
.popular-search-pill:hover {
    background: rgba(255,255,255,.28);
    color: #fff;
}

/* Search autocomplete */
#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,.1);
    max-height: 320px;
    overflow-y: auto;
}
#searchResults a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    text-decoration: none;
    color: #1e293b;
    font-size: .9rem;
    border-bottom: 1px solid #f1f5f9;
}
#searchResults a:hover { background: #f8fafc; }
#searchResults a:last-child { border-bottom: none; }
.search-wrapper { position: relative; }


/* Tag badges */
.tag-badge {
    font-size: .72rem;
    font-weight: 500;
    padding: .25em .55em;
    border-radius: 6px;
    letter-spacing: 0;
    opacity: .9;
    transition: opacity .15s;
}
.tag-badge:hover { opacity: 1; text-decoration: none; }
.tag-sm {
    font-size: .67rem;
    padding: .2em .45em;
}
[data-tag-url] { cursor: pointer; }

/* Tool screenshot/preview image */
.tool-screenshot-img {
    display: block;
    max-height: 420px;
    object-fit: cover;
    object-position: top center;
    transition: opacity .2s;
}
.tool-screenshot-card:hover .tool-screenshot-img { opacity: .92; }

/* ── Etiket Keşif Sayfası ──────────────────────────────────────────── */
.tag-explorer-hero {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 50%, #f8f0ff 100%);
    border-bottom: 1px solid #e8eaf0;
}

/* Mini tag cloud (hero sağ kolon) */
.tag-cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    opacity: .85;
    transition: opacity .15s, transform .15s;
}
.tag-cloud-badge:hover { opacity: 1; transform: scale(1.06); }

/* Grup başlık */
.tag-group-header { border-bottom-width: 2px !important; }

/* Etiket kartı */
.tag-exp-card {
    border-radius: 12px !important;
    transition: transform .18s, box-shadow .18s;
    overflow: hidden;
}
.tag-exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10) !important;
}

/* Kart içi ikon kutusu */
.tag-exp-icon { color: inherit; }
.text-dark .tag-exp-icon { color: #000 !important; }

/* Araç logo strip */
.tool-logo-strip { flex-wrap: nowrap; overflow: hidden; }

.tool-mini-wrap { flex-shrink: 0; }

.tool-mini-logo,
.tool-mini-fallback {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
}
.tool-mini-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: #666;
    background: #f1f3f5;
}

.tool-mini-more {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f1f3f5;
    color: #666;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.07);
}

/* Alt renk çubuğu */
.tag-exp-bar { opacity: .6; }
.tag-exp-card:hover .tag-exp-bar { opacity: 1; }
