/* Domain Checker Pro - Public Styles */

/* Main Domain Checker */
.dcp-domain-checker {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dcp-title {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: center;
}

/* Search Form */
.dcp-search-form {
    margin-bottom: 20px;
}

.dcp-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.dcp-domain-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dcp-domain-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dcp-search-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dcp-search-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6391);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.dcp-search-icon {
    font-size: 18px;
}

/* Quick TLDs */
.dcp-quick-tlds {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dcp-quick-label {
    color: #666;
    font-weight: 500;
}

.dcp-tld-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcp-tld-btn:hover {
    background: #e9ecef;
    border-color: #3498db;
    color: #3498db;
}

/* Advanced Options */
.dcp-advanced-options {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.dcp-advanced-options h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.dcp-tld-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dcp-tld-category h5 {
    margin: 0 0 10px 0;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dcp-tld-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.dcp-tld-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.dcp-tld-option:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.dcp-tld-option input[type="checkbox"] {
    margin: 0 0 4px 0;
}

.dcp-tld-option small {
    color: #666;
    font-size: 11px;
}

/* Toggle Advanced */
.dcp-toggle-advanced {
    text-align: center;
    margin: 20px 0;
}

.dcp-toggle-btn {
    background: none;
    border: 1px dashed #ccc;
    padding: 10px 20px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dcp-toggle-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

/* Loading */
.dcp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.dcp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.dcp-results {
    margin-top: 30px;
}

.dcp-results-title {
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.dcp-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.dcp-domain-result {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.dcp-domain-result.available {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f8fff9, #e8f5e8);
}

.dcp-domain-result.unavailable {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff8f8, #ffe8e8);
}

.dcp-domain-result.error {
    border-color: #f39c12;
    background: linear-gradient(135deg, #fffbf5, #fef2e6);
}

.dcp-domain-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dcp-domain-status {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.dcp-domain-result.available .dcp-domain-status {
    color: #27ae60;
}

.dcp-domain-result.unavailable .dcp-domain-status {
    color: #e74c3c;
}

.dcp-domain-result.error .dcp-domain-status {
    color: #f39c12;
}

.dcp-error-message {
    font-size: 12px;
    color: #d68910;
    margin-top: 8px;
    font-style: italic;
    background: rgba(243, 156, 18, 0.1);
    padding: 8px;
    border-radius: 4px;
}

.dcp-domain-price {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    margin: 10px 0;
}

.dcp-register-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.dcp-register-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-1px);
}

/* Widget Styles */
.dcp-widget {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.dcp-widget-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
}

.dcp-widget-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dcp-widget-body {
    padding: 20px;
}

.dcp-widget-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.dcp-widget-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dcp-widget-tld {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    min-width: 80px;
}

.dcp-widget-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.dcp-widget-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6391);
}

.dcp-widget-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.dcp-widget-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.dcp-widget-result {
    margin-top: 15px;
}

.dcp-widget-domain-result {
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dcp-widget-domain-result.available {
    background: #e8f5e8;
    border: 1px solid #27ae60;
}

.dcp-widget-domain-result.unavailable {
    background: #ffe8e8;
    border: 1px solid #e74c3c;
}

.dcp-widget-domain-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dcp-widget-status {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.dcp-widget-price {
    font-size: 14px;
    font-weight: 600;
    color: #3498db;
    margin: 8px 0;
}

.dcp-widget-register-btn {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.dcp-widget-suggestions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.dcp-widget-alt-tlds {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 8px;
}

.dcp-widget-alt-tlds button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
}

.dcp-widget-error {
    background: #ffe8e8;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.dcp-widget-footer {
    background: #f8f9fa;
    padding: 10px 15px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.dcp-widget-footer a {
    color: #3498db;
    text-decoration: none;
    font-size: 12px;
}

/* Buttons */
.dcp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.dcp-btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.dcp-btn-secondary {
    background: #6c757d;
    color: white;
}

.dcp-btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.dcp-btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dcp-input-group {
        flex-direction: column;
    }
    
    .dcp-quick-tlds {
        justify-content: center;
    }
    
    .dcp-tld-categories {
        grid-template-columns: 1fr;
    }
    
    .dcp-results-grid {
        grid-template-columns: 1fr;
    }
    
    .dcp-widget-input-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dcp-domain-checker {
        padding: 15px;
        margin: 10px 0;
    }
    
    .dcp-title {
        font-size: 20px;
    }
    
    .dcp-search-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}