/* WP Domain Checker - Style 1 Clean Design */
/* Unique CSS identifiers to avoid conflicts */
/* CSS Custom Properties for theme customization */

.wdc-style-1-clean {
    /* Default CSS custom properties - can be overridden per instance */
    --search-button-bg-color: rgb(107, 114, 128);
    --search-button-text-color: #ffffff;
    --search-button-border-color: rgb(107, 114, 128);
    --search-input-bg-color: #ffffff;
    --search-input-border-color: #d1d5db;
    --search-input-text-color: #374151;
    --purchase-button-bg-color: rgb(107, 114, 128);
    --purchase-button-text-color: #ffffff;
    --whois-button-bg-color: rgb(75, 85, 99);
    --whois-button-text-color: #ffffff;
    --skeleton-color: #e5e7eb;
    --result-item-bg-color: #f1f3f4;
    --domain-name-color: #374151;
    --status-available-color: #10b981;
    --status-taken-color: #6b7280;
    --price-text-color: #374151;
}

.wdc-style-1-clean * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: normal;
}

.wdc-style-1-clean {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 20px;
}

.wdc-style-1-clean-container {
    max-width: 600px;
    margin: 0 auto;
}

.wdc-style-1-clean-search-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--search-input-border-color);
    border-radius: 5px;
    background: var(--search-input-bg-color);
    padding: 4px;
    gap: 8px;
}

.wdc-style-1-clean-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--search-input-text-color);
    background: var(--search-input-bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wdc-style-1-clean-search-input::placeholder {
    color: var(--search-input-text-color);
    font-weight: 400;
    filter: opacity(0.4);
}

.wdc-style-1-clean-search-container input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--search-input-text-color);
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 0;
}

.wdc-style-1-clean-search-container input:focus {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--search-input-text-color);
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.wdc-style-1-clean-search-button, .wdc-style-1-clean-search-button:focus {
    background: var(--search-button-bg-color);
    color: var(--search-button-text-color);
    border: 1px solid var(--search-button-border-color);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.5px;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: normal;
    outline: none;
}


.wdc-style-1-clean-search-button:hover {
    filter: brightness(90%);
}

.wdc-style-1-clean-search-container button:hover {
    filter: brightness(90%);
    background: var(--search-button-bg-color);
    color: var(--search-button-text-color);
    border: 1px solid var(--search-button-border-color);
}

.wdc-style-1-clean-search-button:disabled {
    background: var(--search-button-bg-color);
    filter:contrast(0.9);
    cursor: not-allowed;
}

/* Loading skeleton styles */
.wdc-style-1-clean-skeleton-container {
    display: none;
}

.wdc-style-1-clean-skeleton-item {
    background: var(--skeleton-color);
    margin-bottom: 8px;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--skeleton-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wdc-style-1-clean-skeleton-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    filter: contrast(0.8);
}

