/* Müşteri yorumları — reviews.php (contact.css ile uyum: padding, gönder, glass) */

.reviews-page {
    padding-top: 80px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--text-color, #0f172a);
    background: var(--bg-color, #f8fafc);
    overflow-x: clip;
    min-width: 0;
}

.reviews-page__wrap {
    padding-bottom: calc(clamp(80px, 12vw, 140px) + env(safe-area-inset-bottom, 0px));
}

.reviews-page .container-apple {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

/* Hero — contact ile aynı glow / gradient başlık */
.reviews-hero {
    position: relative;
    padding: clamp(56px, 10vw, 96px) 0 clamp(32px, 6vw, 56px);
    overflow: hidden;
}

.reviews-hero__glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 85%;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(30, 144, 255, 0.14) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 70% 30%, rgba(255, 184, 0, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

body.dark-theme .reviews-hero__glow {
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(77, 163, 255, 0.12) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 70% 30%, rgba(255, 201, 51, 0.08) 0%, transparent 55%);
}

.reviews-hero__inner {
    position: relative;
    z-index: 1;
}

.reviews-hero__title {
    margin: 0 0 14px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: clamp(2rem, 4.5vw + 0.5rem, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
    background: var(--primary-gradient, linear-gradient(135deg, #1e90ff, #ffb800));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-hero__lead {
    margin: 0;
    max-width: 40rem;
    font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.2rem);
    line-height: 1.6;
    color: var(--home-apple-muted, #64748b);
}

body.dark-theme .reviews-hero__lead {
    color: var(--text-muted, #94a3b8);
}

/* Form bölümü — sabit header altında kaydırma */
#yorum-yaz {
    scroll-margin-top: calc(80px + 16px);
}

.reviews-flash {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: var(--radius-md, 12px);
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    max-width: 100%;
}

.reviews-flash--ok {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.reviews-flash--err {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.reviews-flash--info {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.dark-theme .reviews-flash--info {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.reviews-section {
    margin-top: clamp(32px, 5vw, 48px);
}

.reviews-section:first-of-type {
    margin-top: 0;
}

.reviews-section__title {
    margin: 0 0 18px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: clamp(1.2rem, 2vw + 0.85rem, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color, #0f172a);
}

/* Ana sayfa ile aynı testimonial slider (home.css sınıfları); sayfa içinde fazla boşluk olmasın */
.reviews-page__testimonials.h-testimonials {
    padding: clamp(12px, 2.5vw, 24px) 0 clamp(4px, 1vw, 12px);
    margin-top: clamp(4px, 1vw, 12px);
    background: transparent;
    border-radius: var(--radius-lg, 16px);
}

body.dark-theme .reviews-page__testimonials.h-testimonials {
    background: transparent;
}

.reviews-page__testimonials .h-container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.reviews-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.reviews-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 20px 22px;
    box-shadow: var(--shadow-light, 0 2px 10px rgba(15, 23, 42, 0.04));
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.dark-theme .reviews-card {
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.reviews-card__stars {
    margin-bottom: 10px;
    font-size: 15px;
    letter-spacing: 2px;
    color: #f59e0b;
}

.reviews-star--off {
    opacity: 0.35;
}

.reviews-card__quote {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-color, #1e293b);
}

.reviews-card__meta {
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.reviews-card__name {
    font-weight: 600;
    color: var(--text-color, #0f172a);
}

.reviews-card__date {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.85;
}

.reviews-form-card {
    margin-top: 0;
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: clamp(20px, 4vw, 28px);
    box-shadow: var(--shadow-light, 0 4px 20px rgba(15, 23, 42, 0.06));
}

body.dark-theme .reviews-form-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.reviews-form__row {
    margin-bottom: 18px;
}

.reviews-form__row:last-of-type {
    margin-bottom: 0;
}

.reviews-form__fieldset--rating {
    border: none;
    margin: 0 0 18px;
    padding: 0;
    min-width: 0;
}

.reviews-rating__legend {
    padding: 0;
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 2px;
    color: var(--text-color, #334155);
}

.reviews-rating-stars {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.reviews-rating-stars__item {
    cursor: pointer;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.reviews-rating-stars__item input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.reviews-rating-stars__glyph {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    line-height: 1;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.12s ease;
}

body.dark-theme .reviews-rating-stars__glyph {
    color: #475569;
}

.reviews-rating-stars__item:hover .reviews-rating-stars__glyph {
    transform: scale(1.06);
    color: #fde68a;
}

body.dark-theme .reviews-rating-stars__item:hover .reviews-rating-stars__glyph {
    color: #fcd34d;
}

/* Seçilen puana kadar tüm yıldızlar amber (:has — modern tarayıcılar) */
.reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(1) input:checked) .reviews-rating-stars__item:nth-child(1) .reviews-rating-stars__glyph,
.reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(2) input:checked) .reviews-rating-stars__item:nth-child(-n+2) .reviews-rating-stars__glyph,
.reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(3) input:checked) .reviews-rating-stars__item:nth-child(-n+3) .reviews-rating-stars__glyph,
.reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(4) input:checked) .reviews-rating-stars__item:nth-child(-n+4) .reviews-rating-stars__glyph,
.reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(5) input:checked) .reviews-rating-stars__item:nth-child(-n+5) .reviews-rating-stars__glyph {
    color: #f59e0b;
    transform: none;
}

body.dark-theme .reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(1) input:checked) .reviews-rating-stars__item:nth-child(1) .reviews-rating-stars__glyph,
body.dark-theme .reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(2) input:checked) .reviews-rating-stars__item:nth-child(-n+2) .reviews-rating-stars__glyph,
body.dark-theme .reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(3) input:checked) .reviews-rating-stars__item:nth-child(-n+3) .reviews-rating-stars__glyph,
body.dark-theme .reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(4) input:checked) .reviews-rating-stars__item:nth-child(-n+4) .reviews-rating-stars__glyph,
body.dark-theme .reviews-rating-stars:has(.reviews-rating-stars__item:nth-child(5) input:checked) .reviews-rating-stars__item:nth-child(-n+5) .reviews-rating-stars__glyph {
    color: #fbbf24;
}

.reviews-rating-stars__item:has(input:focus-visible) .reviews-rating-stars__glyph {
    outline: 2px solid var(--primary-color, #1e90ff);
    outline-offset: 3px;
    border-radius: 4px;
}

body.dark-theme .reviews-rating-stars__item:has(input:focus-visible) .reviews-rating-stars__glyph {
    outline-color: #4da3ff;
}

/* :has yoksa yalnızca tıklanan yıldız renklenir (kademeli dolgu olmaz) */
@supports not selector(:has(*)) {
    .reviews-rating-stars__item input:checked ~ .reviews-rating-stars__glyph {
        color: #f59e0b;
    }
}

.reviews-form__row label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 2px;
    color: var(--text-color, #334155);
}

.reviews-form__row input[type="text"],
.reviews-form__row textarea,
.reviews-form__row select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    background: var(--glass-bg, rgba(255, 255, 255, 0.92));
    color: var(--text-color, #0f172a);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark-theme .reviews-form__row input[type="text"],
body.dark-theme .reviews-form__row textarea,
body.dark-theme .reviews-form__row select {
    background: var(--input-bg, rgba(30, 41, 59, 0.6));
}

.reviews-form__row textarea {
    min-height: 140px;
    resize: vertical;
}

.reviews-form__row--body .reviews-form__body-hint {
    margin: -4px 0 10px 2px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--home-apple-muted, #64748b);
}

body.dark-theme .reviews-form__row--body .reviews-form__body-hint {
    color: var(--text-muted, #94a3b8);
}

.reviews-form__textarea-box textarea {
    resize: none;
    min-height: 140px;
    max-height: 220px;
    overflow-y: auto;
    display: block;
}

.reviews-form__char-count {
    margin-top: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--home-apple-muted, #64748b);
    text-align: right;
}

body.dark-theme .reviews-form__char-count {
    color: var(--text-muted, #94a3b8);
}

.reviews-form__row input:focus,
.reviews-form__row textarea:focus,
.reviews-form__row select:focus {
    outline: none;
    border-color: var(--primary-color, #1e90ff);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.18);
}

body.dark-theme .reviews-form__row input:focus,
body.dark-theme .reviews-form__row textarea:focus,
body.dark-theme .reviews-form__row select:focus {
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.2);
}

/* Gönder — contact.css .form-submit-btn + ikon */
.reviews-page .reviews-form__submit.form-submit-btn {
    margin-top: 12px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 480px) {
    .reviews-page .reviews-form__submit.form-submit-btn {
        width: auto;
        min-width: 220px;
    }
}

.reviews-form__submit.form-submit-btn .material-symbols-rounded {
    font-size: 1.25rem;
    line-height: 1;
}

.reviews-empty-box {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed var(--border-color, #cbd5e1);
    border-radius: var(--radius-lg, 14px);
    color: var(--text-muted, #64748b);
    font-size: 15px;
    box-sizing: border-box;
}
