/* Gel Mobil - Sikayetvar tarzi arayuz */

:root {
    --primary: #e3001b;
    --primary-dark: #c00017;
    --bg: #ededed;
    --card: #ffffff;
    --text: #2b2b2b;
    --muted: #8a8a8a;
    --muted-2: #b3b3b3;
    --border: #e3e3e3;
    --resolved: #3aaa35;
    --pending: #f5a623;
    --star: #ffb400;
    --link: #2b2b2b;
    --radius: 6px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    --maxw: 880px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
}

/* ============ TOP BAR (sikayetvar tarzi) ============ */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.topbar-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 14px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.topbar-logo .logo-mark {
    width: 34px; height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: 20px; font-weight: 800;
}
.topbar-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f3f3f3;
    border: 1px solid #e3e3e3;
    border-radius: 999px;
    padding: 0 14px;
    height: 40px;
    max-width: 460px;
}
.topbar-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text);
}
.topbar-search .search-icon { color: var(--muted); margin-right: 8px; font-size: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-actions .btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.topbar-actions .btn-solid {
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.topbar-actions .btn-outline:hover { background: #fff0f1; }
.topbar-actions .btn-solid:hover { background: var(--primary-dark); }

/* ============ BRAND HEADER BAND ============ */
.brand-band { background: #fff; border-bottom: 1px solid var(--border); }
.brand-band-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.brand-avatar {
    width: 76px; height: 76px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: grid; place-items: center;
    font-size: 38px; font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}
.brand-info { flex: 1; min-width: 200px; }
.brand-info h1 { font-size: 24px; font-weight: 800; color: var(--text); }
.brand-info .brand-tag { color: var(--muted); font-size: 13px; margin-top: 2px; }
.brand-rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.brand-rating .score { font-size: 18px; font-weight: 800; color: var(--primary); }

.brand-stats {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.brand-stat { text-align: center; min-width: 80px; }
.brand-stat .num { font-size: 22px; font-weight: 800; color: var(--text); }
.brand-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============ STARS ============ */
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.stars .star { color: #d9d9d9; }
.stars .star.full { color: var(--star); }

/* ============ FEED ============ */
.feed-wrap { padding: 18px 0 40px; }
.feed-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    padding: 0 2px;
}
.empty { color: var(--muted); text-align: center; padding: 50px 0; }
.complaint-list { display: flex; flex-direction: column; gap: 14px; }

.complaint-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-inner { padding: 16px 18px; }

.card-head { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: #f0f0f0;
    color: var(--primary);
    font-weight: 700; font-size: 15px;
    display: grid; place-items: center; flex-shrink: 0;
    border: 1px solid var(--border);
}
.card-meta { flex: 1; min-width: 0; }
.customer-name { font-weight: 700; font-size: 14px; color: var(--text); }
.meta-line { display: flex; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.meta-line .dot::before { content: '•'; margin-right: 8px; }

.badge {
    font-size: 11px; font-weight: 700; padding: 5px 11px;
    border-radius: 4px; white-space: nowrap; text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-resolved { background: var(--resolved); color: #fff; }
.badge-pending { background: #fff4e0; color: #c77700; }

.complaint-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 12px 0 8px;
    line-height: 1.35;
}
.complaint-card:hover .complaint-title { color: var(--primary); }
.complaint-body { font-size: 14px; color: #444; white-space: pre-line; }

.card-rating { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.chip {
    font-size: 11px; font-weight: 600; color: #666;
    background: #f3f3f3; border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 999px;
}

.complaint-photo { margin-top: 14px; }
.complaint-photo img {
    max-width: 320px; width: 100%;
    border-radius: 6px; border: 1px solid var(--border);
    display: block;
}

/* ============ GELISME (updates) ============ */
.updates { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.updates-title { font-size: 13px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.update-item { position: relative; padding-left: 18px; margin-bottom: 12px; }
.update-item::before {
    content: ''; position: absolute; left: 0; top: 4px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--primary);
}
.update-item::after {
    content: ''; position: absolute; left: 4px; top: 13px;
    width: 1px; bottom: -12px; background: var(--border);
}
.update-item:last-child::after { display: none; }
.update-date { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.update-text { font-size: 13.5px; color: #444; }

/* ============ BRAND REPLY ============ */
.brand-reply {
    margin-top: 14px; padding: 14px;
    background: #fbfbfb; border: 1px solid var(--border);
    border-left: 3px solid var(--resolved);
    border-radius: 6px;
}
.brand-reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.brand-reply-logo {
    width: 22px; height: 22px; border-radius: 5px;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 700;
    display: grid; place-items: center;
}
.brand-reply-name { font-weight: 700; font-size: 13px; color: var(--text); }
.brand-reply-tag {
    font-size: 10px; font-weight: 700; color: var(--resolved);
    border: 1px solid var(--resolved); border-radius: 3px; padding: 1px 5px;
    text-transform: uppercase;
}
.brand-reply-date { font-size: 12px; color: var(--muted); margin-left: auto; }
.brand-reply p { font-size: 13.5px; color: #555; }

/* ============ ACTION BAR ============ */
.action-bar {
    display: flex; align-items: center; gap: 6px;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    background: #fafafa;
    flex-wrap: wrap;
}
.action {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: #666;
    cursor: pointer; background: transparent; border: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.action:hover { background: #f0f0f0; color: var(--primary); }
.action .ico { font-size: 15px; line-height: 1; }
.action .count { font-weight: 700; }
.action.support:hover .ico { color: var(--primary); }
.action-sep { flex: 1; }
.action.views-stat { color: var(--muted); cursor: default; }
.action.views-stat:hover { background: transparent; color: var(--muted); }

/* ============ COMMENTS ============ */
.comments { border-top: 1px solid var(--border); padding: 14px 18px; background: #fff; display: none; }
.comments.open { display: block; }
.comments-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.comment {
    display: flex; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid #f2f2f2;
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: #f0f0f0; color: var(--primary);
    display: grid; place-items: center; font-weight: 700; font-size: 13px;
    flex-shrink: 0; border: 1px solid var(--border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-author { font-weight: 700; font-size: 13px; }
.owner-tag {
    font-size: 10px; font-weight: 700; color: #fff; background: var(--primary);
    border-radius: 3px; padding: 1px 6px;
}
.comment-date { font-size: 12px; color: var(--muted); }
.comment-text { font-size: 13.5px; color: #444; margin-top: 3px; }
.comment-support {
    margin-top: 5px; font-size: 12px; color: var(--muted);
    display: inline-flex; align-items: center; gap: 5px;
}
.comment-support .ico { color: var(--primary); }

/* ============ FOOTER ============ */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 22px 0; text-align: center; margin-top: 10px; }
.site-footer p { font-size: 12.5px; color: var(--muted); }
.footer-note { margin-top: 4px; }

/* ============ BUTONLAR (topbar) ============ */
.topbar-actions button { font-family: inherit; cursor: pointer; border: none; }
.topbar-actions .btn-solid { line-height: 1.2; }

/* ============ MODAL / POPUP ============ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 14px;
    z-index: 100;
    overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalIn 0.18s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
}
.modal-head h3 { font-size: 18px; font-weight: 800; }
.modal-close {
    background: transparent; border: none; color: #fff;
    font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.modal-close:hover { opacity: 0.8; }
.modal-body { padding: 20px; }
.m-field { margin-bottom: 14px; }
.m-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.m-field input[type=text],
.m-field select,
.m-field textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid #d7d7d7; border-radius: 6px;
    font-size: 14px; font-family: inherit; color: var(--text);
    background: #fff;
}
.m-field input:focus, .m-field select:focus, .m-field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 0, 27, 0.1);
}
.m-field textarea { resize: vertical; min-height: 110px; }
.m-field input[type=file] { font-size: 13px; }
.m-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.btn-solid {
    background: var(--primary); color: #fff;
    padding: 10px 20px; border-radius: 999px;
    font-weight: 700; font-size: 14px; border: none; cursor: pointer;
    font-family: inherit;
}
.btn-solid:hover { background: var(--primary-dark); }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost {
    background: #f1f1f1; color: #555;
    padding: 10px 18px; border-radius: 999px;
    font-weight: 700; font-size: 14px; border: none; cursor: pointer;
    font-family: inherit;
}
.btn-ghost:hover { background: #e6e6e6; }
.modal-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

.form-message { padding: 11px 14px; border-radius: 6px; font-size: 13.5px; margin-bottom: 14px; }
.form-message.error { background: #fdeaea; color: #c0392b; border: 1px solid #f5c6c6; }
.form-message.success { background: #eafaf0; color: var(--resolved); border: 1px solid #bfe8cd; }

.modal-success {
    text-align: center; padding: 24px 10px;
}
.modal-success .check {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%; background: var(--resolved); color: #fff;
    display: grid; place-items: center; font-size: 34px;
}
.modal-success h4 { font-size: 18px; margin-bottom: 8px; }
.modal-success p { font-size: 14px; color: #555; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .topbar-inner { height: 54px; gap: 10px; }
    .topbar-logo { font-size: 18px; }
    .topbar-search { max-width: none; height: 36px; }
    .topbar-actions .btn-outline { display: none; }
    .brand-info h1 { font-size: 20px; }
    .brand-avatar { width: 60px; height: 60px; font-size: 30px; }
    .brand-stats { gap: 16px; width: 100%; justify-content: space-between; }
    .brand-stat { min-width: 0; }
    .complaint-title { font-size: 16px; }
}
