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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F3F4F6;
    color: #1F2937;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    text-align: center;
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.logo-image {
    height: 9rem;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Alternativa com fundo cinza claro - descomente a linha abaixo se preferir */
    /* background: rgba(243, 244, 246, 0.95); */
}

.logo-image:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.logo i {
    font-size: 2rem;
    color: #10B981;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    margin-bottom: 3rem;
}

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.search-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.search-description {
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Search Form */
.search-form {
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    font-size: 1rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

#searchInput:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
    background: #2563EB;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

/* Search Type Toggle */
.search-type-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.toggle-btn {
    background: #F3F4F6;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.toggle-btn.active {
    background: #2563EB;
    border-color: #2563EB;
    color: white;
}

.toggle-btn:hover:not(.active) {
    border-color: #2563EB;
    color: #2563EB;
}

/* Loading State */
.loading-container {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Results Container */
.results-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Status Cards */
.status-card {
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Gradiente baseado na pontuação - maior especificidade */
.status-card.score-0-20 {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    color: white !important;
}

.status-card.score-21-40 {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: white !important;
}

.status-card.score-41-50 {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%) !important;
    color: white !important;
}

.status-card.score-51-60 {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: white !important;
}

.status-card.score-61-70 {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%) !important;
    color: white !important;
}

.status-card.score-71-80 {
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%) !important;
    color: white !important;
}

.status-card.score-81-90 {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    color: white !important;
}

.status-card.score-91-100 {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
}

/* Classes de status para compatibilidade */
.status-card.confiavel {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.status-card.suspeito {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.status-card.fraude {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

/* Efeito de brilho para pontuações altas */
.status-card.score-81-100::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.score-info {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.score-info .score,
.score-info .confidence {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Barra de progresso da pontuação */
.score-progress-container {
    margin: 1.5rem 0;
    text-align: center;
}

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

.score-progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.score-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.score-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Details Section */
.details-section {
    padding: 2rem;
    background: #F9FAFB;
}

.details-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2937;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Reputation Section - Full Width */
.reputation-section {
    margin-top: 2rem;
    width: 100%;
}

.reputation-card {
    width: 100%;
    max-width: none;
}

/* Status Indicators */
.status-indicator {
    font-size: 1.2rem;
    margin-left: 0.5rem;
    display: inline-block;
}

.status-indicator.success {
    color: #10B981;
}

.status-indicator.warning {
    color: #F59E0B;
}

.status-indicator.error {
    color: #EF4444;
}

.detail-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2563EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detail-card h4 {
    color: #1F2937;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.detail-card p {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-card .value {
    color: #1F2937;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Reputation Analysis */
.reputation-analysis {
    margin-top: 1rem;
}

.reputation-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3B82F6;
}

.metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EFF6FF;
    border-radius: 50%;
    color: #3B82F6;
    font-size: 1.2rem;
}

.metric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.metric-value {
    font-size: 1rem;
    color: #1F2937;
    font-weight: 600;
}

.metric-bar {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    margin: 0.25rem 0;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #EF4444 0%, #F59E0B 50%, #10B981 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.reputation-summary {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 8px;
    padding: 1rem;
}

.reputation-summary h5 {
    margin: 0 0 0.5rem 0;
    color: #1E40AF;
    font-size: 0.9rem;
    font-weight: 600;
}

.reputation-summary p {
    margin: 0;
    color: #1E40AF;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reputation-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric-item {
        padding: 0.5rem;
    }
    
    .metric-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reputation-metrics {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .reputation-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .reputation-metrics {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #2563EB;
}

.recommendations-section h4 {
    color: #1F2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.recommendations-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 0.9rem;
}

.recommendations-list li:last-child {
    border-bottom: none;
}


/* Sources Section */
.sources-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 4px solid #10B981;
}

.sources-section h4 {
    color: #1F2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.source-tag {
    background: #2563EB;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Features Section */
.features {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.features h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1F2937;
}

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

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-card i {
    font-size: 2.5rem;
    color: #2563EB;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.feature-card p {
    color: #6B7280;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #6B7280;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 7rem;
        padding: 1.2rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .search-btn {
        justify-content: center;
    }
    
    .search-type-toggle {
        flex-direction: column;
        align-items: center;
    }
    
    .toggle-btn {
        width: 200px;
        justify-content: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reputation-metrics {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .metric-item {
        padding: 0.5rem;
    }
    
    .metric-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .logo-image {
        height: 5.6rem;
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .status-card {
        padding: 1.5rem;
    }
    
    .details-section {
        padding: 1.5rem;
    }
}

/* Animation for results */
.results-container {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
