﻿/* Modern Enhancements CSS - Ashou Bandas */

/* ================================================
   VARIÁVEIS CSS PARA CONSISTÊNCIA
   ================================================ */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================================================
   RESET E BASE STYLES
   ================================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================================================
   LOADING STATES E ANIMAÇÕES
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ================================================
   MELHORIAS NO HEADER
   ================================================ */
.main-header {
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: transparent;
}

.sticky-header {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    transition: all var(--transition-base);
    will-change: transform;
}

.logo:hover img {
    transform: scale(1.05);
}

/* ================================================
   NAVEGAÇÃO MELHORADA
   ================================================ */
.navigation li a {
    position: relative;
    transition: all var(--transition-base);
    font-weight: 500;
}

    .navigation li a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transition: all var(--transition-base);
        transform: translateX(-50%);
    }

.navigation li:hover a::after,
.navigation li.current a::after {
    width: 100%;
}

/* ================================================
   BOTÕES MODERNIZADOS
   ================================================ */
.theme-btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all var(--transition-base);
    will-change: transform, box-shadow;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .theme-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left var(--transition-slow);
        pointer-events: none;
    }

    .theme-btn:hover::before {
        left: 100%;
    }

    .theme-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .theme-btn:active {
        transform: translateY(0);
        transition: transform var(--transition-fast);
    }

    .theme-btn:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }

/* Variações de botões */
.btn-style-one {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-style-five {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
}

.btn-style-six {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

    .btn-style-six:hover {
        background: var(--primary-color);
        color: white;
    }

/* ================================================
   CARDS E CONTAINERS MELHORADOS
   ================================================ */
.job-block-four {
    transition: all var(--transition-base);
    will-change: transform;
}

    .job-block-four:hover {
        transform: translateY(-8px);
    }

    .job-block-four .inner-box {
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: all var(--transition-base);
        background: var(--bg-white);
        border: 1px solid var(--border-color);
    }

    .job-block-four:hover .inner-box {
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-color);
    }

/* ================================================
   FORMULÁRIOS MELHORADOS
   ================================================ */
/* CSS Base para o formulário de busca */
.job-search-form {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* Estilos para inputs e selects */
.form-group input,
.form-group select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-family);
    transition: all var(--transition-base);
    background: #F0F5F7;
    width: 100%;
    height: 50px;
    font-size: 16px; /* Previne zoom automático no iOS */
}

    .form-group input:focus,
    .form-group select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .form-group input::placeholder {
        color: var(--text-secondary);
        font-weight: 400;
    }

