/* =============================================================================
   WISEFIXING/HIMNI.COM DESIGN SYSTEM - CLAIM.CLICK
   ============================================================================= */

/* Importar fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variáveis CSS - Paleta WiseFixing/HIMNI.COM */
:root {
    /* Cores primárias - baseadas no WiseFixing */
    --himni-primary: #3b82f6;
    --himni-primary-dark: #2563eb;
    --himni-primary-light: #60a5fa;
    
    /* Tons de cinza WiseFixing */
    --himni-gray-50: #f8fafc;
    --himni-gray-100: #f1f5f9;
    --himni-gray-200: #e2e8f0;
    --himni-gray-300: #cbd5e1;
    --himni-gray-400: #94a3b8;
    --himni-gray-500: #64748b;
    --himni-gray-600: #475569;
    --himni-gray-700: #334155;
    --himni-gray-800: #1e293b;
    --himni-gray-900: #0f172a;
    
    /* Cores de destaque WiseFixing */
    --himni-success: #10b981;
    --himni-warning: #f59e0b;
    --himni-danger: #ef4444;
    --himni-purple: #8b5cf6;
    --himni-purple-light: #a78bfa;
    
    /* Tipografia */
    --himni-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaçamentos */
    --himni-spacing-xs: 0.25rem;
    --himni-spacing-sm: 0.5rem;
    --himni-spacing-md: 1rem;
    --himni-spacing-lg: 1.5rem;
    --himni-spacing-xl: 2rem;
    --himni-spacing-2xl: 3rem;
    
    /* Bordas */
    --himni-radius-sm: 0.375rem;
    --himni-radius-md: 0.5rem;
    --himni-radius-lg: 0.75rem;
    --himni-radius-xl: 1rem;
    
    /* Sombras */
    --himni-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --himni-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --himni-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--himni-font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--himni-gray-900);
    background-color: var(--himni-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--himni-font-family);
    font-weight: 600;
    line-height: 1.3;
    color: var(--himni-gray-900);
    margin-bottom: var(--himni-spacing-md);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--himni-spacing-md);
    color: var(--himni-gray-700);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--himni-gray-600);
}

/* Navbar - Estilo WiseFixing com degradê azul */
.navbar {
    background: var(--himni-gray-800);
    background-image: radial-gradient(ellipse at top right, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(59, 130, 246, 0.12) 25%, 
        rgba(59, 130, 246, 0.04) 50%, 
        transparent 70%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--himni-gray-700);
    padding: var(--himni-spacing-md) 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: 600;
    color: white !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--himni-gray-300) !important;
    padding: var(--himni-spacing-sm) var(--himni-spacing-md) !important;
    border-radius: var(--himni-radius-md);
    transition: all 0.2s ease;
    margin: 0 var(--himni-spacing-xs);
}

.navbar-nav .nav-link:hover {
    color: var(--himni-primary-light) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--himni-primary-light) !important;
    background-color: rgba(59, 130, 246, 0.2);
}

/* Botões - Estilo WiseFixing */
.btn {
    font-family: var(--himni-font-family);
    font-weight: 500;
    border-radius: var(--himni-radius-md);
    padding: var(--himni-spacing-sm) var(--himni-spacing-lg);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--himni-spacing-sm);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--himni-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--himni-shadow-md);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--himni-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-light {
    background: white;
    color: var(--himni-gray-700);
    border: 1px solid var(--himni-gray-200);
    box-shadow: var(--himni-shadow-sm);
}

.btn-light:hover {
    background: var(--himni-gray-50);
    color: var(--himni-gray-800);
    transform: translateY(-1px);
    box-shadow: var(--himni-shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
    padding: var(--himni-spacing-sm) var(--himni-spacing-lg);
    font-size: 1rem;
    border-radius: var(--himni-radius-md);
}

/* Tamanho padrão para botões principais da home */
.btn-hero {
    padding: var(--himni-spacing-sm) var(--himni-spacing-lg);
    font-size: 1rem;
    border-radius: var(--himni-radius-md);
    font-weight: 500;
}

.btn-sm {
    padding: var(--himni-spacing-xs) var(--himni-spacing-md);
    font-size: 0.875rem;
}

/* Hero Section - Estilo WiseFixing com cinza escuro e degradê azul */
.hero-section {
    background: var(--himni-gray-800);
    background-image: radial-gradient(ellipse at bottom right, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(59, 130, 246, 0.15) 25%, 
        rgba(59, 130, 246, 0.05) 50%, 
        transparent 70%);
    color: white;
    padding: var(--himni-spacing-2xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--himni-gray-700);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.05;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 60%;
    background: linear-gradient(135deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.1) 30%, 
        rgba(96, 165, 250, 0.15) 60%, 
        rgba(147, 197, 253, 0.2) 100%);
    border-radius: 100% 0 0 100%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    margin-bottom: var(--himni-spacing-lg);
}

.hero-section .lead {
    color: var(--himni-gray-200);
    font-size: 1.25rem;
    margin-bottom: var(--himni-spacing-xl);
}

/* Cards - Estilo WiseFixing */
.card {
    background: white;
    border: 1px solid var(--himni-gray-200);
    border-radius: var(--himni-radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: var(--himni-spacing-lg);
}

.card-title {
    font-weight: 600;
    color: var(--himni-gray-900);
    margin-bottom: var(--himni-spacing-md);
}

.card-text {
    color: var(--himni-gray-700);
}

/* Seções especiais */
.bg-light {
    background-color: var(--himni-gray-100) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--himni-primary) 0%, var(--himni-primary-dark) 100%) !important;
}

