/* ===================================
   ARSERH Public Pages CSS
   Inspired by Nokri Job Board Theme
   =================================== */

/* ---- GENERAL CSS ---- */
.public-page {
    font-family: 'Poppins', sans-serif;
    color: #242424;
    background: #f8f9fa;
}

/* ---- HEADER/NAVBAR CSS ---- */
.public-header .navbar {
    padding: 1rem 0;
    border-bottom: 2px solid #f0f0f0;
}

.public-header .navbar-brand {
    font-size: 1.5rem;
    color: #0d6efd;
}

.public-header .nav-link {
    font-weight: 500;
    color: #333;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.public-header .nav-link:hover {
    color: #0d6efd;
}

/* ---- HERO SECTION CSS ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 120px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/nokri/images/nokri.gif') center/cover;
    opacity: 0.1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ---- SEARCH BOX CSS ---- */
.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-box .input-group-text {
    border-right: none;
}

.search-box .form-control {
    border-left: none;
    border-right: none;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* ---- STATS SECTION CSS ---- */
.stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.stat-card i {
    opacity: 0.8;
}

/* ---- CATEGORIES SECTION CSS ---- */
.category-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15) !important;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- JOB CARDS CSS ---- */
.job-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: #0d6efd;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- HOW IT WORKS SECTION CSS ---- */
.step-icon {
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* ---- COMPANIES SECTION CSS ---- */
.company-card {
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.company-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- CTA SECTION CSS ---- */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ---- ABOUT SECTION CSS ---- */
.about-section ul li {
    font-size: 1.05rem;
}

/* ---- CONTACT SECTION CSS ---- */
.contact-section form .form-control {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.contact-section form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ---- FOOTER CSS ---- */
.public-footer {
    border-top: 3px solid #0d6efd;
}

.public-footer a:hover {
    color: #fff !important;
}

/* ---- FILAMENT FORM AUTH CSS ---- */
/* Estilos para campos de formulário Filament na área pública */

.pfa-form-wrap .fi-sc-text-input,
.pfa-form-wrap .fi-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

.pfa-form-wrap .fi-sc-text-input:focus,
.pfa-form-wrap .fi-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

/* Label dos campos */
.pfa-form-wrap .fi-fo-field-wrp label,
.pfa-form-wrap .fi-form-field label {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Container dos campos de formulário */
.pfa-form-wrap .fi-fo-field-wrp,
.pfa-form-wrap .fi-form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* Mensagens de erro */
.pfa-form-wrap .fi-fo-field-wrp-error-msg,
.pfa-form-wrap [data-error-message] {
    color: #dc3545 !important;
    font-size: 0.85rem !important;
    margin-top: 0.35rem !important;
    display: block !important;
}

/* Inputs com erro */
.pfa-form-wrap .fi-sc-text-input.fi-invalid,
.pfa-form-wrap .fi-input.fi-invalid,
.pfa-form-wrap [data-has-error] .fi-sc-text-input,
.pfa-form-wrap [data-has-error] .fi-input {
    border-color: #dc3545 !important;
}

.pfa-form-wrap .fi-sc-text-input.fi-invalid:focus,
.pfa-form-wrap .fi-input.fi-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.public-footer .social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.public-footer .social-links a:hover {
    transform: scale(1.2);
}

/* ---- SCROLL TO TOP BUTTON CSS ---- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.scroll-to-top:hover {
    background: #0b5ed7;
    color: #fff;
    transform: translateY(-5px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ---- BADGES CSS ---- */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* ---- BUTTONS CSS ---- */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border: 2px solid #0d6efd;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    transform: translateY(-2px);
}

/* ---- RESPONSIVE MEDIA QUERIES ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stats-section {
        margin-top: -30px;
    }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ---- LOADING SPINNER ---- */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(13, 110, 253, 0.3);
    border-radius: 50%;
    border-top-color: #0d6efd;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
