/* Domain Checker Plugin - UI/UX Pro Max */

/* Container */
.dc-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
}

/* Search Section */
.dc-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.dc-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.dc-input {
    flex: 1;
    padding: 16px 24px;
    font-size: 17px;
    border: none;
    border-radius: 12px;
    outline: none;
    background: transparent;
    color: #1a1a2e;
    font-weight: 500;
}

.dc-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.dc-btn-search {
    /* padding: 16px 32px; */
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.dc-btn-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.dc-btn-search:hover::before {
    left: 100%;
}

.dc-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.dc-btn-search:active {
    transform: translateY(0);
}

.dc-btn-search:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dc-hint {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Results Section */
.dc-results-section {
    margin-top: 30px;
}

.dc-results-section h3 {
    margin-bottom: 24px;
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dc-results-section h3::before {
    content: '📊';
}

.dc-results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Domain Cards - Compact */
.dc-domain-card {
    border: none;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.dc-domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
}

.dc-domain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dc-domain-card.available::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.dc-domain-card.available {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.dc-domain-card.taken::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.dc-domain-card.taken {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.dc-domain-card.loading::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    animation: dc-loading-bar 1.5s ease-in-out infinite;
}

@keyframes dc-loading-bar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.dc-domain-card.loading {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.dc-domain-name {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a2e;
    word-break: break-all;
}

.dc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dc-status-badge.available {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
}

.dc-status-badge.taken {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
}

.dc-status-badge.checking {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
}

.dc-status-badge.error {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: #fff;
}

.dc-domain-info {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.dc-domain-info p {
    margin: 4px 0;
}

.dc-domain-actions {
    margin-top: 12px;
}

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.dc-btn-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.dc-btn-buy:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    transform: translateY(-1px);
}

.dc-btn-whois {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.dc-btn-whois:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    transform: translateY(-1px);
}

.dc-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dc-spin 0.8s linear infinite;
}

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

.hidden { display: none !important; }

.dc-error-section {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: none;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #dc2626;
    font-weight: 600;
}

/* Modal Styles */
.dc-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dc-modal-content {
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    width: 100% !important;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: dc-modalIn 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.dc-modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-right: 40px;
}

@keyframes dc-modalIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dc-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.2s;
}

.dc-close:hover {
    background: #e2e8f0;
    color: #1a1a2e;
}

.dc-whois-details {
    margin-top: 8px;
}

.dc-whois-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.dc-whois-label {
    font-weight: 600;
    min-width: 120px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
	padding-top: 3px;
}

.dc-whois-value {
    color: #1a1a2e;
    font-weight: 500;
    word-break: break-word;
    font-size: 14px;
}

.dc-whois-value ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dc-whois-value li {
    padding: 2px 0;
}

/* Responsive - Tablet 2 columns */
@media (max-width: 1024px) {
    .dc-results-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Responsive - Mobile 1 column */
@media (max-width: 768px) {
    .dc-search-section {
        padding: 20px 16px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .dc-search-box {
        flex-direction: column;
        padding: 6px;
        border-radius: 12px;
    }

    .dc-input {
        padding: 14px 16px !important;
        font-size: 16px;
        text-align: center;
    }

    .dc-btn-search {
        width: 100%;
        padding: 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .dc-hint {
        font-size: 12px;
    }

    .dc-results-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dc-results-section h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .dc-domain-card {
        padding: 16px;
        border-radius: 12px;
    }

    .dc-domain-name {
        font-size: 1em;
    }

    .dc-status-badge {
        font-size: 10px;
        padding: 5px 10px;
    }

    .dc-btn {
        padding: 12px;
        font-size: 12px;
    }

    .dc-modal {
        padding: 12px;
    }

    .dc-modal-content {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .dc-modal-content h3 {
        font-size: 18px;
    }

    .dc-whois-item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
    }

    .dc-whois-label {
        min-width: auto;
        font-size: 11px;
    }

    .dc-whois-value {
        font-size: 13px;
    }

    .dc-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}