/* 
   AniMind Emergency Triage - Design System & Custom Styles
   Colors & Typography matched with animind.com.tr
*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0b1315;
    --card-bg: rgba(20, 32, 35, 0.65);
    --card-border: rgba(229, 193, 133, 0.12);
    --card-border-active: rgba(229, 193, 133, 0.6);
    --text-primary: #f4f6f6;
    --text-secondary: #8e9e9f;
    --accent-gold: #e5c185;
    --accent-gold-hover: #f3d7a8;
    --glow-color: rgba(229, 193, 133, 0.03);
    
    /* Triage Status Colors */
    --color-danger: #ff4d4d;
    --color-danger-bg: rgba(255, 77, 77, 0.1);
    --color-warning: #ffa500;
    --color-warning-bg: rgba(255, 165, 0, 0.1);
    --color-info: #00bcd4;
    --color-info-bg: rgba(0, 188, 212, 0.15);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Organic Ambient Glow Background */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 93, 98, 0.08) 0%, rgba(229, 193, 133, 0.015) 50%, transparent 100%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
    animation: floatingGlow 15s infinite alternate ease-in-out;
}

@keyframes floatingGlow {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-48%, 5%) scale(1.1);
        opacity: 1;
    }
}

.app-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* Header Section */
header {
    margin-bottom: 48px;
    text-align: center;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-text span {
    color: var(--accent-gold);
    font-style: italic;
}

.badge-emergency {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    border: 1px solid rgba(229, 193, 133, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    background: rgba(229, 193, 133, 0.02);
}

.main-title {
    font-family: 'Lora', serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    line-height: 1.3;
    margin: 16px 0 12px;
}

.main-title span {
    font-style: italic;
    color: var(--accent-gold);
}

.subtitle {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.2vw, 16px);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* Species Selection Section */
.species-section {
    margin-bottom: 40px;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(229, 193, 133, 0.2), transparent);
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.species-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.species-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold-hover);
    box-shadow: 0 12px 30px rgba(229, 193, 133, 0.05);
}

.species-card.active {
    border-color: var(--accent-gold);
    background: rgba(229, 193, 133, 0.05);
    box-shadow: 0 8px 24px rgba(229, 193, 133, 0.08);
}

.species-icon {
    width: 48px;
    height: 48px;
    stroke: var(--text-secondary);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition-smooth);
}

.species-card:hover .species-icon,
.species-card.active .species-icon {
    stroke: var(--accent-gold);
    transform: scale(1.05);
}

.species-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Triage Interactive Panel */
.triage-panel {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    min-height: 550px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.triage-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Symptoms List (Left Side) */
.symptoms-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.symptom-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.symptom-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}

.symptom-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(229, 193, 133, 0.2);
}

.symptom-item.active {
    background: rgba(229, 193, 133, 0.04);
    border-color: rgba(229, 193, 133, 0.3);
}

.symptom-item.active::before {
    background: var(--accent-gold);
}

.symptom-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.symptom-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.symptom-badge-summary {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

.symptom-badge-summary.danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.symptom-badge-summary.warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.symptom-badge-summary.info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.symptom-chevron {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    stroke-width: 2;
    fill: none;
    transition: var(--transition-smooth);
}

.symptom-item.active .symptom-chevron {
    stroke: var(--accent-gold);
    transform: translateX(3px);
}

/* Symptom Detail View (Right Side) */
.triage-detail-pane {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    min-height: 500px;
}

.detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}

.detail-title {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Scenario Tabs */
.scenario-selector-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario-selector-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scenario-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.scenario-tab {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 12px;
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.scenario-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.scenario-tab.active[data-level="danger"] {
    background: var(--color-danger);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.25);
}

.scenario-tab.active[data-level="warning"] {
    background: var(--color-warning);
    color: #0b1315;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.25);
}

.scenario-tab.active[data-level="info"] {
    background: var(--color-info);
    color: #0b1315;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.25);
}

/* Action Display Card */
.action-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    transition: var(--transition-smooth);
}

.action-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge.danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.status-badge.warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.status-badge.info {
    background: var(--color-info-bg);
    color: var(--color-info);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

/* Pulsing dot for danger */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-danger);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 77, 77, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.action-first-aid {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-gold);
    padding-left: 16px;
}

.action-card.danger .action-first-aid {
    border-left-color: var(--color-danger);
}

