﻿/* =============================================================================
   Search Results — front-search.css
   Prefix: sr-
   ============================================================================= */

/* -------------------------------------------------------------------------- */
/* Hero                                                                         */
/* -------------------------------------------------------------------------- */
.sr-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e2a4a 50%, #0f172a 100%);
    padding: 72px 24px 80px;
    overflow: hidden;
    text-align: center;
}

/* Dot-grid overlay */
.sr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* Gold glow orbs */
.sr-hero::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.14) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.sr-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

/* Breadcrumb */
.sr-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 22px;
    letter-spacing: .03em;
}
.sr-breadcrumb a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .2s;
}
.sr-breadcrumb a:hover { color: var(--primary); }
.sr-breadcrumb .bi { font-size: .68rem; }

/* Badge */
.sr-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212,175,55,.15);
    border: 1px solid rgba(212,175,55,.3);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

/* Title */
.sr-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 14px;
    letter-spacing: -.01em;
}
.sr-hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--primary), #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub-description */
.sr-hero__desc {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Search form */
.sr-search-wrap { position: relative; max-width: 620px; margin: 0 auto; }

.sr-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
    overflow: hidden;
    padding: 4px 4px 4px 20px;
    gap: 0;
}

.sr-search-icon {
    color: #6b7280;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sr-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: .98rem;
    color: var(--primary-surface);
    background: transparent;
    padding: 10px 12px;
    min-width: 0;
}
.sr-search-input::placeholder { color: #9ca3af; }

.sr-search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    padding: 10px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.sr-search-btn:hover { opacity: .9; transform: scale(1.02); }

/* Wave */
.sr-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.sr-hero__wave svg {
    width: 100%;
    height: 56px;
    display: block;
}

/* -------------------------------------------------------------------------- */
/* Hero — landing state modifier                                                */
/* -------------------------------------------------------------------------- */
.sr-hero--landing {
    padding: 80px 24px 96px;
}
.sr-hero--landing .sr-hero__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

/* Quick-access chips below search form */
.sr-hero__chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.sr-hero__chips-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
}
.sr-hero__chip {
    display: inline-block;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50px;
    color: rgba(255,255,255,.7);
    font-size: .78rem;
    font-weight: 500;
    padding: 5px 14px;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.sr-hero__chip:hover {
    background: rgba(212,175,55,.15);
    border-color: rgba(212,175,55,.35);
    color: var(--primary);
}

/* -------------------------------------------------------------------------- */
/* Landing discovery grid                                                        */
/* -------------------------------------------------------------------------- */
.sr-landing {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 8px;
}

/* Stats bar */
.sr-landing__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border: 1.5px solid #e8ecf2;
    border-radius: 14px;
    padding: 20px 32px;
}
.sr-landing__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 32px;
}
.sr-landing__stat strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-surface);
    line-height: 1;
}
.sr-landing__stat span {
    font-size: .75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sr-landing__stat-sep {
    width: 1px;
    height: 36px;
    background: #e8ecf2;
    flex-shrink: 0;
}

/* Section header */
.sr-landing__section { display: flex; flex-direction: column; gap: 16px; }
.sr-landing__section-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sr-landing__section-hd h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-surface);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sr-landing__section-hd h2 i { color: var(--primary); font-size: .95rem; }

.sr-landing__see-all {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: opacity .2s;
}
.sr-landing__see-all:hover { opacity: .75; }

/* Practice area cards */
.sr-landing__topics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.sr-landing__topic-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #e8ecf2;
    border-radius: 10px;
    padding: 13px 16px;
    text-decoration: none;
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.sr-landing__topic-card:hover {
    border-color: var(--primary);
    color: var(--primary-surface);
    box-shadow: 0 2px 10px rgba(212,175,55,.1);
}
.sr-landing__topic-icon {
    color: var(--primary);
    font-size: .82rem;
    flex-shrink: 0;
}
.sr-landing__topic-card span { flex: 1; }
.sr-landing__topic-arrow {
    color: #d1d5db;
    font-size: .72rem;
    flex-shrink: 0;
    transition: color .2s, transform .2s;
}
.sr-landing__topic-card:hover .sr-landing__topic-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Popular search tags */
.sr-landing__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sr-landing__tag {
    display: inline-block;
    background: #fff;
    border: 1.5px solid #e8ecf2;
    border-radius: 50px;
    color: #374151;
    font-size: .85rem;
    font-weight: 500;
    padding: 7px 16px;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.sr-landing__tag:hover {
    background: #fffbeb;
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* State cards */
.sr-landing__states {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.sr-landing__state {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e8ecf2;
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}
.sr-landing__state:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(212,175,55,.1);
}
.sr-landing__state-code {
    background: var(--primary-surface);
    color: var(--primary);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    border-radius: 5px;
    padding: 3px 6px;
    flex-shrink: 0;
}
.sr-landing__state-name {
    font-size: .8rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

/* -------------------------------------------------------------------------- */
/* Responsive — landing additions                                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .sr-landing__stats { padding: 16px 20px; gap: 0; }
    .sr-landing__stat { padding: 0 16px; }
    .sr-landing__stat strong { font-size: 1.3rem; }
    .sr-landing__topics { grid-template-columns: 1fr 1fr; }
    .sr-landing__states { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
@media (max-width: 480px) {
    .sr-landing__stats { flex-wrap: wrap; gap: 12px; }
    .sr-landing__stat-sep { display: none; }
    .sr-landing__stat { padding: 0 12px; flex: 1 1 40%; }
    .sr-landing__topics { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------- */
/* Body / Container                                                             */
/* -------------------------------------------------------------------------- */
.sr-body {
    background: #f4f6f9;
    min-height: 400px;
    padding: 48px 24px 80px;
}

.sr-container {
    max-width: 820px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------------- */
/* Empty / No-results state                                                     */
/* -------------------------------------------------------------------------- */
.sr-empty {
    text-align: center;
    padding: 60px 24px;
}

.sr-empty__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #6b7280;
}

.sr-empty__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-surface);
    margin: 0 0 12px;
}

.sr-empty__desc {
    color: #6b7280;
    font-size: .96rem;
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto 28px;
}

.sr-empty__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sr-empty__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary-surface);
    font-size: .88rem;
    font-weight: 500;
    padding: 10px 18px;
    text-decoration: none;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.sr-empty__link:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(212,175,55,.12);
}

