/* ============================================================
   İntegral Vize — Değerlendirme Anketi
   Tema: lacivert #1a5276 / kırmızı #e74c3c / yeşil #27ae60
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f8; color: #333; line-height: 1.6; }
a { color: #1a5276; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 640px; margin: 0 auto; padding: 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* ── Üst / Alt Bar ── */
.site-header { background: #fff; border-bottom: 3px solid #1a5276; padding: 16px 30px; display: flex; align-items: center; gap: 16px; }
.site-header img { height: 55px; }
.site-header-center { justify-content: center; }
.site-header-center img { height: 60px; }
.site-header-text h1 { font-size: 18px; color: #c0392b; margin: 0; }
.site-header-text p { font-size: 13px; color: #1a5276; font-weight: 600; margin: 0; }
.site-header-right { margin-left: auto; font-size: 12px; color: #7f8c8d; text-align: right; }
.site-footer { background: #f8f9fa; border-top: 2px solid #1a5276; padding: 16px 30px; font-size: 11px; color: #7f8c8d; text-align: center; }

/* ── Kart ── */
.page-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 16px rgba(0,0,0,0.1); max-width: 620px; margin: 30px auto; }
.page-card-body { padding: 34px 36px; }
.form-section-title { color: #1a5276; font-size: 16px; font-weight: 700; border-bottom: 2px solid #e74c3c; padding-bottom: 8px; margin-bottom: 22px; }

/* ── Form ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; color: #555; margin-bottom: 5px; font-weight: 600; }
.req { color: #e74c3c; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1a5276; box-shadow: 0 0 0 2px rgba(26,82,118,0.15); }
.form-group .error-msg { color: #e74c3c; font-size: 12px; margin-top: 5px; display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #e74c3c; }
.form-group.has-error .error-msg { display: block; }
.char-count { text-align: right; font-size: 11px; color: #aaa; margin-top: 4px; }

/* ── Butonlar ── */
.btn { display: inline-block; padding: 14px 40px; font-size: 15px; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; letter-spacing: 0.4px; text-align: center; transition: opacity 0.2s, transform 0.1s; }
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: #1a5276; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-google { background: #fff; color: #1a5276; border: 1px solid #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.btn-google img, .btn-google svg { vertical-align: middle; margin-right: 10px; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-block { display: block; width: 100%; }

/* ── Yıldız Puanlama ── */
.rating-wrap { text-align: center; margin: 8px 0 6px; }
.rating-label { font-size: 13px; color: #555; font-weight: 600; margin-bottom: 12px; }
.stars { display: inline-flex; gap: 8px; direction: ltr; }
.star { width: 46px; height: 46px; cursor: pointer; color: #dcdfe3; transition: transform 0.12s ease, color 0.12s ease; -webkit-tap-highlight-color: transparent; }
.star svg { width: 100%; height: 100%; display: block; }
.star:hover { transform: scale(1.12); }
.star.on { color: #f5b301; filter: drop-shadow(0 2px 4px rgba(245,179,1,0.35)); }
.star.pop { animation: starpop 0.3s ease; }
@keyframes starpop { 0% { transform: scale(0.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.rating-caption { margin-top: 12px; font-size: 14px; font-weight: 700; min-height: 20px; transition: color 0.2s; }
.rating-caption.low { color: #e67e22; }
.rating-caption.high { color: #27ae60; }

/* ── Teşekkür / Sonuç ── */
.result-box { text-align: center; padding: 20px 8px; }
.result-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff; }
.result-icon.happy { background: #27ae60; }
.result-icon.soft { background: #1a5276; }
.result-box h2 { color: #1a5276; font-size: 21px; margin-bottom: 10px; }
.result-box p { color: #666; font-size: 15px; margin-bottom: 8px; }
.result-stars { color: #f5b301; font-size: 26px; letter-spacing: 4px; margin: 6px 0 18px; }
.result-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 22px; }
.result-actions .btn { min-width: 260px; }
.google-hint { font-size: 12px; color: #999; margin-top: 4px; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 13px; }
.alert-success { background: #d4efdf; color: #1e7e34; }
.alert-error { background: #fdecea; color: #c0392b; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-header { background: #1a5276; padding: 12px 24px; display: flex; align-items: center; gap: 12px; color: #fff; }
.admin-header img { height: 32px; }
.admin-header h1 { font-size: 15px; font-weight: 600; }
.admin-header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.admin-header-right span { color: #d4e6f1; }
.admin-header-right a { color: #ffd0c9; }
.admin-nav { background: #f8f9fa; border-bottom: 1px solid #ddd; padding: 0 24px; display: flex; }
.admin-nav a { padding: 12px 20px; font-size: 13px; color: #888; border-bottom: 3px solid transparent; transition: all 0.2s; }
.admin-nav a:hover { color: #1a5276; text-decoration: none; }
.admin-nav a.active { color: #1a5276; font-weight: 600; border-bottom-color: #e74c3c; }

/* ── İstatistik kartları ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card { border-radius: 6px; padding: 18px 14px; text-align: center; }
.stat-card .stat-num { font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.stat-blue { background: #f0f7fb; border: 1px solid #d4e6f1; } .stat-blue .stat-num { color: #1a5276; }
.stat-gold { background: #fffdf3; border: 1px solid #f6e6b3; } .stat-gold .stat-num { color: #f39c12; }
.stat-green { background: #f0faf0; border: 1px solid #d4efdf; } .stat-green .stat-num { color: #27ae60; }
.stat-orange { background: #fef9f0; border: 1px solid #fae5c8; } .stat-orange .stat-num { color: #e67e22; }
.stat-gold .stars-inline { font-size: 14px; color: #f5b301; letter-spacing: 1px; }

/* ── Filtre satırı ── */
.filter-row { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.filter-row input, .filter-row select { padding: 10px 14px; border: 1px solid #ccc; border-radius: 5px; font-size: 14px; }
.filter-row .search-box { flex: 1; min-width: 220px; position: relative; }
.filter-row .search-box input { width: 100%; padding-left: 38px; }
.filter-row .search-box::before { content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; }

/* ── Tarih bölümleri ── */
.day-section { margin-bottom: 26px; }
.day-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.day-section-head h3 { font-size: 15px; color: #1a5276; font-weight: 700; }
.day-section-head .count-pill { background: #1a5276; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.day-section-head .line { flex: 1; height: 1px; background: #e2e6ea; }

/* ── Yorum kartları ── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.review-card { background: #fff; border-radius: 8px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-left: 5px solid #bdc3c7; position: relative; transition: box-shadow 0.15s; }
.review-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.13); }
.review-card.score-5 { border-left-color: #27ae60; }
.review-card.score-4 { border-left-color: #7dcea0; }
.review-card.score-3 { border-left-color: #f39c12; }
.review-card.score-2 { border-left-color: #e67e22; }
.review-card.score-1 { border-left-color: #e74c3c; }
.review-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.review-name { font-size: 15px; font-weight: 700; color: #2c3e50; word-break: break-word; }
.review-time { font-size: 11px; color: #aaa; white-space: nowrap; }
.review-stars { color: #f5b301; font-size: 16px; letter-spacing: 2px; margin-bottom: 8px; }
.review-stars .empty { color: #e0e0e0; }
.review-comment { font-size: 14px; color: #444; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.review-comment.empty { color: #b0b0b0; font-style: italic; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.badge-g { background: #eafaf1; color: #1e7e34; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.review-foot .btn-del { font-size: 11px; color: #c0392b; margin-left: auto; }

.empty-state { text-align: center; padding: 60px 20px; color: #aaa; }
.empty-state .big { font-size: 40px; margin-bottom: 10px; }

/* ── Login ── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f4f6f8; padding: 16px; }
.login-box { background: #fff; padding: 40px; width: 100%; max-width: 380px; box-shadow: 0 2px 16px rgba(0,0,0,0.1); border-radius: 8px; }
.login-box img { display: block; margin: 0 auto 18px; height: 58px; }
.login-box h2 { text-align: center; color: #1a5276; font-size: 18px; margin-bottom: 24px; }
.login-box .form-group { margin-bottom: 16px; }

/* ── Ayarlar ── */
.settings-card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); max-width: 640px; }
.settings-card h3 { color: #1a5276; font-size: 15px; margin-bottom: 18px; border-bottom: 2px solid #e74c3c; padding-bottom: 8px; }
.hint { font-size: 12px; color: #999; margin-top: 6px; line-height: 1.5; }

/* ── Toast ── */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 14px 20px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.18); transform: translateX(120%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; max-width: 380px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast-error { background: #e74c3c; } .toast-success { background: #27ae60; } .toast-info { background: #1a5276; }

.spinner { width: 26px; height: 26px; border: 3px solid #e0e0e0; border-top-color: #1a5276; border-radius: 50%; animation: spin 0.7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Onay Modalı ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,30,50,0.5); backdrop-filter: blur(2px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box { background: #fff; border-radius: 14px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.28); text-align: center; padding: 28px 26px 24px; transform: scale(0.92) translateY(8px); transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1); }
.modal-overlay.show .modal-box { transform: scale(1) translateY(0); }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; background: #fdecea; color: #e74c3c; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.modal-box h4 { color: #2c3e50; font-size: 17px; margin-bottom: 8px; }
.modal-box p { color: #7a8794; font-size: 13.5px; line-height: 1.55; margin-bottom: 22px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.1s; font-family: inherit; }
.modal-actions button:active { transform: translateY(1px); }
.modal-cancel { background: #eef1f4; color: #566573; }
.modal-cancel:hover { background: #e2e7ec; }
.modal-confirm { background: #e74c3c; color: #fff; }
.modal-confirm:hover { opacity: 0.9; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .page-card { margin: 0; border-radius: 0; box-shadow: none; }
    .page-card-body { padding: 24px 18px; }
    .site-header { padding: 14px 18px; gap: 12px; }
    .site-header img { height: 44px; }
    .site-header-text h1 { font-size: 15px; }
    .site-header-right { display: none; }
    .star { width: 42px; height: 42px; }
    .result-actions .btn { min-width: 0; width: 100%; }

    .admin-header { padding: 10px 14px; gap: 10px; }
    .admin-header img { height: 26px; }
    .admin-header h1 { font-size: 13px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .admin-header-right span { display: none; }
    .admin-nav { padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
    .admin-nav::-webkit-scrollbar { display: none; }
    .admin-nav a { padding: 12px 14px; font-size: 12px; white-space: nowrap; }
    .container-wide { padding: 14px 12px; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 12px 8px; }
    .stat-card .stat-num { font-size: 22px; }
    .filter-row { gap: 8px; }
    .filter-row .search-box { min-width: 0; width: 100%; }
    .filter-row select { flex: 1; }
    .reviews-grid { grid-template-columns: 1fr; }
    .settings-card { padding: 16px; }
}
@media (max-width: 400px) {
    .star { width: 38px; height: 38px; }
    .stars { gap: 5px; }
}