.action-card.warning .action-first-aid {
    border-left-color: var(--color-warning);
}

.action-card.info .action-first-aid {
    border-left-color: var(--color-info);
}

/* Species specific advice card */
.transport-tip {
    background: rgba(229, 193, 133, 0.02);
    border: 1px solid rgba(229, 193, 133, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.transport-icon {
    width: 20px;
    height: 20px;
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.transport-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.transport-text strong {
    color: var(--accent-gold);
    font-weight: 500;
}

/* Empty State / Welcome Panel */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    border: 1px dashed var(--card-border);
    border-radius: var(--border-radius-md);
    background: rgba(20, 32, 35, 0.2);
    min-height: 550px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    stroke: var(--accent-gold);
    stroke-width: 1;
    fill: none;
    margin-bottom: 24px;
    opacity: 0.8;
}

.empty-title {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-desc {
    color: var(--text-secondary);
    max-width: 420px;
    font-size: 14px;
    line-height: 1.6;
}

/* Bottom Disclaimer */
footer {
    margin-top: 48px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--color-danger);
    font-weight: 600;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(229, 193, 133, 0.2);
    transition: var(--transition-smooth);
}

.back-btn:hover {
    border-color: var(--accent-gold-hover);
    color: var(--text-primary);
    background: rgba(229, 193, 133, 0.03);
}

.back-btn svg {
    transition: var(--transition-smooth);
}

.back-btn:hover svg {
    transform: translateX(-3px);
}

/* Responsive Grid Adaptations */
@media (max-width: 960px) {
    .triage-panel {
        grid-template-columns: 1fr;
    }
    
    .species-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-wrapper {
        padding: 24px 16px;
    }
    
    header {
        margin-bottom: 32px;
    }
    
    .species-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .species-card {
        padding: 16px 12px;
    }
    
    .triage-detail-pane {
        padding: 20px;
    }
    
    .scenario-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .scenario-tab {
        padding: 10px;
    }
}

/* ───────── Adım-adım ilk yardım + ⛔ ASLA kutusu (kriz-azaltma) ───────── */
.triage-advice {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.triage-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.triage-steps li {
    counter-increment: step;
    position: relative;
    padding: 2px 0 2px 42px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.triage-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bg-color);
    background: var(--accent-gold);
}

.do-not-box {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    background: var(--color-danger-bg);
    border: 1px solid rgba(255, 77, 77, 0.35);
    border-left: 4px solid var(--color-danger);
}

.do-not-label {
    flex: 0 0 auto;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-danger);
    font-size: 0.92rem;
    white-space: nowrap;
    padding-top: 1px;
}

.do-not-text {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-primary);
}

/* ───────── v2: Renk-kod öncelikli triyaj ───────── */
:root { --color-green: #3fbf7f; --color-green-bg: rgba(63, 191, 127, 0.12); }

.psych-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dashed var(--card-border-active);
    padding-bottom: 2px;
    transition: var(--transition-smooth);
}
.psych-link:hover { color: var(--accent-gold); }
.psych-link strong { color: var(--accent-gold); }

/* Yardımcı güvenlik şeridi */
.safety-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0 8px;
    padding: 14px 16px;
    background: var(--color-warning-bg);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-left: 4px solid var(--color-warning);
    border-radius: var(--border-radius-md);
}
.safety-icon { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--color-warning); fill: none; stroke-width: 1.8; margin-top: 1px; }
.safety-text { font-size: 0.92rem; line-height: 1.55; color: var(--text-primary); }
.safety-text strong { color: var(--color-warning); }

/* Renk-kod kartları */
.code-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.code-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left-width: 4px;
    border-radius: var(--border-radius-md);
    padding: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}
.code-card:hover { transform: translateY(-3px); }
.code-card .code-top { display: flex; align-items: center; gap: 8px; }
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-secondary); }
.code-name { font-family: 'Lora', serif; font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.code-sub { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; }

.code-card.red    { border-left-color: var(--color-danger); }
.code-card.red    .code-dot, .code-card.red .code-name    { color: var(--color-danger); }
.code-card.red    .code-dot { background: var(--color-danger); box-shadow: 0 0 12px var(--color-danger); animation: pulse-ring 1.6s infinite; }
.code-card.yellow { border-left-color: var(--color-warning); }
.code-card.yellow .code-dot, .code-card.yellow .code-name { color: var(--color-warning); }
.code-card.yellow .code-dot { background: var(--color-warning); }
.code-card.green  { border-left-color: var(--color-green); }
.code-card.green  .code-dot, .code-card.green .code-name  { color: var(--color-green); }
.code-card.green  .code-dot { background: var(--color-green); }

.code-card.red.active    { border-color: var(--color-danger); background: var(--color-danger-bg); }
.code-card.yellow.active { border-color: var(--color-warning); background: var(--color-warning-bg); }
.code-card.green.active  { border-color: var(--color-green); background: var(--color-green-bg); }

@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 8px var(--color-danger); } 50% { box-shadow: 0 0 18px var(--color-danger); } }

