/* Aviation Talent Network - Frontend Styles */

/* General Styles */
.atn-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.atn-button:hover {
    background: #e0e0e0;
}

.atn-button-primary {
    background: #0073aa;
    color: #fff;
}

.atn-button-primary:hover {
    background: #005a87;
}

/* Job Seeker Profile */
.atn-job-seeker-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.atn-profile-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.atn-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.atn-tab-button:hover {
    color: #0073aa;
}

.atn-tab-button.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.atn-tab-content {
    display: none;
}

.atn-tab-content.active {
    display: block;
}

/* Forms */
.atn-form-group {
    margin-bottom: 20px;
}

.atn-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.atn-form-group input[type="text"],
.atn-form-group input[type="email"],
.atn-form-group input[type="tel"],
.atn-form-group input[type="url"],
.atn-form-group input[type="number"],
.atn-form-group select,
.atn-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.atn-form-group textarea {
    resize: vertical;
}

.atn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Skills List */
.atn-skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.atn-skill-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.atn-skill-item h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.atn-skill-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Certifications List */
.atn-certs-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.atn-cert-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.atn-cert-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.atn-cert-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Training List */
.atn-training-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.atn-training-item {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.atn-training-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.atn-training-item p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Job Matches */
.atn-job-matches {
    display: grid;
    gap: 20px;
}

.atn-job-match-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: relative;
}

.match-score-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.atn-job-match-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.job-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-item {
    font-size: 13px;
    color: #666;
}

/* Applications Table */
.atn-applications-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.atn-applications-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.atn-applications-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef6e8;
    color: #d68500;
}

.status-approved {
    background: #e8f6f0;
    color: #00a854;
}

.status-rejected {
    background: #fee8e8;
    color: #d63638;
}

/* Job Listings */
.atn-job-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.atn-search-filters {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.atn-search-filters h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
}

.search-row input,
.search-row select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.atn-jobs-grid {
    display: grid;
    gap: 25px;
}

.atn-job-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.atn-job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.atn-job-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 22px;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.skill-tag {
    background: #e8f4f8;
    color: #0073aa;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.job-posted {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

.atn-pagination {
    margin-top: 40px;
    text-align: center;
}

.atn-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.atn-pagination a:hover,
.atn-pagination .current {
    background: #0073aa;
    color: #fff;
}

/* Modal */
.atn-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atn-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.atn-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.atn-modal-close:hover {
    color: #333;
}

.atn-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* No Results */
.atn-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.atn-no-results p {
    font-size: 16px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .atn-form-row {
        grid-template-columns: 1fr;
    }
    
    .atn-profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .atn-tab-button {
        white-space: nowrap;
    }
    
    .job-actions {
        flex-direction: column;
    }
}
