/* DNS Lookup Page Styles */

/* Hero Section - Dark Theme */
.dns-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}
.dns-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 40%);
    animation: pulse-bg 8s ease-in-out infinite;
}
@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Search Box */
.search-box {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}
.search-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(16,185,129,0.4), rgba(6,182,212,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dns-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.dns-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
    color: #f1f5f9;
    outline: none;
}
.dns-input::placeholder {
    color: #64748b;
}

.dns-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f1f5f9;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.dns-select:focus {
    background: rgba(255,255,255,0.08);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
    color: #f1f5f9;
    outline: none;
}
.dns-select option {
    background: #1e293b;
    color: #f1f5f9;
}

.search-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,185,129,0.4);
    color: white;
}

/* Results Section */
.results-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 2rem 0 3rem;
}

/* Servers Panel */
.servers-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.panel-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.panel-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.panel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.refresh-btn {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #10b981;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.refresh-btn:hover {
    background: #10b981;
    color: white;
}
.timer-badge {
    font-size: 0.8rem;
    color: #64748b;
}

/* Servers List */
.servers-list {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
}
.servers-list::-webkit-scrollbar {
    width: 6px;
}
.servers-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.servers-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.servers-list::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

.server-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
    gap: 0.75rem;
    overflow: hidden;
}
.server-item:hover {
    background: rgba(16,185,129,0.05);
    border-color: rgba(16,185,129,0.2);
}
.server-main {
    flex: 1;
    min-width: 90%;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.server-location {
    font-weight: 600;
    font-size: 0.875rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    min-width: 0;
}
.server-flag {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
    width: 20px;
    height: 15px;
    object-fit: cover;
}
.server-location-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.server-provider {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.server-result-text {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #10b981;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
}
.server-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 0;
    width: 28px;
    justify-content: center;
}
.result-success {
    color: #10b981;
}
.result-error {
    color: #ef4444;
}
.result-pending {
    color: #9ca3af;
}
.result-ip {
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 0.8rem;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}
.result-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.icon-success {
    background: rgba(16,185,129,0.2);
    color: #10b981;
}
.icon-error {
    background: rgba(239,68,68,0.2);
    color: #ef4444;
}
.icon-pending {
    background: rgba(251,191,36,0.2);
    color: #fbbf24;
}

/* Map Panel */
.map-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
}
.map-header {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.25rem;
}
.map-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.map-wrapper {
    padding: 0;
}
#map {
    height: 520px;
    border-radius: 0;
}

/* Info Section */
.info-section {
    background: #f8fafc;
    padding: 4rem 0;
}
.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    height: 100%;
}
.info-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.info-icon i {
    display: block;
    line-height: 1;
    position: relative;
    z-index: 2;
}
.info-icon::before,
.info-icon::after {
    display: none;
}

/* FAQ Accordion */
.faq-section {
    background: white;
    padding: 4rem 0;
}
.faq-accordion .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    padding: 1.25rem;
    background: #f8fafc;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(16,185,129,0.1), transparent);
    color: #10b981;
}
.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 3rem 0;
}

/* Responsive */
@media (max-width: 991px) {
    .map-panel {
        margin-top: 1.5rem;
    }
    #map {
        height: 400px;
    }
}
@media (max-width: 768px) {
    .dns-hero {
        padding: 2rem 0;
    }
    .search-box {
        padding: 1rem;
    }
    #map {
        height: 350px;
    }
    .server-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.65rem 0.75rem;
    }
    .server-main {
        max-width: 100%;
    }
    .server-status {
        align-self: flex-end;
        width: auto;
    }
    .server-result-text {
        font-size: 0.75rem;
        line-height: 1.45;
        margin-top: 0.3rem;
        padding-top: 0.3rem;
    }
    .server-location {
        margin-bottom: 0.2rem;
    }
    .server-provider {
        margin-bottom: 0.3rem;
    }
    .server-status {
        width: 24px;
    }
    .result-icon {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}

