/* dns-checker.css - Styles for the DNS Checker Tool */

.dns-checker-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Input Card */
.input-card {
    margin-bottom: 2rem;
}

.url-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.url-input-group input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dark-theme .url-input-group input {
    background: var(--gray-800);
}

.url-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.url-input-group input::placeholder {
    color: var(--text-light);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-examples {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-examples span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.example-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-btn:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: var(--primary-color);
}

/* Rate Limit Notice */
.rate-limit-notice {
    margin-top: 1rem;
    padding: 10px 16px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
    border-radius: 8px;
    color: #d35400;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-theme .rate-limit-notice {
    color: #f39c12;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

/* Error State */
.error-state {
    text-align: center;
    padding: 3rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state p {
    color: #e74c3c;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.3s ease;
}

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

/* Summary Card */
.summary-card {
    margin-bottom: 1.5rem;
}

.summary-card .card-header h2 {
    font-size: 1.1rem;
}

.summary-card .card-header h2 span {
    color: var(--primary-color);
    font-family: monospace;
}

.check-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: var(--gray-100);
    border-radius: 10px;
    text-align: center;
}

.dark-theme .summary-item {
    background: var(--gray-800);
}

.summary-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.summary-value.success {
    color: #2ecc71;
}

.summary-value.warning {
    color: #f39c12;
}

.summary-value.error {
    color: #e74c3c;
}

/* Records Card */
.records-card {
    margin-bottom: 1.5rem;
}

.records-card .card-header {
    padding: 0;
    border-bottom: none;
}

.record-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.record-tab {
    flex: 1;
    min-width: 70px;
    padding: 16px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.record-tab:hover {
    color: var(--text-color);
    background: var(--gray-100);
}

.dark-theme .record-tab:hover {
    background: var(--gray-800);
}

.record-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.records-content {
    padding: 1rem 0;
}

/* Record Items */
.record-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.record-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dark-theme .record-item {
    background: var(--gray-800);
}

.record-item:hover {
    transform: translateX(4px);
}

.record-type-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    border-radius: 6px;
    flex-shrink: 0;
}

.record-type-badge.a { background: #3498db; }
.record-type-badge.aaaa { background: #9b59b6; }
.record-type-badge.mx { background: #2ecc71; }
.record-type-badge.txt { background: #e67e22; }
.record-type-badge.ns { background: #1abc9c; }
.record-type-badge.cname { background: #e74c3c; }
.record-type-badge.soa { background: #34495e; }

.record-data {
    flex: 1;
    min-width: 0;
}

.record-value {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    word-break: break-all;
}

.record-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.record-ttl {
    display: flex;
    align-items: center;
    gap: 4px;
}

.record-priority {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2ecc71;
}

.no-records {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.no-records-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Analysis Card */
.analysis-card {
    margin-bottom: 1.5rem;
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
}

.analysis-item.success {
    background: rgba(46, 204, 113, 0.1);
}

.analysis-item.warning {
    background: rgba(241, 196, 15, 0.1);
}

.analysis-item.error {
    background: rgba(231, 76, 60, 0.1);
}

.analysis-item.info {
    background: rgba(52, 152, 219, 0.1);
}

.analysis-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.analysis-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-color);
}

.analysis-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Info Cards */
.info-card {
    margin-bottom: 1.5rem;
}

.content-section {
    line-height: 1.8;
}

.content-section p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section strong {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 10px;
}

.dark-theme .info-item {
    background: var(--gray-800);
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item-full {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item-full:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item-full h4 {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.faq-item-full p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .url-input-group {
        flex-direction: column;
    }

    .btn-primary {
        justify-content: center;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .record-tabs {
        padding: 0 1rem;
    }

    .record-tab {
        min-width: 60px;
        padding: 12px 8px;
        font-size: 0.8rem;
    }

    .record-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .record-meta {
        flex-wrap: wrap;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .summary-item {
        padding: 1rem;
    }
}

