/* DNS Checker Specific Styles - Complete from original */

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DNS Checker Orange Theme Variables */
:root {
    --dns-success-color: #10b981;
    --dns-error-color: #ef4444;
    --dns-warning-color: #f59e0b;
    --dns-ready-color: #6b7280;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-content {
    margin: 2rem 0;
}

/* DNS Input Section */
.dns-input-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(247, 142, 67, 0.1);
}

.input-container {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.domain-input {
    flex: 2;
    min-width: 250px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.domain-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 142, 67, 0.1);
}

.record-type-select {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-type-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 142, 67, 0.1);
}

.check-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.check-button:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-color), #d86623);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 142, 67, 0.3);
}

.check-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.check-button .loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff30;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.check-button.loading .loading-spinner {
    display: inline-block;
}

.check-button.loading .btn-text {
    opacity: 0.7;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(247, 142, 67, 0.1);
}

#map {
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

/* Results Section */
.results-section {
    margin-top: 3rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
}

.legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.success { background-color: var(--dns-success-color); }
.legend-dot.error { background-color: var(--dns-error-color); }
.legend-dot.pending { background-color: var(--dns-warning-color); }
.legend-dot.ready { background-color: var(--dns-ready-color); }

/* Statistics */
.stats-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    min-width: 120px;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Server Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.server-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.server-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.server-card.success {
    border-left: 4px solid var(--dns-success-color);
}

.server-card.error {
    border-left: 4px solid var(--dns-error-color);
}

.server-card.pending {
    border-left: 4px solid var(--dns-warning-color);
}

.server-card.ready {
    border-left: 4px solid var(--dns-ready-color);
}

/* Server Items (individual server results) */
.server-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: white;
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
    transition: all 0.3s ease;
}

.server-item:nth-child(1) { animation-delay: 0.1s; }
.server-item:nth-child(2) { animation-delay: 0.2s; }
.server-item:nth-child(3) { animation-delay: 0.3s; }
.server-item:nth-child(4) { animation-delay: 0.4s; }
.server-item:nth-child(5) { animation-delay: 0.5s; }
.server-item:nth-child(6) { animation-delay: 0.6s; }
.server-item:nth-child(7) { animation-delay: 0.7s; }
.server-item:nth-child(8) { animation-delay: 0.8s; }
.server-item:nth-child(9) { animation-delay: 0.9s; }
.server-item:nth-child(10) { animation-delay: 1.0s; }
.server-item:nth-child(11) { animation-delay: 1.1s; }
.server-item:nth-child(12) { animation-delay: 1.2s; }

.server-item.ready {
    background: rgba(107, 114, 128, 0.05);
    border-color: rgba(107, 114, 128, 0.2);
}

.server-item.success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.server-item.error {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.server-item.pending {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
}

.server-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Server Item Internal Elements */
.server-item .server-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.server-item .server-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.server-item .server-location {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.server-item .server-status {
    text-align: right;
    font-weight: 500;
    font-size: 0.875rem;
    min-width: 80px;
}

.server-item .server-status.ready {
    color: var(--dns-ready-color);
}

.server-item .server-status.success {
    color: var(--dns-success-color);
}

.server-item .server-status.error {
    color: var(--dns-error-color);
}

.server-item .server-status.pending {
    color: var(--dns-warning-color);
}

.server-item .server-status small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.125rem;
}

.server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.server-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.server-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.server-details p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.server-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-status.success {
    color: var(--dns-success-color);
}

.server-status.error {
    color: var(--dns-error-color);
}

.server-status.pending {
    color: var(--dns-warning-color);
}

.server-status.ready {
    color: var(--dns-ready-color);
}

.server-result {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #374151;
    border: 1px solid #e5e7eb;
    word-break: break-all;
    white-space: pre-wrap;
}

.server-result.empty {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
}

.response-time {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.response-time::before {
    content: "⚡";
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dns-warning-color);
    animation: pulse 1.5s infinite;
}

/* Map and Results Layout */
.map-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.map-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(247, 142, 67, 0.1);
}

.results-panel {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(247, 142, 67, 0.1);
    max-height: 500px;
    overflow-y: auto;
}

.results-panel h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* SEO Content Section */
.seo-content-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(247, 142, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.seo-content h2 {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    font-family: var(--font-family-heading, 'Poppins', sans-serif);
    position: relative;
}

.seo-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bg-gradient-primary);
    border-radius: 2px;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-item {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.seo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.seo-item:hover::before {
    transform: scaleX(1);
}

.seo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(247, 142, 67, 0.2);
}

.seo-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-family: var(--font-family-heading, 'Poppins', sans-serif);
}

.seo-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

/* Button Loading States */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.check-button.loading .btn-text {
    display: none;
}

.check-button.loading .btn-loading {
    display: flex;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff30;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dns-input-section {
        padding: 2rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .domain-input,
    .record-type-select {
        min-width: auto;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .legend {
        justify-content: flex-start;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .map-results-container {
        grid-template-columns: 1fr;
    }
    
    .results-panel {
        max-height: 400px;
    }
    
    #map {
        height: 300px;
    }
    
    .seo-content-section {
        padding: 3rem 1rem;
    }
    
    .seo-content h2 {
        font-size: 2rem;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .dns-input-section {
        padding: 1.5rem;
    }
    
    .check-button {
        width: 100%;
        margin-top: 1rem;
    }
    
    .server-card {
        padding: 1rem;
    }
    
    .seo-item {
        padding: 1.5rem;
    }
}