/* -------------------------------------------------------------------------- */
/* Results header                                                                */
/* -------------------------------------------------------------------------- */
.sr-results-header {
    margin-bottom: 20px;
}
.sr-results-info {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
}
.sr-results-info strong { color: #374151; }
.sr-results-info em { font-style: italic; }

/* -------------------------------------------------------------------------- */
/* Result list                                                                   */
/* -------------------------------------------------------------------------- */
.sr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual result card */
.sr-item {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e8ecf2;
    padding: 22px 24px 20px;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.sr-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* Thumbnail (sol taraf) */
.sr-item__thumb {
    flex-shrink: 0;
    width: 160px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    align-self: stretch;
}
.sr-item__thumb img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.sr-item:hover .sr-item__thumb img {
    transform: scale(1.04);
}

/* İçerik sarmalayıcı */
.sr-item__body {
    flex: 1;
    min-width: 0;
}

/* Green URL breadcrumb */
.sr-item__url {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    font-size: .76rem;
    color: #1a7f54;
    margin-bottom: 5px;
    word-break: break-all;
}
.sr-item__domain { font-weight: 600; }
.sr-item__url-sep { color: #5f9e7a; font-size: .7rem; }
.sr-item__url-seg { color: #1a7f54; }

/* Title */
.sr-item__title {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}
.sr-item__title a {
    color: #1a0dab;
    text-decoration: none;
    transition: color .15s;
}
.sr-item__title a:hover { color: #0a099a; text-decoration: underline; }

/* Highlight marks */
.sr-item__title mark,
.sr-item__snippet mark {
    background: #fff59d;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    font-style: normal;
}

/* Snippet */
.sr-item__snippet {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.65;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta chips row */
.sr-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
}

.sr-item__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .2s;
}
.sr-item__chip:hover { opacity: .8; }

.sr-item__chip--topic {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.sr-item__chip--state {
    background: #f0fdf4;
    color: var(--primary-dark);
    border: 1px solid #dcfce7;
}

.sr-item__date,
.sr-item__read {
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* -------------------------------------------------------------------------- */
/* Pagination                                                                    */
/* -------------------------------------------------------------------------- */
.sr-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}

.sr-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #374151;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.sr-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.sr-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.sr-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    transition: border-color .2s, color .2s, background .2s;
    padding: 0 6px;
}
.sr-page-num:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}
.sr-page-num--active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: #fff;
    cursor: default;
}
.sr-page-num--active:hover { border-color: var(--primary); color: #fff; }

.sr-page-ellipsis {
    color: #9ca3af;
    font-size: .88rem;
    padding: 0 4px;
    user-select: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                    */
/* -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .sr-hero { padding: 52px 16px 68px; }
    .sr-search-form { flex-wrap: wrap; border-radius: 12px; padding: 14px 16px; gap: 10px; }
    .sr-search-btn { width: 100%; justify-content: center; }
    .sr-item { padding: 16px; gap: 14px; }
    .sr-item__thumb { width: 100px; }
    .sr-item__thumb img { min-height: 68px; }
    .sr-pagination { gap: 6px; margin-top: 36px; }
    .sr-page-btn { padding: 9px 12px; }
    .sr-page-num { min-width: 34px; height: 34px; font-size: .82rem; }
}

@media (max-width: 480px) {
    .sr-item { flex-direction: column; }
    .sr-item__thumb { width: 100%; border-radius: 8px; }
    .sr-item__thumb img { height: 180px; min-height: unset; }
}
