/* ==========================================================================
   Namecheap Domain Integration — Frontend Styles
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Hero / Search bar
--------------------------------------------------------------------------- */
.nc-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.nc-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

.nc-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.nc-search-bar {
    max-width: 680px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nc-search-bar .form-control {
    border: none;
    border-right: 1px solid #dee2e6;
    font-size: 1.1rem;
    padding: 14px 20px;
    outline: none;
    box-shadow: none !important;
}

.nc-search-bar .btn-primary {
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 14px 28px;
    border: none;
}

.nc-tld-badge {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px 10px;
    transition: background 0.15s;
}

.nc-tld-badge:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ---------------------------------------------------------------------------
   Results section
--------------------------------------------------------------------------- */
.nc-results-title {
    font-size: 1.25rem;
    color: #333;
}

.nc-domain-card {
    background: #fff;
    transition: box-shadow 0.15s, transform 0.1s;
}

.nc-domain-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.nc-domain-card.available {
    border-left: 4px solid #28a745 !important;
}

.nc-domain-card.taken {
    border-left: 4px solid #dee2e6 !important;
    opacity: 0.72;
}

.nc-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nc-status-dot.available {
    background: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.nc-status-dot.taken {
    background: #adb5bd;
}

.nc-domain-name {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.nc-price-amount {
    font-size: 1.3rem;
}

.nc-register-btn {
    min-width: 100px;
    font-weight: 600;
    border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   Feature cards (empty state)
--------------------------------------------------------------------------- */
.nc-feature-card {
    transition: box-shadow 0.15s;
}

.nc-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------------------------------------------------------------------------
   Skeleton loading animation
--------------------------------------------------------------------------- */
.nc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ncSkeletonShimmer 1.4s infinite;
    border-radius: 4px;
    height: 64px;
    margin-bottom: 12px;
}

@keyframes ncSkeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Loading spinner overlay */
.nc-loading-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nc-results-wrapper {
    position: relative;
    min-height: 80px;
}

.nc-results-wrapper.loading .nc-loading-overlay {
    display: flex;
}

/* ---------------------------------------------------------------------------
   Portal list cards
--------------------------------------------------------------------------- */
.nc-portal-card {
    transition: box-shadow 0.15s, transform 0.1s;
    text-decoration: none;
    color: inherit;
}

.nc-portal-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.nc-domain-icon {
    font-size: 1rem;
}

/* ---------------------------------------------------------------------------
   DNS table
--------------------------------------------------------------------------- */
#dnsTable td {
    vertical-align: middle;
    padding: 8px 6px;
}

#dnsTable .form-control-sm,
#dnsTable .form-select-sm {
    font-size: 0.82rem;
    padding: 4px 8px;
}

/* Responsive tweak: hide MX priority on small screens unless MX type */
@media (max-width: 576px) {
    .nc-hero-title { font-size: 1.6rem; }
    .nc-search-bar .form-control { font-size: 0.95rem; }
    .nc-domain-name { font-size: 0.95rem; }
}
