/* =====================================================
   MARKA YORUMLARI - Şikayetvar Benzeri Profesyonel Tasarım
   ===================================================== */

:root {
    --primary: #1a56db;
    --primary-dark: #1240a8;
    --primary-light: #e8eefb;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 6px 0;
    font-size: 13px;
}

/* Navbar */
.navbar-main {
    background: var(--primary);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.brand-text { color: #fff; letter-spacing: -0.5px; }
.brand-text strong { font-weight: 800; }

.nav-search-form {
    max-width: 480px;
    width: 100%;
}

.nav-search-form .form-control {
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 16px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
}

.nav-search-form .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.btn-search {
    background: #b45309;
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 10px 18px;
    font-weight: 600;
}
.btn-search:hover { background: #92400e; color: #fff; }

.navbar-main .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px !important;
    transition: all 0.2s;
    border-radius: var(--radius);
}
.navbar-main .nav-link:hover { background: rgba(255,255,255,0.15); color: #fff !important; }

.btn-write-review {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.btn-write-review:hover {
    background: rgba(255,255,255,0.25) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px;
}
.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }

/* Breadcrumb */
.breadcrumb-section {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
}
.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--gray-500); }
.breadcrumb-item.active { color: var(--gray-700); }

/* Section Headings */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}
.section-heading h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}
.section-heading .view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Company Card */
.company-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.company-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.company-card .card-header-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.company-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: contain;
    border: 1px solid var(--gray-200);
    padding: 4px;
    background: #fff;
}
.company-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}
.company-card .company-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 2px;
}
.company-card .company-category {
    font-size: 12px;
    color: var(--gray-500);
}
.company-card .rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.company-card .rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.company-card .review-count {
    font-size: 13px;
    color: var(--gray-500);
}
.company-card .card-footer-area {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--gray-500);
}
.badge-resolved {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* Rating Colors - WCAG AA contrast compliant with white text */
.bg-rating-success { background: #059669; }
.bg-rating-warning { background: #b45309; }
.bg-rating-orange { background: #c2410c; }
.bg-rating-danger { background: var(--danger); }
.text-success { color: #047857 !important; }
.text-orange { color: #c2410c !important; }
.text-danger { color: var(--danger) !important; }

/* Star Rating */
.star-rating { display: inline-flex; gap: 1px; }
.star-rating i { font-size: 14px; }
.text-warning { color: var(--accent) !important; }

/* Review Card */
.review-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card.is-complaint { border-left: 4px solid var(--danger); }
.review-card.is-resolved { border-left: 4px solid var(--success); }
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.author-info .name { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.author-info .meta { font-size: 12px; color: var(--gray-500); }
.review-card .review-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.review-card .review-content {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}
.resolution-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 12px;
}
.resolution-box .label {
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.resolution-box .text { font-size: 13px; color: var(--gray-700); }
.review-card .company-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}
.review-card .company-link img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Tab Filter */
.tab-filter {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-filter a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-align: center;
    flex: 1;
    min-width: fit-content;
}
.tab-filter a.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.tab-filter a:hover:not(.active) { color: var(--gray-800); }

/* Sidebar */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}
.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.sidebar-info-list li:last-child { border-bottom: none; }
.sidebar-info-list li i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    margin-top: 3px;
}

/* Category Grid */
.category-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.category-card i.cat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.category-card .cat-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}
.category-card .cat-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* Pagination */
.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}

/* Write Review Form */
.review-form-card {
    background: #fff;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* FAQ Section */
.faq-section { margin-top: 30px; }
.faq-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
}
.faq-item h3 { font-size: 15px; font-weight: 600; color: var(--gray-800); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* Application Page */
.apply-form-section {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 30px;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 80px 0;
}
.error-page h1 { font-size: 6rem; font-weight: 900; color: var(--gray-300); }
.error-page h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.error-page p { color: var(--gray-500); margin-bottom: 24px; }

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
    margin-top: 40px;
}
.footer-brand {
    font-size: 1.3rem;
    color: #fff;
}
.footer-brand strong { font-weight: 800; }
.footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}
.site-footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}
.site-footer .small.text-muted, .site-footer a.text-muted {
    color: rgba(255,255,255,0.55) !important;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 15px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    margin-right: 8px;
    transition: all 0.3s;
}
.social-links a:hover { background: var(--primary); color: #fff; }

/* Content pages */
.content-page { padding: 40px 0; }
.content-page h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 24px; }
.content-page h2 { font-size: 1.3rem; font-weight: 700; margin-top: 24px; margin-bottom: 12px; }
.content-page p { margin-bottom: 16px; color: var(--gray-600); }

/* Utility */
.py-section { padding: 40px 0; }
.bg-white { background: #fff !important; }
.text-primary { color: var(--primary) !important; }

/* Alert */
.alert-success-custom {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: var(--radius);
    padding: 16px 20px;
}

/* Verified Badges */
.badge-phone-verified {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #93c5fd;
    margin-right: 4px;
}
.badge-verified {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #86efac;
}
.author-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }

/* Author Avatar Image */
.author-avatar-img {
    width: 42px;
    height: 42px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}
.review-card .author-avatar-img { width: 42px; height: 42px; }
.company-header .author-avatar-img { width: 48px; height: 48px; }

/* SEO Content Section */
.seo-content-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
}
.seo-content-section h2 {
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}
.seo-content-section p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 8px;
}
.seo-content-section p:last-child {
    margin-bottom: 0;
}
.seo-content-section a {
    color: #1a56db;
    text-decoration: none;
    font-weight: 600;
}
.seo-content-section a:hover {
    text-decoration: underline;
}

/* Related Searches */
.related-searches {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
}
.related-searches h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.related-searches .badge {
    transition: all 0.2s;
}
.related-searches .badge:hover {
    background: #1a56db !important;
    color: #fff !important;
    border-color: #1a56db !important;
}

/* Social Share Buttons */
.social-share-btns { display: flex; gap: 6px; }
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-social:hover { transform: scale(1.1); color: #fff; opacity: 0.9; }
.btn-social-fb { background: #1877f2; }
.btn-social-tw { background: #1da1f2; }
.btn-social-wa { background: #25d366; }

/* Review Helpful Button */
.btn-helpful { font-size: 12px; padding: 2px 10px; border-radius: 20px; }

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* Print Styles */
@media print {
    .top-bar, .navbar-main, .breadcrumb-section, .site-footer,
    .btn, .social-share-btns, .review-form-card, .hero-search,
    .tab-filter, .btn-helpful, .skip-link { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    .company-card, .review-card, .sidebar-card { box-shadow: none; border: 1px solid #ccc; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-search-form { margin: 12px 0; }
    .tab-filter { flex-wrap: nowrap; overflow-x: auto; }
}

@media (max-width: 576px) {
    .section-heading h2 { font-size: 1.1rem; }
}