/* Yeşil rozet/kart varyantları */
.symptom-badge-summary.green { background: var(--color-green-bg); color: var(--color-green); }
.status-badge.green { background: var(--color-green-bg); color: var(--color-green); }
.action-card.green { border-color: rgba(63, 191, 127, 0.35); }

/* Siyah rozet/kart varyantları */
.symptom-badge-summary.black { background: rgba(85,85,85,0.12); color: #888; }
.status-badge.black { background: rgba(85,85,85,0.12); color: #888; }
.action-card.black { border-color: rgba(85,85,85,0.35); }
.action-card.black .action-first-aid { border-left-color: #888; }

/* Detay gövdesi */
.action-heading {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

/* Türe özel notlar */
.species-notes {
    margin-top: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-sm);
}
.species-notes-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; color: var(--text-secondary); text-transform: uppercase; margin-bottom: 10px; }
.species-note { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; line-height: 1.5; color: var(--text-primary); margin-bottom: 8px; }
.species-note:last-child { margin-bottom: 0; }
.species-chip {
    flex: 0 0 auto;
    font-size: 0.75rem; font-weight: 600;
    padding: 2px 9px; border-radius: 20px;
    background: rgba(229,193,133,0.12); color: var(--accent-gold);
    border: 1px solid var(--card-border-active);
    white-space: nowrap;
}

/* Muhafaza & taşıma notu (koddan çıkarımlı) */
.preserve-note {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: var(--border-radius-sm);
    background: var(--glow-color);
    border: 1px solid var(--card-border);
    font-size: 0.92rem; line-height: 1.55; color: var(--text-secondary);
}
.preserve-note strong { color: var(--text-primary); }

@media (max-width: 720px) {
    .code-grid { grid-template-columns: 1fr; gap: 12px; }
    .code-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .code-card .code-name { font-size: 1.25rem; }
}

/* ───────── BRIEF B: Premium UI / UX TAMAMLAMALAR ───────── */

/* Acil Veteriner Butonu */
.vet-locator-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.15) 0%, rgba(229, 193, 133, 0.1) 100%);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(229, 193, 133, 0.25);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.1);
    backdrop-filter: blur(8px);
}

.vet-locator-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 193, 133, 0.2), transparent);
    transition: 0.5s;
}

.vet-locator-btn:hover::before {
    left: 100%;
}

.vet-locator-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.25) 0%, rgba(229, 193, 133, 0.15) 100%);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.2), 0 0 10px rgba(229, 193, 133, 0.1);
}

.vet-locator-btn:active {
    transform: translateY(0);
}

.vet-locator-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--color-danger);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.8);
    animation: vet-pulse 1.8s infinite;
}

@keyframes vet-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 77, 77, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.vet-locator-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.vet-locator-btn.loading .vet-locator-icon {
    background-color: var(--accent-gold);
    animation: vet-loading 1s infinite linear;
}

@keyframes vet-loading {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* İndirme Funnel CTA */
.funnel-cta {
    margin: 64px 0 32px 0;
    position: relative;
    border-radius: var(--border-radius-lg);
    background: radial-gradient(135deg, rgba(20, 32, 35, 0.8) 0%, rgba(11, 19, 21, 0.95) 100%);
    border: 1px solid rgba(229, 193, 133, 0.08);
    padding: 40px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.funnel-cta:hover {
    border-color: rgba(229, 193, 133, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 40px rgba(229, 193, 133, 0.02);
}

.funnel-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 193, 133, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.funnel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
}

.funnel-header {
    max-width: 700px;
}

.funnel-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    background: rgba(229, 193, 133, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(229, 193, 133, 0.15);
    margin-bottom: 16px;
}

.funnel-title {
    font-family: 'Lora', serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.funnel-title span.accent-italic {
    font-style: italic;
    color: var(--accent-gold);
}

.funnel-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features layout inside funnel */
.funnel-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 800px;
    margin: 8px 0;
}

.funnel-feature-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-align: left;
    transition: var(--transition-smooth);
}

.funnel-feature-card:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(229, 193, 133, 0.08);
    transform: translateY(-2px);
}

