/* ==========================================================================
   UAT Preview Shell — SEO + UX katmanı, anonim kullanıcılara gösterilir
   v1.0 · 2026-04-18
   ========================================================================== */

/* Preview aktifken normal sayfa içeriğini gizle (topbar + bottom-nav kalır) */
body.uat-preview-mode > *:not(.uat-topbar):not(.uat-bottom-nav):not(#uat-preview-shell):not(#uat-version-badge):not(.uat-share-fab):not(.uat-bn-backdrop):not(.uat-bn-drawer):not(.uat-cat-popup):not(script):not(noscript):not(style):not(#toast) {
    display: none !important;
}

/* Preview shell ana kapsayıcı — topbar altında nefes alacak alan */
#uat-preview-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 92px 16px 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e6edf3;
    line-height: 1.55;
    opacity: 0;
    animation: upsFadeIn 0.5s ease forwards;
}

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

/* ==========================================================================
   HERO — gerçek, net, bot okur, insan görür
   ========================================================================== */
.ups-hero {
    background: linear-gradient(135deg, rgba(210, 153, 34, 0.08) 0%, rgba(22, 27, 34, 0) 70%);
    border: 1px solid #30363d;
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.ups-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #d29922 50%, transparent);
}
.ups-hero-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8b949e;
    margin-bottom: 6px;
}
.ups-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: #e6edf3;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.ups-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.ups-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #c9d1d9;
    font-weight: 500;
}
.ups-badge.ghn {
    border-color: #f0883e;
    color: #f0883e;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ups-badge.breed-a { border-color: #a371f7; color: #a371f7; }
.ups-badge.breed-i { border-color: #58a6ff; color: #58a6ff; }

.ups-hero-lineage {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.95rem;
    color: #c9d1d9;
    padding-top: 14px;
    border-top: 1px solid #21262d;
}
.ups-hero-lineage .ups-parent {
    color: #e6edf3;
    font-weight: 600;
}
.ups-hero-lineage .ups-parent-label {
    color: #8b949e;
    font-weight: 400;
    font-size: 0.82rem;
}
.ups-hero-lineage .ups-sep {
    color: #484f58;
    margin: 0 2px;
}

.ups-hero-caption {
    font-size: 0.88rem;
    color: #8b949e;
    margin-top: 10px;
}

/* ==========================================================================
   SLIDER — bu sayfada seni bekleyen bölümler
   ========================================================================== */
.ups-slider-wrap {
    margin: 32px 0;
}
.ups-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding: 0 4px;
}
.ups-slider-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
}
.ups-slider-title small {
    color: #8b949e;
    font-weight: 400;
    margin-left: 8px;
    font-size: 0.82rem;
}
.ups-slider-nav {
    display: flex;
    gap: 6px;
}
.ups-slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background: #161b22;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ups-slider-btn:hover {
    border-color: #d29922;
    color: #d29922;
}
.ups-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ups-slider {
    overflow: hidden;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}
