/* ══════════════════════════════════════════
   Certificate Checker — Public Frontend
   Sertifika Doğrulama Sayfası
══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

.cc-page {
    max-width: 580px;
    margin: 2.5rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #111827;
}

/* ── HEADER ── */
.cc-header {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
}

.cc-logo {
    max-height: 72px;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.cc-logo-placeholder {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.cc-header-text { line-height: 1.25; }

.cc-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.cc-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin: 0;
}

/* ── CARD ── */
.cc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.875rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cc-card-intro {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* ── FORM FIELDS ── */
.cc-fields {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    margin-bottom: 1.5rem;
}

.cc-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.cc-field input {
    width: 100%;
    padding: 0.6875rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.cc-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.cc-field input::placeholder { color: #94a3b8; font-size: 0.875rem; }

/* ── ERROR ── */
.cc-alert {
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.cc-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ── BUTTON ── */
.cc-btn-dogrula {
    width: 100%;
    padding: 0.8125rem 1.5rem;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.015em;
    transition: background 0.15s, transform 0.1s;
    font-family: inherit;
}
.cc-btn-dogrula:hover    { background: #1e40af; }
.cc-btn-dogrula:active   { transform: scale(0.99); }
.cc-btn-dogrula:disabled { background: #93c5fd; cursor: not-allowed; }

/* ── RESULT CARD ── */
.cc-result-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.375rem;
}

.cc-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #dcfce7;
    color: #14532d;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cc-verified-badge svg { flex-shrink: 0; }

.cc-btn-back {
    background: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, border-color 0.12s;
}
.cc-btn-back:hover { background: #f8fafc; border-color: #cbd5e1; }

/* ── RESULT GRID ── */
.cc-result-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.cc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    gap: 1rem;
}

.cc-result-row:last-child { border-bottom: none; }
.cc-result-row:nth-child(odd)  { background: #fafafa; }
.cc-result-row:nth-child(even) { background: #fff; }

.cc-result-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.8125rem;
    flex-shrink: 0;
    padding-top: 1px;
}

.cc-result-value {
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    word-break: break-word;
}

.cc-mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 5px;
    color: #1e3a8a;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .cc-page  { margin: 1.25rem 0.75rem; }
    .cc-card  { padding: 1.25rem; }
    .cc-title { font-size: 1.125rem; }
    .cc-result-row { flex-direction: column; gap: 0.25rem; }
    .cc-result-value { text-align: left; }
}
