
/* Modern Design System */
:root {
    --primary-color: #007acc;
    --primary-dark: #005a99;
    --primary-light: #4da6d9;
    --secondary-color: #0ea5e9;
    --accent-color: #38bdf8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --background: #0a1628;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(0, 122, 204, 0.2);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.welcome-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}



/* Lookup Container */
.lookup-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styling */
.lookup-form-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.lookup-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
}

.modern-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.input-wrapper input:focus + .input-decoration {
    width: 100%;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Button Styles */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border-radius: 20px;
    width: 100%;
    justify-content: center;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-glow {
    left: 100%;
}

/* Features Preview */
.features-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Loading Styles */
.loading-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.loading-animation {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-circle {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-inner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-bottom: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s ease-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.loading-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.loading-progress {
    margin: 2rem 0;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.5s ease;
    border-radius: 4px;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.loading-status {
    color: var(--text-secondary);
    font-weight: 500;
}

.loading-steps {
    text-align: left;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-muted);
    font-weight: 500;
}

.step i {
    color: var(--primary-color);
    width: 20px;
}

/* Results Section */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.analyzed-url {
    color: var(--text-secondary);
    font-size: 1.1rem;
    word-break: break-all;
}

.analyzed-url strong {
    color: var(--text-primary);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: opacity 0.3s ease;
}

.domain-card::before { background: linear-gradient(90deg, #06b6d4, #0891b2); }
.hosting-card::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.tech-card::before { background: linear-gradient(90deg, #f59e0b, #d97706); }
.security-card::before { background: linear-gradient(90deg, #10b981, #059669); }
.seo-card::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.download-card::before { background: linear-gradient(90deg, #6366f1, #4f46e5); }

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 140px;
    font-size: 0.9rem;
}

.info-label i {
    color: var(--primary-color);
    width: 16px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    flex: 1;
}

/* Download Section */
.download-section {
    text-align: center;
    padding: 1rem 0;
}

.download-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.download-info {
    margin-top: 1rem;
}

.download-info small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Analysis Actions */
.analysis-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

/* Security Warning Modal */
.security-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    animation: warningPulse 1s infinite alternate;
}

.security-warning-modal.show {
    opacity: 1;
    transform: scale(1);
}

@keyframes warningPulse {
    0% { background: rgba(139, 0, 0, 0.95); }
    100% { background: rgba(185, 28, 28, 0.95); }
}

.security-warning-content {
    background: linear-gradient(145deg, #1f1f1f, #2d2d2d);
    border: 3px solid #ef4444;
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
    animation: warningShake 0.5s ease-in-out;
}

@keyframes warningShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.security-warning-header {
    margin-bottom: 2rem;
}

.warning-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1rem;
    animation: warningBlink 1s infinite;
}

@keyframes warningBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.security-warning-header h2 {
    color: #ef4444;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    margin: 0;
}

.security-warning-body {
    color: #ffffff;
}

.warning-message h3 {
    color: #fca5a5;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.warning-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blocked-url, .ip-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.url-text, .ip-text {
    color: #fca5a5;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1rem;
}

.ip-warning-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #fed7d7;
    font-style: italic;
}

.warning-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.warning-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-details i {
    color: #ef4444;
    width: 20px;
}

.warning-actions {
    margin-top: 2rem;
}

.btn-warning-close {
    background: linear-gradient(145deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-warning-close:hover {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.unauthorized-content {
    text-align: center;
}

.unauthorized-icon {
    font-size: 4rem;
    color: var(--warning-color);
    margin-bottom: 1.5rem;
}

.unauthorized-content h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.unauthorized-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.user-ip-display {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    color: var(--warning-color);
}

.unauthorized-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Notification System */
#notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
}

.notification {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success { border-left: 4px solid var(--success-color); }
.notification.error { border-left: 4px solid var(--error-color); }
.notification.warning { border-left: 4px solid var(--warning-color); }
.notification.info { border-left: 4px solid var(--primary-color); }

.notification i {
    font-size: 1.2rem;
}

.notification.success i { color: var(--success-color); }
.notification.error i { color: var(--error-color); }
.notification.warning i { color: var(--warning-color); }
.notification.info i { color: var(--primary-color); }

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    

    .lookup-container {
        padding: 2rem 1rem;
    }

    .lookup-form-card {
        padding: 2rem 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-label {
        min-width: auto;
    }

    .info-value {
        text-align: left;
    }

    .analysis-actions {
        flex-direction: column;
    }

    .unauthorized-actions {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .features-preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    

    .section-header h2 {
        font-size: 2rem;
    }

    .lookup-form-card {
        padding: 1.5rem 1rem;
    }

    .btn-large {
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }

    .features-preview {
        grid-template-columns: 1fr;
    }

    .feature-item {
        justify-content: center;
    }
}

/* Animation Enhancements */
@media (prefers-reduced-motion: no-preference) {
    .result-card {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(30px);
    }

    .result-card:nth-child(1) { animation-delay: 0.1s; }
    .result-card:nth-child(2) { animation-delay: 0.2s; }
    .result-card:nth-child(3) { animation-delay: 0.3s; }
    .result-card:nth-child(4) { animation-delay: 0.4s; }
    .result-card:nth-child(5) { animation-delay: 0.5s; }
    .result-card:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.btn:focus,
.input-wrapper input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.5);
        --text-secondary: #e5e5e5;
    }
}
