/* DNS/IP Lookup Styles */

/* Modern Mode Selector */
.mode-selector-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 0;
}

.mode-option {
    position: relative;
}

.mode-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mode-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mode-icon .fsvg {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.mode-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mode-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.mode-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Hover State */
.mode-label:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.mode-label:hover .mode-icon {
    background: #e8edf3;
}

.mode-label:hover .mode-icon .fsvg {
    opacity: 0.8;
}

/* Checked State */
.mode-input:checked + .mode-label {
    border-color: #052c65;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(5, 44, 101, 0.1), inset 0 0 0 1px rgba(5, 44, 101, 0.1);
    transform: translateY(0);
}

.mode-input:checked + .mode-label .mode-icon {
    background: #052c65;
}

.mode-input:checked + .mode-label .mode-icon .fsvg {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.mode-input:checked + .mode-label .mode-title {
    color: #052c65;
}

.mode-input:checked + .mode-label .mode-desc {
    color: #475569;
}

/* Dark Mode */
[data-bs-theme="dark"] .mode-label {
    background: #1a1d23;
    border-color: #343a40;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .mode-icon {
    background: #2d3239;
}

[data-bs-theme="dark"] .mode-title {
    color: #e9ecef;
}

[data-bs-theme="dark"] .mode-desc {
    color: #9ca3af;
}

[data-bs-theme="dark"] .mode-label:hover {
    border-color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .mode-label:hover .mode-icon {
    background: #3a3f47;
}

[data-bs-theme="dark"] .mode-input:checked + .mode-label {
    border-color: #6ea8fe;
    background: #212529;
    box-shadow: 0 2px 8px rgba(110, 168, 254, 0.2), inset 0 0 0 1px rgba(110, 168, 254, 0.2);
}

[data-bs-theme="dark"] .mode-input:checked + .mode-label .mode-icon {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .mode-input:checked + .mode-label .mode-title {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .mode-input:checked + .mode-label .mode-desc {
    color: #9ca3af;
}

/* IP Info Display */
.ip-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

[data-bs-theme="dark"] .ip-info-grid {
    background: #212529;
    border-color: #495057;
}

.ip-info-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    align-items: center;
}

[data-bs-theme="dark"] .ip-info-item {
    background: #2b3035;
    border-color: #495057;
}

.ip-info-label {
    font-weight: 600;
    color: #052c65;
    font-size: 14px;
}

[data-bs-theme="dark"] .ip-info-label {
    color: #6ea8fe;
}

.ip-info-value {
    color: #212529;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    word-break: break-all;
}

[data-bs-theme="dark"] .ip-info-value {
    color: #e9ecef;
}

/* DNS Records Display */
.dns-records-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dns-record-group {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

[data-bs-theme="dark"] .dns-record-group {
    background: #212529;
    border-color: #495057;
}

.dns-record-type-header {
    background: #052c65;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-bs-theme="dark"] .dns-record-type-header {
    background: #6ea8fe;
    color: #000;
}

.dns-record-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dns-record-item:last-child {
    border-bottom: none;
}

[data-bs-theme="dark"] .dns-record-item {
    border-bottom-color: #495057;
}

.dns-record-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #212529;
    word-break: break-all;
    flex: 1;
}

[data-bs-theme="dark"] .dns-record-value {
    color: #e9ecef;
}

.dns-record-ttl {
    font-size: 12px;
    color: #6c757d;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .dns-record-ttl {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-selector-modern {
        grid-template-columns: 1fr;
    }

    .ip-info-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dns-record-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
