/* Domain Scanner WordPress Plugin Styles */
/* Designed to work with default WordPress themes */

.domain-scanner-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Scanner Card */
.ds-scanner-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.ds-card-title {
    font-size: 1.8rem;
    color: #0066cc;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ds-card-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Form */
.ds-scan-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ds-input-group {
    flex: 1;
    min-width: 250px;
}

.ds-domain-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.ds-domain-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ds-scan-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ds-scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.ds-scan-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Example Domains */
.ds-example-domains {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.ds-example-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.ds-example-domain {
    padding: 0.4rem 0.9rem;
    background: #e6f2ff;
    color: #0066cc;
    border: 1px solid #0066cc;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-example-domain:hover {
    background: #0066cc;
    color: #ffffff;
}

/* Loading */
.ds-loading {
    text-align: center;
    padding: 3rem;
    display: none;
}

.ds-loading.active {
    display: block;
}

.ds-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e6f2ff;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: ds-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.ds-loading-text {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Results */
.ds-results {
    display: none;
}

.ds-results.active {
    display: block;
    animation: ds-fadeIn 0.5s ease;
}

@keyframes ds-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Health Score */
.ds-health-score {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.ds-score-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    position: relative;
}

.ds-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: #003d7a;
}

.ds-score-label {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.ds-status-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.ds-status-excellent {
    background: #d4edda;
    color: #155724;
}

.ds-status-good {
    background: #d1ecf1;
    color: #0c5460;
}

.ds-status-fair {
    background: #fff3cd;
    color: #856404;
}

.ds-status-poor {
    background: #f8d7da;
    color: #721c24;
}

/* Summary Grid */
.ds-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ds-summary-box {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.ds-summary-box.passed {
    background: #d4edda;
    border-color: #28a745;
}

.ds-summary-box.warnings {
    background: #fff3cd;
    border-color: #ffc107;
}

.ds-summary-box.issues {
    background: #f8d7da;
    border-color: #dc3545;
}

.ds-summary-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-summary-box .count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Record Sections */
.ds-record-section {
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.ds-record-header {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ds-record-header:hover {
    background: #e9ecef;
}

.ds-record-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #003d7a;
}

.ds-record-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ds-status-icon {
    font-size: 1.5rem;
}

.ds-status-icon.found {
    color: #28a745;
}

.ds-status-icon.not-found {
    color: #dc3545;
}

.ds-status-icon.warning {
    color: #ffc107;
}

.ds-record-content {
    padding: 1.5rem;
    background: #ffffff;
}

.ds-record-content.collapsed {
    display: none;
}

.ds-record-data {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.ds-record-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-record-list li {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-record-list li:last-child {
    border-bottom: none;
}

.ds-priority-badge {
    background: #0066cc;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Issues and Warnings */
.ds-issues-list,
.ds-warnings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-issues-list li,
.ds-warnings-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ds-issues-list li {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.ds-warnings-list li {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.ds-issue-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Details Table */
.ds-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.ds-details-table th,
.ds-details-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.ds-details-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #003d7a;
}

.ds-details-table tr:last-child td {
    border-bottom: none;
}

/* Recommendations */
.ds-recommendations {
    background: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.ds-recommendations h3 {
    color: #003d7a;
    margin-bottom: 1rem;
}

.ds-recommendations ul {
    list-style: none;
    padding: 0;
}

.ds-recommendations li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    .ds-scan-form {
        flex-direction: column;
    }
    
    .ds-scan-button {
        width: 100%;
    }
    
    .ds-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .ds-scanner-card {
        padding: 1.5rem;
    }
}

/* Hidden utility */
.ds-hidden {
    display: none !important;
}