.ups-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.ups-slide {
    flex: 0 0 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

/* macOS pencere chrome estetiği */
.ups-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.ups-card-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(180deg, #1c2128 0%, #161b22 100%);
    border-bottom: 1px solid #21262d;
}
.ups-card-dots {
    display: flex;
    gap: 7px;
}
.ups-card-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}
.ups-card-dot.red { background: #ff5f57; }
.ups-card-dot.yellow { background: #febc2e; }
.ups-card-dot.green { background: #28c840; }

.ups-card-tab {
    font-size: 0.82rem;
    color: #8b949e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ups-card-tab-icon {
    font-size: 0.9rem;
}
.ups-card-lock {
    font-size: 0.75rem;
    color: #d29922;
}

.ups-card-body {
    padding: 18px;
    min-height: 280px;
    position: relative;
}

/* Dot indicators */
.ups-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.ups-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30363d;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.ups-dot.active {
    background: #d29922;
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   SLIDE TİPLERİ — her biri gerçek HTML, Google okur
   ========================================================================== */

/* Tablo tipi (son koşular, kardeşler) */
.ups-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.ups-table thead {
    background: #0d1117;
}
.ups-table th {
    text-align: left;
    padding: 10px 12px;
    color: #8b949e;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #21262d;
}
.ups-table td {
    padding: 12px;
    color: #c9d1d9;
    border-bottom: 1px solid #21262d;
}
.ups-table tr:last-child td { border-bottom: none; }
.ups-table tr.ups-blurred td {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.ups-table-footer {
    padding: 14px 12px 4px;
    color: #8b949e;
    font-size: 0.83rem;
    text-align: center;
    border-top: 1px dashed #30363d;
    margin-top: 6px;
}
.ups-table-footer strong {
    color: #d29922;
    font-weight: 600;
}

/* Pedigri ağaç görseli — SVG + hücreler */
.ups-pedigree {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}
.ups-pedigree-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-around;
}
.ups-pedigree-cell {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 10px 12px;
    color: #c9d1d9;
    font-weight: 500;
    position: relative;
}
.ups-pedigree-cell.sire {
    border-left: 3px solid #58a6ff;
}
.ups-pedigree-cell.dam {
    border-left: 3px solid #f85149;
}
.ups-pedigree-cell.gen3 {
    filter: blur(3px);
    user-select: none;
}
.ups-pedigree-cell-label {
    font-size: 0.7rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}

/* Stats grid (kariyer özeti) */
.ups-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.ups-stat {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
}
.ups-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d29922;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}
.ups-stat-value.blurred {
    filter: blur(5px);
    color: #c9d1d9;
}
.ups-stat-label {
    font-size: 0.72rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Liste tipi (kardeşler, yorumlar) */
.ups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ups-list-item {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ups-list-item.blurred {
    filter: blur(4px);
    user-select: none;
}
.ups-list-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d29922, #8b6914);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.ups-list-item-body {
    flex: 1;
    min-width: 0;
}
.ups-list-item-title {
    font-weight: 600;
    color: #e6edf3;
    font-size: 0.92rem;
    margin-bottom: 2px;
}
.ups-list-item-meta {
    font-size: 0.8rem;
    color: #8b949e;
}

/* ==========================================================================
   CTA — inline login formu + alternatif linkler
   ========================================================================== */
.ups-cta {
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border: 1px solid #d29922;
    border-radius: 14px;
    padding: 28px 24px;
    margin-top: 36px;
    position: relative;
    overflow: hidden;
}
.ups-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(210, 153, 34, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ups-cta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #8b949e;
    position: relative;
}
.ups-cta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ups-cta-stats strong {
    color: #d29922;
    font-weight: 600;
}

.ups-cta-headline {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    position: relative;
}
.ups-cta-sub {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 18px;
    position: relative;
}

.ups-login-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    position: relative;
}
.ups-login-form input {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 11px 14px;
    color: #e6edf3;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.ups-login-form input:focus {
    outline: none;
    border-color: #d29922;
}
.ups-login-form input::placeholder {
    color: #6e7681;
}
.ups-login-form button {
    background: linear-gradient(135deg, #d29922 0%, #b8800e 100%);
    color: #0d1117;
    border: none;
    border-radius: 8px;
    padding: 11px 22px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.ups-login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 153, 34, 0.3);
}
.ups-login-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ups-cta-alt {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #8b949e;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    position: relative;
}
.ups-cta-alt a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 500;
}
.ups-cta-alt a:hover { text-decoration: underline; }

.ups-login-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 6px;
    color: #f85149;
    font-size: 0.85rem;
    display: none;
    position: relative;
}
.ups-login-error.show { display: block; }

/* ==========================================================================
   ALT BÖLÜM — ilgili sayfalara çapraz link (internal linking SEO için kritik)
   ========================================================================== */
.ups-related {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #21262d;
}
.ups-related-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b949e;
    margin-bottom: 14px;
    font-weight: 600;
}
.ups-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ups-related-link {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 8px 14px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ups-related-link:hover {
    border-color: #d29922;
    color: #d29922;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.ups-skeleton {
    background: linear-gradient(90deg, #161b22 0%, #1c2128 50%, #161b22 100%);
    background-size: 200% 100%;
    animation: upsShimmer 1.6s infinite;
    border-radius: 6px;
}
@keyframes upsShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   MOBİL UYUM
   ========================================================================== */
@media (max-width: 640px) {
    #uat-preview-shell { padding: 76px 12px 90px; }
    .ups-hero { padding: 20px 18px 18px; }
    .ups-hero h1 { font-size: 1.55rem; }
    .ups-card-body { padding: 14px; min-height: 240px; }
    .ups-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ups-pedigree { font-size: 0.78rem; gap: 6px; }
    .ups-pedigree-cell { padding: 8px 10px; }
    .ups-login-form {
        grid-template-columns: 1fr;
    }
    .ups-login-form button { padding: 12px; }
    .ups-cta { padding: 22px 18px; }
    .ups-cta-headline { font-size: 1.15rem; }
}


/* =============================================================================
   Dark theme enforcement - asil sayfanin light theme bg/color'ini override et
   ============================================================================= */
body.uat-preview-mode {
    background: #0d1117 !important;
    color: #e6edf3 !important;
    min-height: 100vh;
}


/* =============================================================================
   Clickable pedigree wrapper — tiklaninca /pedigree.html?q=<name>'e gider
   ============================================================================= */
a.ups-pedigree {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: outline 0.15s ease;
}
a.ups-pedigree:hover {
    outline: 2px solid rgba(210, 153, 34, 0.35);
    outline-offset: 6px;
    border-radius: 4px;
}
