/* Typosquat Scanner - matches search-basic layout */

:root.tools-typosquat .results-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats bar */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 10px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

.stat-sep {
    margin: 0 15px;
    opacity: .5;
}

.stat-highlight {
    color: #fff;
    font-weight: 700;
}

/* Filters bar */
.filters-bar {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    z-index: 100;
}

.filters-sort-bar {
    background: transparent;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: var(--gray, #6b7280);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
}

.filter-btn {
    padding: 5px 14px;
    background: transparent;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-size-sm, 0.875rem);
    cursor: pointer;
    transition: .2s;
}

.filter-btn.active {
    background: var(--gradient-main, var(--primary));
    color: #fff;
}

.filter-btn:hover:not(.active) {
    border-color: var(--primary);
}

/* Control buttons */
.control-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reset-filters-btn,
.export-btn {
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.reset-filters-btn {
    background: var(--accent, #f59e0b);
}

.export-btn {
    background: var(--accent-special, #8b5cf6);
}

.reset-filters-btn:hover,
.export-btn:hover {
    background: var(--accent-hover, #d97706);
}

.export-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Filter text input */
.typosquat-filter {
    padding: 5px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--text-primary, #1f2937);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 200px;
}

.typosquat-filter:focus {
    border-color: var(--primary);
}

/* Card list */
.dk-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dk-list-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.dk-list-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dk-list-domain {
    flex: 0 0 260px;
    font-weight: 600;
    font-size: var(--font-size-lg, 0.95rem);
    color: var(--dark, var(--text-primary));
    word-break: break-all;
    line-height: 1.4;
}

.dk-list-content {
    flex: 1;
    display: flex;
    gap: 30px;
    padding: 0 10px;
    font-weight: 500;
    color: var(--gray, #6b7280);
    font-size: var(--font-size-base, 0.9rem);
    align-items: center;
    justify-content: center;
}

/* Content columns: fixed-width blocks, same order every row (search-new pattern) */
.dk-list-tld {
    display: inline-block;
    width: 60px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.dk-list-tld-count {
    display: inline-block;
    width: 100px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Type badge */
.type-badge {
    display: inline-block;
    width: 130px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 0;
    border-radius: 4px;
    color: var(--text-secondary, #6b7280);
    background: var(--bg-light, #f3f4f6);
}

/* Status badges */
.status-badge {
    display: inline-block;
    width: 90px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 0;
    border-radius: 4px;
}

.status-badge.registered {
    color: #991b1b;
    background: #fee2e2;
}

.status-badge.available {
    color: #065f46;
    background: #d1fae5;
}

.status-badge.expired {
    color: #92400e;
    background: #fef3c7;
}

.status-badge.checking {
    color: #6b7280;
    background: #f3f4f6;
}

.dk-list-actions {
    flex: 0 0 210px;
    display: flex;
    gap: 8px;
    font-weight: 600;
    justify-content: flex-end;
    font-size: var(--font-size-lg, 0.95rem);
}

/* Lookup dropdown (same as search-basic) */
.lookup-dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
    z-index: 1;
}

.lookup-dropdown.dropdown-active {
    z-index: 10000;
}

.btn-lookup {
    background: var(--global-btn-dropdown, #e5e7eb);
    color: #374151;
    border: none;
    border-radius: 4px;
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
    text-align: center;
    position: relative;
    line-height: 1.5;
}

.btn-lookup::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.btn-lookup:hover {
    background: #d1d5db;
    color: #1f2937;
}

.btn-action {
    background: var(--gradient-main, var(--primary));
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    flex: 1;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
    text-align: center;
    line-height: 1.5;
}

.btn-action.new {
    background: linear-gradient(135deg, #FF6B35 0%, #FF9558 100%);
    white-space: nowrap;
}

.btn-action:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    z-index: 10001;
    display: none;
    min-width: 140px;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.15s ease-out;
    z-index: 10001;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
    color: var(--primary);
}

/* Load more */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: var(--gradient-main, var(--primary));
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-main, var(--primary));
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: .3s;
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid var(--border-light, #e5e7eb);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.loading-step {
    font-size: var(--font-size-base, 0.95rem);
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.loading-step.active {
    opacity: 1;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}

.loading-step.done {
    opacity: 0.6;
    color: #16a34a;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-primary, #1f2937);
    font-size: 24px;
    font-weight: 600;
}

/* Content section (from search-basic) */
.content-section { padding: 40px 20px; background: #fff; }
.content-container { max-width: 1200px; margin: 0 auto; }
.content-section h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary, #1f2937); margin-bottom: 20px; }
.content-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary, #1f2937); margin: 24px 0 8px; }
.content-section p { color: #6b7280; line-height: 1.8; margin-bottom: 14px; font-size: 1rem; }
.content-section p strong { color: var(--text-primary, #1f2937); }
.content-section a { color: var(--primary); text-decoration: none; font-weight: 600; }
.content-section a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Guest limit notice */
.guest-limit-notice {
    text-align: center;
    padding: 16px;
    margin-top: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: var(--font-size-sm, 0.875rem);
}

.guest-limit-notice a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: underline;
}

/* Responsive - progressive column hiding (matches search-new pattern) */

@media (max-width: 1200px) {
    .dk-list-tld {
        display: none !important;
    }
}

@media (max-width: 950px) {
    .type-badge {
        display: none !important;
    }

    .filters-bar {
        gap: 15px;
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .filters-sort-bar {
        padding: 8px 15px;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .filter-group {
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .dk-list-tld-count {
        display: none !important;
    }

    .dk-list-domain {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dk-list-card {
        padding: 10px;
    }

    .dk-list-domain {
        flex: 0 0 150px;
        font-size: 14px;
    }

    .dk-list-actions {
        flex: 1;
        max-width: 180px;
    }

    .btn-lookup,
    .btn-action {
        font-size: 11px;
        padding: 6px 8px;
    }

    .dropdown-menu {
        min-width: 120px;
    }

    .dropdown-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    .typosquat-filter {
        width: 150px;
    }
}

@media (max-width: 600px) {
    .filters-sort-bar {
        display: none !important;
    }
}

@media (max-width: 500px) {
    .status-badge {
        display: none !important;
    }

    .dk-list-card {
        padding: 8px;
        margin-bottom: 6px;
    }

    .dk-list-domain {
        flex: 1;
        font-size: 13px;
    }

    .dk-list-actions {
        flex: 0 0 150px;
        gap: 4px;
    }

    .dk-list-actions .btn-lookup,
    .dk-list-actions .btn-action {
        font-size: 11px;
        padding: 5px 8px;
    }
}
