/**
 * Domain Inline Results — Sadece panel container + cart bar + toast.
 * Kart/badge/buton stilleri domain-checker-modern.css'ten gelir (dc-* class'leri).
 */

/* === Panel Container === */

.dh-result-panel {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0 32px;
    display: none;
    animation: dh-slide-down 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dh-result-panel.is-active { display: block; }

@keyframes dh-slide-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dh-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.dh-result-title {
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.dh-result-title strong { color: #0f172a; font-weight: 700; }
.dh-result-close {
    background: none;
    border: 1px solid #e5e7eb;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.dh-result-close:hover { background: #fff; color: #ef4444; border-color: #fca5a5; }

/* === Loading State === */

.dh-loading {
    background: #fff;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.dh-loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 3px solid #e5e7eb;
    border-top-color: #f97316;
    border-radius: 50%;
    animation: dh-spin 0.8s linear infinite;
}
@keyframes dh-spin { to { transform: rotate(360deg); } }
.dh-loading-text { font-size: 15px; color: #1f2937; font-weight: 600; }
.dh-loading-text strong { color: #f97316; }
.dh-loading-sub { font-size: 13px; color: #6b7280; margin-top: 4px; }

/* === Error State === */

.dh-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
}
.dh-error strong { display: block; margin-bottom: 4px; }

/* === Show More button === */

.dh-show-more { margin-top: 14px; text-align: center; }
.dh-show-more button {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #475569;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dh-show-more button:hover { border-color: #f97316; color: #f97316; }

/* === Sticky Cart Bar === */

.dh-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #fff;
    padding: 14px 20px;
    z-index: 9999;
    display: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.dh-cart-bar.is-visible { display: block; transform: translateY(0); }
.dh-cart-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dh-cart-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}
.dh-cart-bar-info i { color: #4ade80; font-size: 18px; }
.dh-cart-bar-count { color: #fbbf24; font-weight: 800; }
.dh-cart-bar-actions { display: flex; gap: 10px; }
.dh-cart-bar-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.dh-cart-bar-btn.primary { background: #f97316; color: #fff; }
.dh-cart-bar-btn.primary:hover { background: #ea580c; color: #fff; text-decoration: none; }
.dh-cart-bar-btn.ghost {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #334155;
}
.dh-cart-bar-btn.ghost:hover { color: #fff; border-color: #64748b; }

/* === Toast === */

.dh-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0f172a;
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    animation: dh-toast-in 0.3s ease;
}
.dh-toast.is-visible { display: flex; }
.dh-toast.is-error { background: #991b1b; }
.dh-toast i { font-size: 18px; }
.dh-toast.is-success i { color: #4ade80; }
.dh-toast.is-error i { color: #fca5a5; }

@keyframes dh-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* === Transfer Countdown (domain-transfer sayfası özel) === */

.dh-tx-countdown {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0 16px;
    text-align: center;
}
.dh-tx-bar {
    height: 6px;
    background: #ffedd5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.dh-tx-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 3px;
    transition: width 3s linear;
}
.dh-tx-text { font-size: 13px; color: #7c2d12; font-weight: 600; }
.dh-tx-text strong { color: #c2410c; font-size: 16px; }

.dh-btn-cancel {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #64748b;
    padding: 0 16px;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dh-btn-cancel:hover { border-color: #ef4444; color: #ef4444; }

/* Transfer success özet kart */
.dh-tx-success {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 20px 24px;
}
.dh-tx-success-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.dh-tx-success-title { font-size: 15px; color: #14532d; font-weight: 700; margin-bottom: 4px; }
.dh-tx-success-sub { font-size: 13px; color: #166534; }
.dh-tx-success-sub a { color: #15803d; font-weight: 700; }

/* === Cart Bar Mobile === */

@media (max-width: 768px) {
    .dh-cart-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
    .dh-cart-bar-actions { justify-content: center; }
}
