/* Genel */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #111827;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 1.5rem 1.25rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #16a34a);
    color: #ffffff;
}

.app-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
}

.app-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.app-main {
    flex: 1;
    padding: 1.25rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
}

.app-footer {
    padding: 0.75rem 1.25rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Bölümler */
.input-section,
.results-section {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.input-section h2,
.results-section h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.input-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
}

input[type="file"],
textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    background-color: #f9fafb;
}

textarea {
    resize: vertical;
    min-height: 96px;
}

input[type="file"]:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.primary-btn,
.secondary-btn {
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: default;
    box-shadow: none;
}

.primary-btn:not(:disabled):active,
.secondary-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.secondary-btn {
    background-color: #e5e7eb;
    color: #111827;
}

.secondary-btn:hover {
    background-color: #d1d5db;
}

.hint {
    font-size: 0.8rem;
    color: #6b7280;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
    margin: 0 0.75rem;
}

.empty-state {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Sonuçlar */
.overall-summary {
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.overall-summary--good {
    background-color: #ecfdf3;
    border-color: #bbf7d0;
}

.overall-summary--warning {
    background-color: #fffbeb;
    border-color: #facc15;
}

.overall-summary--bad {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.chip {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card {
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.risk-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-low {
    background-color: #dcfce7;
    color: #166534;
}

.risk-medium {
    background-color: #fef9c3;
    color: #92400e;
}

.risk-high {
    background-color: #fee2e2;
    color: #b91c1c;
}

.card-body {
    font-size: 0.85rem;
    color: #4b5563;
}

.card-body p {
    margin: 0.15rem 0;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.tag {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
}

@media (min-width: 720px) {
    .app-header h1 {
        font-size: 1.9rem;
    }

    .input-options {
        flex-direction: row;
        align-items: flex-start;
    }

    .input-block {
        flex: 1;
    }

    .empty-state {
        font-size: 0.95rem;
    }
}