.funnel-feature-icon {
    font-size: 24px;
    background: rgba(229, 193, 133, 0.05);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(229, 193, 133, 0.1);
    flex-shrink: 0;
}

.funnel-feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.funnel-feature-text p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* E-mail subscription form */
.funnel-action-container {
    width: 100%;
    max-width: 460px;
}

.funnel-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Float label animation */
.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.75rem;
    background: #0b1315;
    padding: 0 6px;
    left: 12px;
    color: var(--accent-gold);
}

.input-wrapper input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(229, 193, 133, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.funnel-submit-btn {
    padding: 0 24px;
    border-radius: var(--border-radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c4a165 100%);
    color: #0b1315;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(229, 193, 133, 0.25);
}

.funnel-submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    box-shadow: 0 6px 18px rgba(229, 193, 133, 0.35);
}

.funnel-submit-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: var(--transition-smooth);
}

.funnel-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Form success state styling */
.funnel-success-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(63, 191, 127, 0.1);
    border: 1px solid rgba(63, 191, 127, 0.25);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    color: var(--color-green);
    font-size: 0.95rem;
    font-weight: 600;
    animation: success-pulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pulse {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-green);
    stroke-width: 3;
    flex-shrink: 0;
}

.funnel-links {
    margin-top: 8px;
}

.funnel-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.funnel-primary-link svg {
    transition: var(--transition-smooth);
}

.funnel-primary-link:hover {
    color: var(--accent-gold-hover);
    border-bottom-color: var(--accent-gold-hover);
}

.funnel-primary-link:hover svg {
    transform: translate(2px, -2px);
}

/* PWA Kurulum Banner'ı */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    background: rgba(11, 19, 21, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 193, 133, 0.18);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    animation: pwa-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

