/* style.css - Haber Ederiz Premium Design System */

:root {
    --primary-color: #ff4757;
    --primary-hover: #ff6b81;
    --primary-light: #fff2f3;
    --secondary-color: #2ed573;
    --secondary-hover: #26af5f;
    --dark-color: #0f172a; /* Slate 900 for premium modern dark */
    --text-color: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --light-bg: #f8fafc; /* Slate 50 */
    --card-bg: #ffffff;
    --border-color: #e2e8f0; /* Slate 200 */
    
    /* Map styling variables */
    --map-bg: #f1f5f9; /* Slate 100 for clean layout */
    --map-fill: #cbd5e1; /* Slate 300 for neutral unselected */
    --map-stroke: #ffffff;
    --map-hover: #94a3b8; /* Slate 400 */
    --map-selected: #f97316; /* Warm Orange (orange-500) for selected */
    --map-selected-hover: #ea580c; /* orange-600 */
    
    --sidebar-width: 340px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    overflow-x: hidden;
}

/* Premium Header Bar (Transparent background by user request) */
.app-header {
    background: transparent;
    color: var(--dark-color);
    width: 100%;
    padding: 20px 0;
    text-align: center;
    box-shadow: none;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.logo-wrapper {
    max-width: 260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SEO Hero Header Typography */
.app-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.app-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.app-subtitle {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* SEO Redirection Link Styling */
.seo-link-wrapper {
    width: 100%;
}

.seo-pusula-link {
    display: inline-block;
    width: 100%;
    padding: 12px 15px;
    background: var(--light-bg);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.seo-pusula-link:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

/* Grid Layout (Container expanded to 1440px for maximum map view!) */
.app-container {
    max-width: 1440px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 30px;
    padding: 0 20px 50px 20px;
    box-sizing: border-box;
    align-items: start;
}

@media (max-width: 992px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

/* Main Cards styling */
.main-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Map Section */
.map-capture-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 6px;
    box-sizing: border-box;
}

.map-wrapper {
    width: 100%;
    background: var(--map-bg);
    padding: 10px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    position: relative;
    border: 1px solid var(--border-color);
}

.svg-turkiye-haritasi {
    max-width: 100%;
    margin: 0 auto;
    display: block;
    min-height: 440px;
}

.svg-turkiye-haritasi svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(15, 23, 42, 0.05));
}

/* Map Path Rendering */
#svg-turkiye-haritasi path {
    fill: var(--map-fill) !important;
    stroke: var(--map-stroke) !important;
    stroke-width: 1.2px !important;
    stroke-linejoin: round !important;
    transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

#svg-turkiye-haritasi path:hover {
    fill: var(--map-hover) !important;
}

#svg-turkiye-haritasi g.selected path {
    fill: var(--map-selected) !important;
}

#svg-turkiye-haritasi g.selected path:hover {
    fill: var(--map-selected-hover) !important;
}

#guney-kibris {
    pointer-events: none;
}

#guney-kibris path {
    fill: #cbd5e1 !important;
    stroke: #ffffff !important;
}

/* Sleek Tooltip styling */
.il-isimleri {
    position: fixed;
    pointer-events: none !important;
    z-index: 99999 !important;
    display: none;
    pointer-events: none;
}

.il-isimleri div {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center;
}

/* Info Panel / Score Card */
.info-panel {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-bg) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.score-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.score-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.score-display {
    font-size: 54px;
    font-weight: 900;
    color: var(--primary-color);
    margin: 8px 0 4px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.gurme-unvan-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: #c53030; /* High Contrast Red */
    font-weight: 800;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.2);
    animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.dynamic-text {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 600;
    max-width: 600px;
    margin: 12px auto 0 auto;
    line-height: 1.6;
}

/* Regional Progress bars styles */
.region-stats-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: left;
}

.stats-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.region-progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.region-stat-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.region-stat-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--map-selected), var(--primary-color));
    border-radius: 4px;
    transition: width 0.5s ease-out;
    width: 0%;
}

/* Gourmet Badges styles */
.badges-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: left;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--light-bg);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0.45;
    filter: grayscale(1);
    user-select: none;
}

.badge-item.active {
    background: #ffffff;
    border-color: #ffd700; /* Gold */
    color: var(--dark-color);
    opacity: 1;
    filter: none;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

/* Modal Popup Overlay Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.25s ease;
}

/* Province Details Modal Box styling */
.city-details-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 90%;
    max-width: 680px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    display: none;
    animation: fadeInModal 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.city-details-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.city-details-title span.plate-badge {
    font-size: 13px;
    font-weight: 700;
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-left: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 0;
    transition: var(--transition);
}
.modal-close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Checklist container */
.food-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding: 10px 10px 10px 0;
    margin: 15px 0 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.food-checklist::-webkit-scrollbar {
    width: 6px;
}
.food-checklist::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}
.food-checklist::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.food-checklist::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Checkbox label styling */
.food-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(226, 232, 240, 0.5);
    user-select: none;
}

