@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Lato:wght@400;700&display=swap');

/* style.css - Estilos globales para 100oficios.com */

/* Typography & Body */
body {
    font-family: 'Lato', sans-serif;
    background-color: #f9fafb;
    color: #374151;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #111827;
}

/* Navbar personalizado */
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* Botones personalizados */
.btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #1d4ed8;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Cards personalizadas */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
    border-radius: 10px 10px 0 0 !important;
}

.card-header h4 {
    color: #111827;
}

/* Estilos específicos para el formulario de publicar trabajo */
.card-post-job .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.card-post-job .form-control,
.card-post-job .form-select {
    border-radius: 0.5rem;
    border-color: #d1d5db;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-post-job .form-control:focus,
.card-post-job .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

.card-post-job .form-text {
    color: #6b7280;
}


/* Badges de urgencia */
.badge.bg-danger { background-color: #dc3545; }
.badge.bg-warning { background-color: #ffc107; color: #212529; }
.badge.bg-success { background-color: #28a745; }

/* Footer */
footer {
    background-color: #212529;
    color: #ffffff;
}

footer a {
    color: #ffc107;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand span {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Estilos para el panel de administración */
.table-dark {
    background-color: #343a40;
}

.table-dark th {
    color: #ffffff;
}

/* Estilos para las tarjetas de trabajos */
.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card .card-body {
    flex: 1;
}

/* Estilos para el contador de días */
.subscription-alert {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
}

.subscription-alert h4 {
    margin: 0;
    color: white;
}

/* Estilos para las estrellas de calificación */
.star-rating {
    font-size: 24px;
    color: #ffc107;
}

/* Estilos para los dropdowns */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Placeholder para imágenes */
img[alt="Sin imagen"] {
    background-color: #e9ecef;
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Carruseles */
.carousel-item img {
    object-fit: cover;
    height: 200px;
}

.star-rating-display {
    font-size: 16px;
    color: #ffc107;
}

/* Photo Upload Styling */
.photo-upload-container {
    border: 2px dashed #3b82f6;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background-color: #f9fafb;
    transition: background-color 0.2s ease-in-out;
}

.photo-upload-container.drag-over {
    background-color: #eff6ff;
    border-color: #2563eb;
}

.photo-upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #3b82f6;
}

.photo-upload-label i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.photo-upload-label span {
    font-weight: 500;
}

.photo-upload-label small {
    color: #6b7280;
    margin-top: 0.5rem;
}

.photo-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.photo-preview-item .remove-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.photo-preview-item:hover .remove-photo-btn {
    opacity: 1;
}
