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

:root {
    /* Cores baseadas na logo RapidCloud */
    --primary-purple: #8B5CF6;
    --dark-purple: #7C3AED;
    --light-purple: #A78BFA;
    --black: #000000;
    --dark-gray: #1F2937;
    --medium-gray: #374151;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    
    /* Gradiente muito mais visível e contrastante */
    background: #4F46E5; /* Fallback azul mais escuro */
    background: -webkit-gradient(linear, left top, right bottom, from(#3B82F6), to(#8B5CF6)); /* Safari 4-5 */
    background: -webkit-linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); /* Safari 5.1-6 */
    background: -moz-linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); /* Firefox 3.6-15 */
    background: -o-linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%); /* Opera 11.10-12.00 */
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    
    /* Propriedades para garantir funcionamento */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a2e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.1rem;
    z-index: 2;
}

.domain-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    background: transparent;
    border-radius: 12px;
    color: var(--dark-gray);
}

.domain-input::placeholder {
    color: var(--medium-gray);
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Quick Examples */
.quick-examples {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.examples-label {
    color: #4a5568;
    font-weight: 500;
}

.example-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.example-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    color: #553c9a;
    transform: translateY(-1px);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Results Section */
.results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.results-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.domain-name {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 1.1rem;
}

.timestamp {
    color: var(--medium-gray);
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: var(--gradient-card);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

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

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.summary-icon.success { background: var(--success); }
.summary-icon.warning { background: var(--warning); }
.summary-icon.error { background: var(--error); }
.summary-icon.score { background: var(--gradient-primary); }

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.summary-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.results-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: top;
}

.results-table tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.category-cell {
    font-weight: 600;
    color: var(--dark-gray);
    background: rgba(139, 92, 246, 0.05);
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.status-icon.success { background: var(--success); }
.status-icon.warning { background: var(--warning); }
.status-icon.error { background: var(--error); }
.status-icon.info { background: var(--info); }

.test-name {
    font-weight: 500;
    color: var(--dark-gray);
}

.test-info {
    color: var(--medium-gray);
    line-height: 1.5;
}

.test-data {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 150px;
    overflow-y: auto;
}

/* Error Section */
.error-section {
    text-align: center;
    padding: 3rem 0;
}

.error-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.error-icon {
    font-size: 3rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.error-card h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.error-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--light-purple);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-purple);
}

.footer-logo {
    height: 30px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* DNS Data Formatting */
.dns-data-container {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border-left: 3px solid var(--primary-purple);
}

.dns-record {
    margin-bottom: 0.75rem;
}

.dns-record:last-child {
    margin-bottom: 0;
}

.record-line {
    display: flex;
    margin-bottom: 0.25rem;
    align-items: flex-start;
}

.record-label {
    font-weight: 600;
    color: var(--dark-gray);
    min-width: 100px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.record-value {
    color: var(--medium-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    flex: 1;
}

.record-separator {
    height: 1px;
    background: rgba(139, 92, 246, 0.2);
    margin: 0.75rem 0;
}

.test-data {
    margin-top: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .nav {
        display: none;
    }
    
    .results-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .quick-examples {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .results {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .summary-card {
        padding: 1rem;
    }
}