/* Dropdown melhorado */
.dropdown-menu {
    border: 1px solid var(--himni-gray-200);
    border-radius: var(--himni-radius-md);
    box-shadow: var(--himni-shadow-lg);
    padding: var(--himni-spacing-sm);
    background-color: white;
    z-index: 99999 !important;
    position: absolute !important;
}

.dropdown-item {
    border-radius: var(--himni-radius-sm);
    padding: var(--himni-spacing-sm) var(--himni-spacing-md);
    transition: all 0.2s ease;
    color: var(--himni-gray-700);
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--himni-gray-100);
    color: var(--himni-gray-900);
}

.dropdown-item:focus {
    background-color: var(--himni-primary);
    color: white;
}

/* Dropdown específico para idiomas */
.dropdown-item button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    width: 100%;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.dropdown-item button:hover {
    background: none;
    color: inherit;
}

/* Correção específica para dropdown de idiomas */
#languageDropdown {
    color: var(--himni-gray-600) !important;
}

.dropdown-menu .dropdown-item.active {
    background-color: var(--himni-primary);
    color: white;
}

.dropdown-menu .dropdown-item.active button {
    color: white;
}

/* Garantir que o dropdown seja clicável */
.navbar .dropdown {
    position: relative !important;
    z-index: 99998 !important;
}

.navbar .dropdown-menu {
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin-top: 2px !important;
    min-width: 150px !important;
}

/* Forçar o dropdown de idiomas a aparecer sobre tudo e centralizado */
#languageDropdown + .dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Garantir que o navbar tenha z-index alto */
.navbar {
    z-index: 99997 !important;
    position: relative !important;
}

/* Footer - Estilo WiseFixing com cinza escuro, degradê azul e melhores práticas */
.footer {
    background: var(--himni-gray-800);
    background-image: radial-gradient(ellipse at top left, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(59, 130, 246, 0.1) 25%, 
        rgba(59, 130, 246, 0.03) 50%, 
        transparent 70%);
    color: var(--himni-gray-300);
    padding: var(--himni-spacing-2xl) 0 var(--himni-spacing-lg);
    border-top: 1px solid var(--himni-gray-700);
    margin-top: auto; /* Para sticky footer */
    position: relative;
    overflow: hidden;
}

.footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--himni-spacing-md);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--himni-gray-300);
    margin-bottom: var(--himni-spacing-sm);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.footer .small {
    color: var(--himni-gray-400);
    font-size: 0.875rem;
}

.footer a {
    color: var(--himni-gray-300);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.footer a:hover {
    color: var(--himni-primary-light);
    text-decoration: none;
}

.footer a:focus {
    color: var(--himni-primary-light);
    outline: 2px solid var(--himni-primary-light);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Links de redes sociais */
.footer .fab {
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.footer a:hover .fab {
    transform: translateY(-2px);
}

/* Linha divisória do footer */
.footer hr {
    border-color: var(--himni-gray-700);
    opacity: 1;
}

/* Efeito adicional do footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 50%;
    background: linear-gradient(225deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(96, 165, 250, 0.1) 40%, 
        rgba(147, 197, 253, 0.05) 70%, 
        transparent 100%);
    border-radius: 0 0 100% 0;
    filter: blur(0.5px);
    pointer-events: none;
}

/* Logo do footer */
.footer .logo-footer {
    filter: brightness(1.2);
    transition: filter 0.2s ease;
    position: relative;
    z-index: 1;
}

.footer .logo-footer:hover {
    filter: brightness(1.4);
}

/* Link HIMNI.COM no footer em branco */
.footer .himni-footer-link {
    color: white !important;
    position: relative;
    z-index: 1;
}

.footer .himni-footer-link:hover {
    color: var(--himni-primary-light) !important;
}

/* Layout principal - Flexbox para sticky footer */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Seções com fundo cinza escuro */
.bg-dark-section {
    background-color: var(--himni-gray-800);
    color: white;
    border-top: 1px solid var(--himni-gray-700);
    border-bottom: 1px solid var(--himni-gray-700);
}

/* =============================================================================
   CLAIM.CLICK CUSTOM STYLES
   ============================================================================= */

/* Logo responsiva */
.logo-main {
    max-height: 120px;
    width: auto;
}

.logo-footer {
    max-height: 40px;
    width: auto;
}

/* Melhorias de acessibilidade */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--himni-primary);
    outline-offset: 2px;
}

/* Estados de hover para links */
a {
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: none;
}

/* Alertas */
.alert {
    border-radius: var(--himni-radius-md);
    border: none;
    padding: var(--himni-spacing-md) var(--himni-spacing-lg);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--himni-success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--himni-warning);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--himni-danger);
}

/* Animações sutis */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.logo-main {
    animation: fadeInScale 1s ease-out;
}
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-pills .nav-link.active {
    background-color: var(--himni-primary);
}
.nav-pills .nav-link:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.claim-card {
    border-left: 4px solid var(--himni-primary);
}
.claim-card:hover {
    border-left-color: var(--himni-primary-dark);
}

.spinner-border {
    color: var(--himni-primary);
}
.progress-bar {
    background-color: var(--himni-primary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--himni-gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--himni-gray-300);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--himni-gray-400);
}

.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important; } 