/* WHOIS Page Styles */

/* Header Section */
.whois-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.whois-search-box {
    max-width: 700px;
    margin: 0 auto;
}

.whois-form {
    width: 100%;
}

.search-wrapper {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(0, 96, 254, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: 0 8px 35px rgba(0, 96, 254, 0.2);
}

.whois-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--darkBlue);
    background: transparent;
}

.whois-input::placeholder {
    color: #adb5bd;
}

.search-wrapper .theme-btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.938rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Results Section */
.whois-results {
    background-color: var(--lightGray);
}

.result-header {
    margin-bottom: 2rem;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--darkBlue);
    margin-bottom: 1rem;
}

.domain-name {
    color: var(--primaryColor);
    font-family: monospace;
    font-size: 1.85rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: #28a745;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* Data Cards */
.whois-data-grid {
    margin-top: 2rem;
}

.data-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 96, 254, 0.1);
}

.data-card.expiring-soon {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f5;
}

.card-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--darkBlue);
    margin: 0;
}

.card-content {
    color: #495057;
}

.card-value {
    font-size: 1rem;
    color: var(--darkBlue);
    font-weight: 600;
    word-wrap: break-word;
    margin-bottom: 0;
}

.card-sub {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: #e7f3ff;
    color: var(--primaryColor);
    border-radius: 6px;
    font-size: 0.813rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Name Servers List */
.nameservers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nameserver-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.938rem;
    color: var(--darkBlue);
}

.ns-icon {
    width: 16px;
    height: 16px;
}

/* Raw Data */
.raw-data-wrapper {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.raw-data {
    font-family: 'Courier New', monospace;
    font-size: 0.813rem;
    color: #495057;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Register CTA */
.register-cta {
    background: linear-gradient(135deg, #0060fe 0%, #0048c8 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: #fff;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.register-cta .theme-btn {
    background: #fff;
    color: var(--primaryColor);
}

.register-cta .theme-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Info Section */
.whois-info-section {
    background: #fff;
}

.info-content {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 16px;
}

.info-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--darkBlue);
    margin-bottom: 1rem;
}

.info-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--darkBlue);
    margin-bottom: 0.75rem;
}

.info-para {
    font-size: 1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: #495057;
    line-height: 1.6;
}

.info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primaryColor);
    font-weight: bold;
    font-size: 1.25rem;
}

.info-list li strong {
    color: var(--darkBlue);
}

/* Responsive Design */
@media (max-width: 991px) {
    .result-title {
        font-size: 1.5rem;
    }
    
    .domain-name {
        font-size: 1.5rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 16px;
        gap: 0.5rem;
    }
    
    .search-wrapper .theme-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-content {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .whois-header {
        padding: 60px 0;
    }
    
    .result-title {
        font-size: 1.25rem;
    }
    
    .domain-name {
        font-size: 1.25rem;
        display: block;
        margin-top: 0.5rem;
    }
    
    .data-card {
        padding: 1.25rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .register-cta {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .info-content {
        padding: 1.5rem;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .info-subtitle {
        font-size: 1.125rem;
    }
}

/* Scrollbar Styling */
.raw-data-wrapper::-webkit-scrollbar {
    width: 8px;
}

.raw-data-wrapper::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.raw-data-wrapper::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.raw-data-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}