/* Responsividade para tablets (768px - 991px) */
@media (max-width: 991px) {
    .job-search-form {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .theme-btn {
        margin-top: 0.5rem;
    }
}

/* Responsividade para dispositivos móveis (até 767px) */
@media (max-width: 767px) {
    .job-search-form {
        padding: 1.25rem;
        border-radius: var(--radius-md);
        margin: 0 1rem;
    }

    /* Força todos os campos para ocupar largura total */
    .form-group {
        margin-bottom: 1.25rem;
    }

        .form-group.col-lg-3,
        .form-group.col-lg-4,
        .form-group.col-lg-2,
        .form-group.col-md-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        /* Ajusta altura dos campos para melhor usabilidade no mobile */
        .form-group input,
        .form-group select {
            height: 52px;
            font-size: 16px;
            padding: 14px 16px;
        }

    /* Botão de busca com destaque */
    .theme-btn {
        height: 52px;
        font-size: 16px;
        font-weight: 700;
        width: 100%;
        margin-top: 0.5rem;
    }

        .theme-btn span {
            font-size: 16px;
        }

        .theme-btn i {
            font-size: 18px;
        }
}

/* Responsividade para dispositivos muito pequenos (até 480px) */
@media (max-width: 480px) {
    .job-search-form {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: var(--radius-sm);
    }

    .form-group {
        margin-bottom: 1rem;
    }

        .form-group input,
        .form-group select {
            height: 48px;
            padding: 12px 14px;
            font-size: 15px;
        }

    .theme-btn {
        height: 48px;
        padding: 12px 16px;
        font-size: 15px;
    }

    /* Ajusta o espaçamento entre campos */
    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .form-group {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Melhorias de acessibilidade e UX */
@media (max-width: 767px) {
    /* Labels visuais para melhor UX */
    .form-group select option {
        padding: 8px;
    }

    /* Melhora o contraste do placeholder */
    .form-group input::placeholder {
        color: #666;
        opacity: 1;
    }

    /* Animação suave para transições */
    .form-group input,
    .form-group select,
    .theme-btn {
        transition: all 0.3s ease;
    }

    /* Estados de hover para dispositivos com hover disponível */
    @media (hover: hover) {
        .theme-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
    }

    /* Estados de foco melhorados para navegação por teclado */
    .form-group input:focus,
    .form-group select:focus {
        transform: translateY(-1px);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
}

/* Correções específicas para iOS */
@supports (-webkit-appearance: none) {
    .form-group select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Container principal responsivo */
.auto-container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 767px) {
    .auto-container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ================================================
   BANNER SECTION MELHORADA
   ================================================ */
.banner-section-ten {
    position: relative;
    overflow: hidden;
}

    .banner-section-ten::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
        z-index: 1;
    }

    .banner-section-ten .auto-container {
        position: relative;
        z-index: 2;
    }

.title-box h3 {
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ================================================
   BANNER REGISTRATION MELHORADO
   ================================================ */
.banner-style-one,
.banner-style-two {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

    .banner-style-one:hover,
    .banner-style-two:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }

    .banner-style-one .inner-box,
    .banner-style-two .inner-box {
        padding: 2.5rem;
    }

    .banner-style-one h3,
    .banner-style-two h3 {
        font-family: var(--font-family);
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 1rem;
    }

    .banner-style-one p,
    .banner-style-two p {
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

/* ================================================
   SEÇÕES E TÍTULO MELHORADOS
   ================================================ */
.sec-title h2 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sec-title .text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================================
   FOOTER MELHORADO
   ================================================ */
.main-footer {
    background: linear-gradient(135deg, var(--text-primary), #1a202c);
    position: relative;
    overflow: hidden;
}

    .main-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    }

.footer-widget h4 {
    font-family: var(--font-family);
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

    .footer-widget h4::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

.footer-widget ul.list li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    display: inline-block;
    padding: 4px 0;
}

    .footer-widget ul.list li a:hover {
        color: white;
        transform: translateX(5px);
        text-decoration: none;
    }

/* ================================================
   SCROLL TO TOP MELHORADO
   ================================================ */
.scroll-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .scroll-to-top:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: var(--shadow-xl);
    }

/* ================================================
   RESPONSIVIDADE MELHORADA
   ================================================ */
@media (max-width: 1199px) {
    .banner-section-ten .job-search-form {
        padding: 1.5rem;
    }

    .banner-style-one .inner-box,
    .banner-style-two .inner-box {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    .job-search-form {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .banner-style-one,
    .banner-style-two {
        margin-bottom: 1.5rem;
    }

    .navigation li a::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .job-search-form {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .banner-style-one .inner-box,
    .banner-style-two .inner-box {
        padding: 1.5rem;
        text-align: center;
    }

    .title-box h3 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .sec-title h2 {
        font-size: 1.5rem;
    }

    .theme-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 575px) {
    .job-search-form {
        margin: 0.5rem;
    }

    .banner-style-one .inner-box,
    .banner-style-two .inner-box {
        padding: 1rem;
    }

    .title-box h3 {
        font-size: 1.5rem;
    }

    .logo img {
        height: 60px !important;
    }
}

/* ================================================
   DARK MODE SUPPORT (para futuro)
   ================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #cbd5e0;
        --bg-light: #2d3748;
        --bg-white: #1a202c;
        --border-color: #4a5568;
    }
}

/* ================================================
   PERFORMANCE E ACESSIBILIDADE
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus indicators melhorados */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transition: outline var(--transition-fast);
}

/* Skip links para acessibilidade */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.sr-only:focus,
.sr-only:active {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    clip: auto;
    clip-path: none;
    color: var(--text-primary);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 8px 16px;
    position: absolute;
    top: 6px;
    width: auto;
    z-index: 100000;
    text-decoration: none;
}

/* ================================================
   LOADING STATES
   ================================================ */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid var(--border-color);
        border-top-color: var(--primary-color);
        border-radius: 50%;
        animation: loading-spin 1s linear infinite;
    }

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

.scale-in {
    animation: scaleIn 0.6s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.3rem;
    font-weight: 700;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: var(--radius-lg);
}