.wdc-style-1-clean-skeleton-icon {
    width: 18px;
    height: 18px;
    background: var(--skeleton-color);
    border-radius: 50%;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

.wdc-style-1-clean-skeleton-text {
    height: 16px;
    background: var(--skeleton-color);
    border-radius: 4px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

.wdc-style-1-clean-skeleton-domain {
    width: 120px;
}

.wdc-style-1-clean-skeleton-status {
    width: 80px;
}

.wdc-style-1-clean-skeleton-button {
    width: 60px;
    height: 32px;
    background: var(--skeleton-color);
    border-radius: 6px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
    filter: contrast(0.8);
}

/* WHOIS specific skeleton loading */
.wdc-whois-skeleton-container {
    background-color: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

.wdc-whois-skeleton-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wdc-whois-skeleton-header {
    background-color: #f9fafb;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 0px;
}

.wdc-whois-skeleton-header-title {
    height: 16px;
    background: var(--skeleton-color);
    border-radius: 4px;
    width: 150px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

.wdc-whois-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px;
}

.wdc-whois-skeleton-grid-item {
    display: flex;
    flex-direction: column;
}

.wdc-whois-skeleton-label {
    height: 12px;
    background: var(--skeleton-color);
    border-radius: 4px;
    width: 80px;
    margin-bottom: 4px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

.wdc-whois-skeleton-value {
    height: 14px;
    background: var(--skeleton-color);
    border-radius: 4px;
    width: 120px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

.wdc-whois-skeleton-nameservers {
    padding: 16px;
}

.wdc-whois-skeleton-nameserver-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.wdc-whois-skeleton-nameserver-item:last-child {
    border-bottom: none;
}

.wdc-whois-skeleton-nameserver-value {
    height: 14px;
    background: var(--skeleton-color);
    border-radius: 4px;
    animation: wdc-style-1-clean-pulse 1.5s ease-in-out infinite;
}

@keyframes wdc-style-1-clean-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.wdc-style-1-clean-loading-text {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* Results container */
.wdc-style-1-clean-results-container {
    display: none;
}

.wdc-style-1-clean-results-container pre {
    padding: 10px;
    font-size: 14px;
}

.wdc-style-1-clean-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--result-item-bg-color);
    margin-bottom: 8px;
    padding: 12px 12px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    line-height: 35px;
}

.wdc-style-1-clean-result-item:hover {
    filter: contrast(0.9);
}

.wdc-style-1-clean-result-item.available {
    border-left-color: transparent;
}

.wdc-style-1-clean-result-item.taken {
    border-left-color: transparent;
}

.wdc-style-1-clean-result-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex: 1;
}

.wdc-style-1-clean-domain-name {
    font-weight: 600;
    color: var(--domain-name-color);
    margin-right: 8px;
}

.wdc-style-1-clean-status-text {
    color: #6b7280;
    font-size: 14px;
}

.wdc-style-1-clean-status-text.available {
    color: var(--status-available-color);
}

.wdc-style-1-clean-status-text.taken {
    color: var(--status-taken-color);
}

.wdc-style-1-clean-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wdc-style-1-clean-action-buttons .hide {
    display: none;
}

.wdc-style-1-clean-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--price-text-color);
    margin-right: 12px;
}

.wdc-style-1-clean-buy-button {
    background: var(--purchase-button-bg-color);
    color: var(--purchase-button-text-color);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wdc-style-1-clean-buy-button:hover {
    filter: brightness(90%);
    background: var(--purchase-button-bg-color);
    color: var(--purchase-button-text-color);
}

.wdc-style-1-clean-whois-button {
    background: var(--whois-button-bg-color);
    color: var(--whois-button-text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wdc-style-1-clean-whois-button:hover {
    filter: brightness(90%);
    background: var(--whois-button-bg-color);
    color: var(--whois-button-text-color);
}

.wdc-style-1-clean-whois-button:focus {
    background: var(--whois-button-bg-color);
    color: var(--whois-button-text-color);
    border: 1px solid var(--whois-button-bg-color);
    outline: none;
}

.wdc-style-1-clean-whois-button.hide {
    display: none;
}

/* Error messages */
.wdc-style-1-clean-error-message {
    background: var(--search-input-bg-color);
    border: 1px solid var(--search-input-border-color);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: var(--search-input-text-color);
    font-size: 14px;
    display: none;
}

.wdc-style-1-clean-error-message.show {
    display: block;
}

/* reCAPTCHA container */
.wdc-style-1-clean-recaptcha {
    margin: 20px 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .wdc-style-1-clean {
        padding: 20px 10px;
    }
    
    .wdc-style-1-clean-search-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .wdc-style-1-clean-search-input {
        width: 100%;
        border: none;
    }
    
    .wdc-style-1-clean-search-button {
        width: 100%;
        padding: 14px 20px;
    }
    
    .wdc-style-1-clean-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .wdc-style-1-clean-action-buttons {
        width: 100%;
        justify-content: space-between;
    }
}

.wdc-style-1-clean .wdc-icon-result {
    margin-right: 5px;
}

.wdc-style-1-clean .added_to_cart {
    font-size: 12px;
    text-decoration: none;
}

.wdc-style-1-clean-search-container:focus-within {
    border: 1px solid var(--search-input-border-color);
    /* outline: 1px solid var(--wdc-button-border-color); */
}

.wdc-style-1-clean-domain-name {
    font-size: 22px;
}

.wdc-style-1-clean-domain-name strong {
    font-weight: bolder;
}

.wdc-style-1-clean-form input, .wdc-style-1-clean-form input:focus {
    border: none;
    box-shadow: none;
}


.wdc-whois-container {
    background-color: #fff;
    border-radius: 8px;
    margin-top: 20px;
}

.wdc-whois-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.wdc-whois-section h3 {
    background-color: #f9fafb;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    margin-top: 0px;
}

.wdc-whois-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    padding: 10px 16px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-top: -1px;
}

.wdc-whois-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px;
}

.wdc-whois-grid.nested {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
}

.wdc-whois-grid-item {
    display: flex;
    flex-direction: column;
}

.wdc-whois-grid-item.full-width {
    grid-column: 1 / -1;
}

.nested .wdc-whois-grid-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.nested .wdc-whois-grid-item:last-child {
    border-bottom: none;
}


.wdc-whois-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.wdc-whois-value {
    font-size: 14px;
    color: #111827;
    word-break: break-all;
}

.wdc-whois-nameservers {
    padding: 16px;
}

.wdc-whois-nameserver-header,
.wdc-whois-nameserver-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.wdc-whois-nameserver-header .wdc-whois-label {
    font-weight: 600;
    color: #111827;
}

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