@keyframes pwa-slide-up {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-icon-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(229, 193, 133, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(229, 193, 133, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pwa-app-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.pwa-text-container {
    flex: 1;
}

.pwa-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pwa-banner-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pwa-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-primary {
    background: var(--accent-gold);
    color: #0b1315;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pwa-btn-primary:hover {
    background: var(--accent-gold-hover);
    box-shadow: 0 4px 12px rgba(229, 193, 133, 0.2);
}

.pwa-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pwa-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .funnel-features {
        grid-template-columns: 1fr;
    }
    .funnel-form {
        flex-direction: column;
        gap: 12px;
    }
    .funnel-submit-btn {
        padding: 14px;
        justify-content: center;
    }
    .funnel-cta {
        padding: 32px 24px;
    }
}

@media (max-width: 580px) {
    .pwa-install-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .pwa-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .pwa-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================================
   v3 UX: açılış güvenlik modalı + DURUM-öncelikli akordeon + detay modalı
   ============================================================ */

/* --- Açılış güvenlik hatırlatması --- */
.safety-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(5, 9, 10, 0.82); backdrop-filter: blur(6px);
    transition: opacity .35s ease;
}
.safety-modal.dismissed { opacity: 0; pointer-events: none; }
.safety-modal-card {
    max-width: 440px; width: 100%; text-align: center; padding: 32px 28px;
    background: linear-gradient(160deg, rgba(28,40,43,.96), rgba(16,24,26,.96));
    border: 1px solid var(--color-warning); border-radius: var(--border-radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.safety-modal-icon { width: 52px; height: 52px; fill: none; stroke: var(--color-warning); stroke-width: 1.6; margin-bottom: 14px; }
.safety-modal-title { font-size: 1.5rem; color: var(--text-primary); margin: 0 0 12px; }
.safety-modal-text { font-size: .98rem; line-height: 1.6; color: var(--text-secondary); margin: 0 0 24px; }
.safety-modal-text strong { color: var(--accent-gold); }
.safety-ack-btn {
    width: 100%; padding: 14px 20px; border: none; cursor: pointer;
    background: var(--color-warning); color: #1a1205; font-weight: 700; font-size: 1rem;
    border-radius: var(--border-radius-md); transition: var(--transition-smooth);
}
.safety-ack-btn:hover { background: #ffb733; transform: translateY(-2px); }

/* --- Durum panosu --- */
.triage-board { margin-top: 8px; }
.board-hint { font-size: .92rem; color: var(--text-secondary); margin: 6px 0 18px; line-height: 1.5; }

/* --- Grid Layout (Kutu Arayüzü) --- */
.triage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

.grid-panel {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md); overflow: hidden;
    display: flex; flex-direction: column;
}

.grid-panel.red { border-top: 4px solid var(--color-danger); }
.grid-panel.yellow { border-top: 4px solid var(--color-warning); }
.grid-panel.green { grid-column: span 2; border-top: 4px solid var(--color-green); }
.grid-panel.black { grid-column: span 2; border-top: 4px solid #555; }

.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid rgba(255,255,255,0.03);
}

.panel-header-left { display: flex; align-items: center; gap: 8px; }

.code-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.grid-panel.red .code-dot { background: var(--color-danger); box-shadow: 0 0 12px var(--color-danger); animation: pulse-ring 1.6s infinite; }
.grid-panel.yellow .code-dot { background: var(--color-warning); }
.grid-panel.green .code-dot { background: var(--color-green); }
.grid-panel.black .code-dot { background: #555; }

.cg-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; }
.grid-panel.red .cg-name { color: var(--color-danger); }
.grid-panel.yellow .cg-name { color: var(--color-warning); }
.grid-panel.green .cg-name { color: var(--color-green); }
.grid-panel.black .cg-name { color: #888; }

.cg-tag { font-size: .7rem; letter-spacing: .12em; font-weight: 700; opacity: .7; color: var(--text-secondary); }

.panel-body { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; }

.situation-item {
    display: flex; align-items: center; text-align: left; cursor: pointer;
    padding: 12px 14px; background: rgba(255,255,255,.02);
    border: 1px solid var(--card-border); border-radius: var(--border-radius-sm);
    color: var(--text-primary); transition: var(--transition-smooth); width: 100%;
}
.situation-item:hover { background: rgba(255,255,255,.05); border-color: var(--card-border-active); transform: translateX(3px); }
.si-title { font-size: .92rem; font-weight: 500; }

@media (max-width: 768px) {
    /* Mobilde Red ve Yellow yan yana (2 kolon) kalsın, aralıklar daralsın */
    .triage-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .panel-header { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
    .panel-header-left { align-items: flex-start; }
    .panel-body { padding: 8px; gap: 6px; }
    .situation-item { padding: 10px; }
    .si-title { font-size: 0.85rem; line-height: 1.3; }
    .cg-name { font-size: 0.95rem; }
    .grid-panel.green, .grid-panel.black { grid-column: span 2; }
}

/* --- Detay modalı --- */
.detail-modal {
    position: fixed; inset: 0; z-index: 180;
    display: none; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto;
}
.detail-modal-backdrop { position: fixed; inset: 0; background: rgba(5,9,10,.8); backdrop-filter: blur(4px); }
.detail-modal-card {
    position: relative; z-index: 1; width: 100%; max-width: 640px; margin: auto;
    background: linear-gradient(160deg, rgba(22,33,36,.98), rgba(14,21,23,.98));
    border: 1px solid var(--card-border); border-radius: var(--border-radius-lg);
    padding: 28px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.detail-close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--card-border); cursor: pointer; background: rgba(255,255,255,.04);
    color: var(--text-secondary); font-size: 1rem; transition: var(--transition-smooth);
}
.detail-close:hover { background: rgba(255,255,255,.1); color: var(--text-primary); }
.detail-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding-right: 32px; }
.detail-label.danger  { color: var(--color-danger); }
.detail-label.warning { color: var(--color-warning); }
.detail-label.green   { color: var(--color-green); }

@media (max-width: 600px) {
    .cg-sub { display: none; }
    .detail-modal, .safety-modal { padding: 14px; }
    .detail-modal-card { padding: 22px 16px; }
    .code-group-header { padding: 16px; }
}

/* --- v3 taşma düzeltmesi (mobil): glow + modal viewport'u aşmasın --- */
html, body { overflow-x: hidden; max-width: 100%; }
.ambient-glow { max-width: 100vw; pointer-events: none; }
.safety-modal-card,
.detail-modal-card { max-width: min(440px, calc(100vw - 28px)); }
.detail-modal-card { max-width: min(640px, calc(100vw - 28px)); }
.safety-modal.dismissed { display: none; }
