/* Modern DNS Banner Styles */
.modern-dns-banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px 0;
}

/* Background decorative elements */
.dns-banner-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.dns-banner-container {
    position: relative;
    z-index: 2;
}

.dns-banner-content-modern {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
}

/* DNS Badge */
.dns-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dns-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dns-badge span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* DNS main heading with gradient text */
.dns-main-heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* DNS description text */
.dns-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* DNS form wrapper with glass effect */
.dns-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* DNS search form layout */
.dns-search-form {
    margin-bottom: 32px;
}

.dns-input-group {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

/* DNS search input field */
.dns-search-input {
    flex: 1;
    min-width: 300px;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dns-search-input:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dns-search-input::placeholder {
    color: #64748b;
}

/* DNS record type select */
.dns-record-select {
    min-width: 140px;
    padding: 18px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.dns-record-select:focus {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* DNS search button */
.dns-search-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.5px;
    min-width: 140px;
    justify-content: center;
}

.dns-search-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.dns-search-btn:active {
    transform: translateY(0);
}

/* DNS Features Grid */
.dns-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dns-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.dns-feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.feature-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* DNS trust message */
.dns-trust-message {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* DNS Results Section */
.dns-results-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
    margin-top: 40px;
}

.dns-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.dns-results-header h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.results-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.record-type-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.locations-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

/* DNS Results Grid */
.dns-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.location-result {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.location-result:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.location-result .d-flex {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.flag {
    width: 40px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.location-result .fw-bold {
    font-weight: 600;
    color: white;
    font-size: 16px;
    margin-bottom: 8px;
}

.records {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}

.records.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Quick Actions */
.dns-quick-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* Loading States */
.dns-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dns-search-btn.loading {
    position: relative;
    color: transparent;
}

.dns-search-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-dns-banner-section {
        padding: 100px 0 60px 0;
        min-height: auto;
    }
    
    .dns-form-wrapper {
        padding: 24px;
        margin: 0 16px 40px;
    }
    
    .dns-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dns-search-input,
    .dns-record-select,
    .dns-search-btn {
        min-width: auto;
        width: 100%;
    }
    
    .dns-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dns-feature-card {
        padding: 20px;
    }
    
    .dns-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dns-quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    /* Mobile-specific DNS results styling */
    .location-result {
        margin: 0 0 15px 0;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .location-result .records {
        width: 100%;
        word-break: break-all;
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 8px;
        box-sizing: border-box;
    }
    
    /* Make DNS results container consistent width on mobile */
    #result {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .location-result .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        width: 100%;
    }
    
    .location-result .flag {
        align-self: center;
        margin-bottom: 5px;
    }
    
    /* Add spacing between DNS summary and quick actions */
    .dns-summary {
        margin-bottom: 25px;
    }
    
    /* Ensure consistent spacing for DNS quick actions */
    .dns-quick-actions {
        margin-top: 20px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .dns-main-heading {
        font-size: 2rem;
    }
    
    .dns-description {
        font-size: 1.1rem;
    }
    
    .dns-form-wrapper {
        padding: 20px;
        margin: 0 12px 32px;
    }
    
    .location-result {
        padding: 20px;
    }
    
    .flag {
        width: 32px;
        height: 22px;
    }
}

/* Smooth animations */
.dns-banner-content-modern * {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dns-badge {
    animation-delay: 0.1s;
}

.dns-main-heading {
    animation-delay: 0.2s;
}

.dns-description {
    animation-delay: 0.3s;
}

.dns-form-wrapper {
    animation-delay: 0.4s;
}

/* Success and Error States */
.dns-success {
    border-left: 4px solid #10b981;
}

.dns-error {
    border-left: 4px solid #ef4444;
}

.dns-warning {
    border-left: 4px solid #f59e0b;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success {
    background-color: #10b981;
}

.status-error {
    background-color: #ef4444;
}

.status-warning {
    background-color: #f59e0b;
}

/* Enhanced focus states for accessibility */
.dns-search-input:focus,
.dns-record-select:focus,
.dns-search-btn:focus,
.action-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .modern-dns-banner-section {
        background: white;
        color: black;
    }
    
    .dns-form-wrapper,
    .dns-quick-actions {
        display: none;
    }
    
    .dns-results-section {
        background: white;
        color: black;
    }
    
    .location-result {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
}