.food-checkbox-label:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.food-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: #ffffff;
}

.food-checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.food-checkbox-label input[type="checkbox"]:checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.food-checkbox-label input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

/* Action buttons wrapper */
.checklist-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-all-yes, .btn-all-no {
    flex: 1;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.btn-all-yes {
    background: var(--secondary-color);
    color: #ffffff;
    border-color: var(--secondary-color);
}
.btn-all-yes:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

.btn-all-no {
    background: #ffffff;
    color: var(--text-color);
}
.btn-all-no:hover {
    background: #f1f5f9;
    border-color: var(--text-muted);
}

/* Modal Bottom Actions wrapper */
.modal-bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.btn-finish {
    background: var(--dark-color);
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-finish:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.25);
    transform: translateY(-1px);
}

/* Action Buttons (Download & Share) */
.action-grid {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.capture-btn {
    background: var(--dark-color);
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.capture-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
    background: #1e293b;
}

.share-panel {
    display: none; /* Visible only when score > 0 */
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    animation: fadeIn 0.4s ease;
    position: relative;
}

.share-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

/* Share Buttons (Circular Icon row style by user request) */
.share-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.share-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    padding: 0; /* Clear padding for perfect circular centering! */
}

.share-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: var(--shadow-md);
}

.share-x { background: #0f172a; }
.share-tg { background: #0088cc; }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-ln { background: #0077b5; }
.share-copy { background: #64748b; }

/* Publish live feed button and toast styles */
.btn-publish-feed {
    background: linear-gradient(135deg, var(--primary-color), var(--map-selected));
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
}
.btn-publish-feed:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 71, 87, 0.35);
}
.btn-publish-feed:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

/* Username input field for Live Feed publishing */
.publish-name-input-wrapper {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.publish-name-input-wrapper label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publish-name-input-wrapper input {
    width: 80%;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    font-weight: 700;
    outline: none;
    transition: var(--transition);
    background: #ffffff;
    color: var(--dark-color);
}

.publish-name-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.publish-toast {
    display: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Copy toast message styles */
.copy-toast {
    display: none;
    margin-top: 12px;
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Sidebar Panels (Top 100 + Stats + Ads) */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--dark-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Sponsor & Banner AdSpaces */
.ad-space {
    background: #ffffff;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #334155; /* High Contrast Slate 700 */
    font-weight: 600;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.ad-space:hover {
    background: var(--primary-light);
    border-color: #c53030; /* High Contrast Red */
    color: #c53030; /* High Contrast Red */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ad-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c53030; /* High Contrast Red */
    margin-bottom: 8px;
}

/* Competition Stats panel styles */
.competition-stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.comp-meta {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-color);
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: inline-block;
    width: fit-content;
}

.comp-meta strong {
    color: #c53030; /* High Contrast Red */
}

.comp-list-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.comp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comp-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-color);
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: 6px;
    border: 1px solid rgba(226, 232, 240, 0.4);
}

.comp-list-item .comp-val {
    color: #c53030; /* High Contrast Red */
}

.comp-disclaimer {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

/* Top 100 popular items list styling */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

.popular-list::-webkit-scrollbar {
    width: 6px;
}
.popular-list::-webkit-scrollbar-track {
    background: transparent;
}
.popular-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.popular-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.popular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.popular-item:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.popular-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.popular-rank {
    width: 26px;
    height: 26px;
    background: #ffffff;
    color: var(--text-color);
    font-weight: 800;
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.popular-item:nth-child(1) .popular-rank { background: #ffd700; color: #000; border-color: #ffd700; }
.popular-item:nth-child(2) .popular-rank { background: #cbd5e1; color: #000; border-color: #cbd5e1; }
.popular-item:nth-child(3) .popular-rank { background: #f59e0b; color: #fff; border-color: #f59e0b; }

.popular-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark-color);
    line-height: 1.3;
}

.popular-stat {
    font-size: 10px;
    font-weight: 800;
    color: #c53030; /* High Contrast Red */
    background: var(--primary-light);
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 71, 87, 0.1);
    flex-shrink: 0;
}

/* Canlı Sosyal Akış Feed styling (Moved to Left Column Main Card) */
.left-social-feed-section {
    text-align: left;
    display: block; /* Visible by default! */
}

.left-social-feed-section .social-feed-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    max-height: none;
    overflow: visible;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.6s infinite;
    margin-right: 4px;
    will-change: transform, opacity;
}
@keyframes pulse {
    0% {
        transform: scale(0.75);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.75);
        opacity: 0.5;
    }
}

.social-feed-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(226, 232, 240, 0.5);
    animation: slideInSocial 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    text-align: left;
}

.social-feed-item.user-item {
    background: var(--primary-light);
    border-color: rgba(255, 71, 87, 0.2);
}

.social-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.social-user {
    color: var(--dark-color);
}

.social-feed-item.user-item .social-user {
    color: var(--primary-color);
}

.social-time {
    font-weight: normal;
}

.social-content {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

@keyframes slideInSocial {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Live Online Visitor Bar above the footer */
.live-visitor-bar {
    max-width: 1440px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.visitor-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 10px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.live-pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulseGreen 1.6s infinite;
    will-change: transform, opacity;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.75);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.75);
        opacity: 0.5;
    }
}

