/* WEEDDOO Oportunidades - Frontend CSS */

.weeddoo-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.weeddoo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.weeddoo-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #dc3545;
}

.weeddoo-input,
.weeddoo-textarea,
.weeddoo-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.weeddoo-select {
    height: auto;
    min-height: 44px;
    line-height: 1.4;
    padding-right: 35px;
    background-position: right 10px center;
    background-repeat: no-repeat;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.weeddoo-input:focus,
.weeddoo-textarea:focus,
.weeddoo-select:focus {
    outline: none;
    border-color: #0073aa;
}

.weeddoo-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.weeddoo-submit-btn:hover {
    background: #005a87;
}

.weeddoo-form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.weeddoo-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.weeddoo-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Grid Styles */
.weeddoo-grid-container {
    padding: 30px 0;
}

.weeddoo-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.weeddoo-search-input,
.weeddoo-filter-select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.weeddoo-search-input {
    flex: 2;
    min-width: 250px;
}

.weeddoo-filter-select {
    flex: 1;
    min-width: 180px;
    height: auto;
    line-height: 1.4;
}

.weeddoo-filter-btn {
    padding: 12px 30px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.weeddoo-filter-btn:hover {
    background: #005a87;
}

.weeddoo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.opportunity-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.opportunity-card h3 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 20px;
}

.opportunity-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 10px;
}

.badge-patrocinio {
    background: #fff3cd;
    color: #856404;
}

.badge-contratacao {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-internacional {
    background: #d4edda;
    color: #155724;
}

.badge-nacional {
    background: #cce5ff;
    color: #004085;
}

.opportunity-description {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.opportunity-company {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.ver-mais-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    font-size: 14px;
}

.ver-mais-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.inscricao-btn {
    width: 100%;
    padding: 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.inscricao-btn:hover {
    background: #218838;
}

/* Modal de Detalhes da Oportunidade */
.weeddoo-details-modal {
    padding: 40px 20px;
}

.opportunity-details-modal {
    background: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.opportunity-details-modal h2 {
    margin: 0 0 20px 0;
    color: #0073aa;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.details-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.badge-estado {
    background: #ffc107;
    color: #000;
}

.details-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.details-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.details-section p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.full-description {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.details-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.inscricao-btn-details {
    flex: 2;
    padding: 16px 32px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.inscricao-btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.close-details-btn {
    flex: 1;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.close-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

/* Modal Styles */
.weeddoo-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.weeddoo-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 35px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.weeddoo-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.weeddoo-modal-close:hover {
    color: #fff;
    background: #dc3545;
}

.weeddoo-modal-content h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

/* Formulário de Inscrição */
#weeddoo-inscricao-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#weeddoo-inscricao-form .weeddoo-form-group {
    margin-bottom: 0;
}

#weeddoo-inscricao-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

#weeddoo-inscricao-form .weeddoo-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

#weeddoo-inscricao-form .weeddoo-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

#weeddoo-inscricao-form .weeddoo-submit-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#weeddoo-inscricao-form .weeddoo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

#weeddoo-inscricao-form .weeddoo-submit-btn:active {
    transform: translateY(0);
}

#weeddoo-inscricao-form .weeddoo-form-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 0;
    display: none;
    font-weight: 500;
}

#weeddoo-inscricao-form .weeddoo-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#weeddoo-inscricao-form .weeddoo-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .weeddoo-grid {
        grid-template-columns: 1fr;
    }
    
    .weeddoo-filters {
        flex-direction: column;
    }
    
    .opportunity-details-modal {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .opportunity-details-modal h2 {
        font-size: 22px;
    }
    
    .details-section {
        padding: 15px;
    }
    
    .details-section h3 {
        font-size: 16px;
    }
    
    .details-actions {
        flex-direction: column;
    }
    
    .inscricao-btn-details,
    .close-details-btn {
        width: 100%;
        padding: 14px 24px;
    }
}