/* Agarrar Talento - Estilos Personalizados Profissionais */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Cores da Bandeira de Angola */
    --primary-color: #C8102E; /* Vermelho */
    --primary-dark: #A00D26;
    --primary-light: #E01435;
    --secondary-color: #FFD700; /* Amarelo/Dourado */
    --secondary-dark: #D4AF37;
    --secondary-light: #FFED4E;
    --success-color: #43a047;
    --danger-color: #C8102E;
    --warning-color: #FFD700;
    --dark-color: #000000; /* Preto */
    --light-color: #f8f9fa;
    --text-color: #212529;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

.navbar {
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--secondary-color);
    animation: pulse 2s infinite;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200,16,46,0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #8B0A20 100%);
    border-color: var(--secondary-light);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--dark-color);
    font-weight: 700;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,215,0,0.4);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.carousel-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: var(--secondary-color);
    animation: fadeInUp 1.2s ease-out;
}

.carousel-description {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid var(--secondary-color);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

/* Contagem Regressiva Section */
.countdown-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    color: white;
}

.countdown-section h4 {
    color: white;
}

.countdown-section i {
    color: var(--secondary-color);
}

/* Hero Section (manter para compatibilidade) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--secondary-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    min-width: 100px;
    transition: var(--transition);
}

.countdown-item:hover {
    background: rgba(0,0,0,0.4);
    border-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,215,0,0.3);
}

.countdown-item div {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-item small {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 2rem;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: 3px solid var(--secondary-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.card-body {
    padding: 1.75rem;
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Galeria */
.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.galeria-item:hover .galeria-overlay {
    transform: translateY(0);
}

/* Formulários */
.form-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--primary-light);
}

.required-field::after {
    content: " *";
    color: var(--danger-color);
    font-weight: 700;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Status Badges */
.badge-pendente {
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 600;
}

.badge-aprovado {
    background-color: var(--success-color);
    color: white;
    font-weight: 600;
}

.badge-rejeitado {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Dashboard */
.stats-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
}

/* Upload Preview */
.upload-preview {
    margin-top: 10px;
}

.upload-preview img,
.upload-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
}

/* Seções */
section {
    padding: 4rem 0;
}

section h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-align: center;
}

section h3 {
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Badges melhorados */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Alertas melhorados */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
}

.alert-heading {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Tabelas */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-bottom: 2px solid var(--secondary-color);
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f5f5f5;
    transform: scale(1.01);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--secondary-color);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Responsivo - Mobile First */
@media (max-width: 576px) {
    /* Carousel Mobile */
    .carousel-slide {
        min-height: 400px;
    }
    
    .carousel-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .carousel-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem;
    }
    
    .carousel-description {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .carousel-content {
        padding: 2rem 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.6;
    }
    
    .carousel-control-prev {
        left: 0.5rem;
    }
    
    .carousel-control-next {
        right: 0.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Countdown Mobile */
    .countdown {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }
    
    .countdown-item div {
        font-size: 1.5rem;
    }
    
    .countdown-item small {
        font-size: 0.7rem;
    }
    
    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    /* Sections Mobile */
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
    
    /* Cards Mobile */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Buttons Mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* Botões lado a lado em mobile */
    .d-flex.flex-column.flex-sm-row .btn {
        width: 100%;
    }
    
    @media (min-width: 576px) {
        .d-flex.flex-column.flex-sm-row .btn {
            width: auto;
        }
    }
    
    /* Tables Mobile */
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 2rem 0 1rem;
    }
    
    /* Galeria Mobile */
    .galeria-item img {
        height: 250px;
    }
    
    /* Form Mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-height: 500px;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .hero-section {
        padding: 60px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .countdown {
        font-size: 1.4rem;
    }
    
    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }
    
    .countdown-item div {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    .carousel-subtitle {
        font-size: 1.6rem;
    }
    
    .carousel-description {
        font-size: 1.15rem;
    }
}

/* Prevenir overflow horizontal */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.container,
.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Imagens responsivas */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Tabelas responsivas */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
}

/* Cards em grid responsivo */
@media (max-width: 576px) {
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Texto responsivo */
@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    .lead {
        font-size: 1rem;
    }
}

/* Formulários responsivos */
@media (max-width: 576px) {
    .form-row,
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .form-row > [class*="col-"],
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Navbar responsivo melhorado */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

/* Garantir que elementos não ultrapassem a largura da tela */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Prevenir que elementos inline-block causem overflow */
@media (max-width: 576px) {
    .d-flex {
        flex-wrap: wrap;
    }
    
    .gap-2 > * {
        margin-bottom: 0.5rem;
    }
    
    .gap-3 > * {
        margin-bottom: 1rem;
    }
    
    .gap-4 > * {
        margin-bottom: 1.5rem;
    }
}

/* Ajustar espaçamentos em mobile */
@media (max-width: 576px) {
    .me-3 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .ms-3 {
        margin-left: 0 !important;
    }
    
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Melhorias adicionais */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Corrigir problemas de zoom em iOS */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    font-size: 16px !important; /* Previne zoom automático no iOS */
}

@media (max-width: 576px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Hover effects para cards de categorias */
.hover-card {
    transition: var(--transition);
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(200,16,46,0.2) !important;
    border: 2px solid var(--secondary-color) !important;
}

.hover-card:hover .bg-opacity-10 {
    background-color: var(--primary-color) !important;
}

.hover-card:hover .text-primary {
    color: var(--secondary-color) !important;
}

/* Melhorias gerais */
.bg-opacity-10 {
    background-color: rgba(25, 118, 210, 0.1) !important;
}

/* Seção de notícias melhorada */
section .card {
    border-left: 4px solid var(--primary-color);
}

section .card:hover {
    border-left-color: var(--secondary-color);
}