/* Cookie consent banner popup */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 16px 24px;
    z-index: 10001;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--primary-color);
    display: none;
    animation: slideUpCookie 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpCookie {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cookie-accept:hover {
    background: var(--primary-hover);
}

.cookie-link {
    color: #cbd5e1;
    text-decoration: underline;
    font-size: 12px;
    font-weight: 600;
}
.cookie-link:hover {
    color: #ffffff;
}

/* Premium Footer Styling */
.app-footer {
    background: var(--dark-color);
    color: #ffffff;
    width: 100%;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    max-width: 1440px; /* Aligned with container width */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 50px;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-left {
    text-align: left;
}

.footer-logo {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.footer-logo span {
    color: var(--primary-color);
}

.footer-copy {
    font-size: 13px;
    color: #cbd5e1; /* High Contrast Slate 300 */
    margin: 10px 0;
}

.footer-disclaimer {
    font-size: 11px;
    color: #cbd5e1; /* High Contrast Slate 300 */
    line-height: 1.5;
    margin-top: 15px;
}

.footer-links {
    text-align: left;
}

.footer-links h4, .footer-social h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: #cbd5e1; /* High Contrast Slate 300 */
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    text-align: left;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-icons a {
    display: inline-block;
    padding: 8px 16px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid #334155;
}

.footer-social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .app-header {
        padding: 10px 0;
    }
    .logo-wrapper {
        max-width: 140px;
    }
    .app-container {
        padding: 0 8px 30px 8px;
    }
    .main-card {
        padding: 12px 8px;
        max-width: 100%;
        overflow: hidden;
    }
    .map-capture-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .map-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        box-sizing: border-box;
    }
    .svg-turkiye-haritasi {
        width: 100%; /* Default mobile width: fits nicely in viewport! */
        min-height: auto;
        display: block;
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .svg-turkiye-haritasi.zoomed {
        width: 850px !important; /* Enlarge map to allow zooming/horizontal scrolling */
        max-width: none !important; /* Remove max-width constraint to let it scroll! */
    }
    .city-details-box {
        padding: 20px;
        width: 92% !important;
        max-width: 380px !important;
        max-height: 80vh !important; /* Limit height to prevent bottom overflow on short screens */
        overflow-y: auto !important; /* Scroll card itself if content exceeds screen height */
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .food-checklist {
        grid-template-columns: 1fr;
        max-height: 200px;
    }
    .checklist-actions {
        flex-direction: column;
        gap: 8px;
    }
    .region-progress-container {
        grid-template-columns: 1fr;
    }
    .left-social-feed-section .social-feed-list {
        grid-template-columns: 1fr;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-left {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }
    .footer-social {
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .app-hero {
        margin-bottom: 15px;
        padding: 0 10px;
    }
    .app-title {
        font-size: 21px;
        margin-bottom: 6px;
        line-height: 1.25;
    }
    .app-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
    }
}

/* Dynamic SVG Map Province Labels */
.map-city-label {
    font-size: 8.5px;
    font-weight: 800;
    fill: #475569; /* Slate 600 */
    pointer-events: none;
    user-select: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
}

/* Make text bright white with text-shadow when selected for perfect contrast */
.map-city-label.selected {
    fill: #ffffff !important;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

@media (max-width: 768px) {
    .map-city-label {
        font-size: 7.2px; /* Scaled down on mobile to fit nicely */
    }
}

/* Sayfa Altı / Footer Üstü Motivasyon Kutusu */
.motivation-banner {
    max-width: 1440px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}
.motivation-banner p {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 30px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    text-align: left;
}

/* Score buttons side-by-side layout */
.score-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}
.score-buttons-container button,
.score-buttons-container .capture-btn,
.score-buttons-container .certificate-btn {
    flex: 1;
    padding: 14px 20px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

.certificate-btn {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: not-allowed !important;
    position: relative;
    overflow: visible;
}

.badge-soon {
    background: #ff4757;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 4px;
    position: absolute;
    top: -8px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .motivation-banner {
        margin-top: 25px;
        padding: 0 8px;
    }
    .motivation-banner p {
        padding: 16px 20px;
        font-size: 13px;
        line-height: 1.5;
    }
    .score-buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    .badge-soon {
        top: -6px;
    }
    .zoom-btn-container {
        display: block !important; /* Show container on mobile viewports */
    }
}

/* Zoom map container and centered toggle button styling */
.zoom-btn-container {
    display: none; /* Hidden on desktop by default */
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
    width: 100%;
}

.zoom-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c53030; /* High Contrast Red */
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(197, 48, 48, 0.3);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    gap: 6px;
}

.zoom-map-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Share panel publish advisory info box */
.publish-advisory-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    text-align: left;
    margin-top: 15px;
    box-sizing: border-box;
}