/* İK Yönetimi Eklentisi - Frontend Stilleri */

/* ==========================================================================
   İş İlanları Listesi Stilleri
   ========================================================================== */

.ik-job-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filtre Alanı */
.ik-job-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.ik-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.ik-filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.ik-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ik-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ik-search-btn {
    padding: 12px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ik-search-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.ik-search-icon {
    font-size: 14px;
}

.ik-clear-search {
    padding: 12px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ik-clear-search:hover {
    background: #5a6268;
    color: white;
}

/* İş İlanları Grid */
.ik-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ik-job-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ik-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

.ik-job-header {
    margin-bottom: 16px;
}

.ik-job-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ik-job-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6c757d;
}

.ik-job-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ik-icon {
    font-size: 16px;
}

.ik-job-description {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 16px;
}

.ik-job-requirements {
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.ik-job-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ik-apply-btn, .ik-detail-btn, .ik-general-apply-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.ik-apply-btn {
    background: #28a745;
    color: white;
}

.ik-apply-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.ik-detail-btn {
    background: #007cba;
    color: white;
}

.ik-detail-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.ik-general-apply-btn {
    background: #17a2b8;
    color: white;
    margin-top: 16px;
    padding: 16px 24px;
    font-size: 16px;
}

.ik-general-apply-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.ik-btn-icon {
    font-size: 16px;
}

/* İş Bulunmadığında */
.ik-no-jobs {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.ik-no-jobs-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.ik-no-jobs h3 {
    font-size: 24px;
    color: #495057;
    margin-bottom: 12px;
}

.ik-no-jobs p {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
}

.ik-general-application {
    max-width: 400px;
    margin: 0 auto;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Diğer Başvuru Kanalları */
.ik-other-channels {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 30px;
}

.ik-other-channels h4 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
}

.ik-channels-list {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.ik-channel-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 220px;
}

.ik-channel-link:hover {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.ik-channel-icon {
    font-size: 18px;
}

.ik-channel-logo {
    width: 200px;
    height: 65px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ik-channel-text {
    font-weight: 500;
}

/* ==========================================================================
   Modal Stilleri
   ========================================================================== */

.ik-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.ik-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.ik-modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

.ik-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
}

.ik-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ik-modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

.ik-modal-body {
    padding: 0 24px;
}

.ik-modal-footer {
    padding: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    margin-top: 24px;
}

.ik-cancel-btn {
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ik-cancel-btn:hover {
    background: #5a6268;
}

/* ==========================================================================
   Başvuru Formu Stilleri
   ========================================================================== */

.ik-application-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.ik-application-form-container h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
}

.ik-application-form {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.ik-form-group {
    margin-bottom: 20px;
}

.ik-form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.ik-form-group input,
.ik-form-group textarea,
.ik-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.ik-form-group input:focus,
.ik-form-group textarea:focus,
.ik-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.ik-form-group input[type="file"] {
    padding: 12px;
    background: #f8f9fa;
    border-style: dashed;
}

.ik-file-info {
    margin-top: 8px;
}

.ik-file-info small {
    color: #6c757d;
    font-size: 13px;
}

.ik-file-preview {
    margin-top: 12px;
    padding: 12px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ik-file-name {
    font-weight: 500;
    color: #155724;
}

.ik-file-remove {
    cursor: pointer;
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ik-file-remove:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Captcha Stilleri */
.ik-captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ik-captcha-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ik-captcha-question {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
    background: white;
    padding: 12px 16px;
    border-radius: 6px;
    border: 2px solid #007cba;
    min-width: 120px;
    text-align: center;
}

.ik-captcha-container input {
    max-width: 100px;
    text-align: center;
    font-weight: 600;
}

/* Form Butonları */
.ik-form-actions {
    margin-top: 32px;
    text-align: center;
}

.ik-submit-btn {
    padding: 16px 32px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.ik-submit-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.ik-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ik-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ik-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Mesajları */
.ik-form-messages {
    margin-top: 20px;
}

.ik-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}

.ik-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

/* ==========================================================================
   Başarı Popup Stilleri
   ========================================================================== */

.ik-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.ik-popup-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    animation: popUp 0.3s ease forwards;
}

@keyframes popUp {
    to { transform: scale(1); }
}

.ik-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.ik-success-icon svg {
    width: 40px;
    height: 40px;
    stroke-width: 3;
}

.ik-popup-content h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 16px;
}

.ik-popup-content p {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 32px;
}

.ik-popup-close {
    padding: 12px 32px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ik-popup-close:hover {
    background: #005a87;
}

/* ==========================================================================
   İş Detayları ve Başvuru Sayfası
   ========================================================================== */

.ik-job-application-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ik-job-info {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ik-job-info h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
}

.ik-job-details {
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
}

.ik-job-details h4 {
    color: #007cba;
    font-size: 20px;
    margin: 24px 0 12px 0;
}

.ik-job-details ul {
    padding-left: 20px;
}

.ik-job-details li {
    margin-bottom: 8px;
}

.ik-application-form-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ik-application-form-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

/* ==========================================================================
   Responsive Tasarım
   ========================================================================== */

@media (max-width: 768px) {
    .ik-job-listings {
        padding: 15px;
    }
    
    .ik-jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ik-job-card {
        padding: 20px;
    }
    
    .ik-job-title {
        font-size: 18px;
    }
    
    .ik-job-actions {
        flex-direction: column;
    }
    
    .ik-apply-btn, .ik-detail-btn {
        flex: none;
        width: 100%;
    }
    
    .ik-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ik-filter-group {
        min-width: auto;
        flex-direction: column;
    }
    
    .ik-search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ik-channels-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .ik-channel-link {
        width: 100%;
        max-width: 250px;
        min-width: auto;
    }
    
    .ik-channel-logo {
        width: 150px;
        height: 48px;
    }
    
    /* Form responsive */
    .ik-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ik-application-form {
        padding: 24px;
    }
    
    .ik-captcha-container {
        flex-direction: column;
        text-align: center;
    }
    
    .ik-captcha-question {
        min-width: auto;
    }
    
    /* Modal responsive */
    .ik-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .ik-modal-header {
        padding: 20px 20px 0;
    }
    
    .ik-modal-body {
        padding: 0 20px;
    }
    
    .ik-modal-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .ik-apply-btn, .ik-cancel-btn {
        width: 100%;
    }
    
    /* Popup responsive */
    .ik-popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .ik-success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .ik-success-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .ik-popup-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .ik-job-card {
        padding: 16px;
    }
    
    .ik-job-title {
        font-size: 16px;
    }
    
    .ik-channel-logo {
        width: 120px;
        height: 39px;
        padding: 3px;
    }
    
    .ik-channel-link {
        min-width: auto;
        padding: 12px;
    }
    
    .ik-application-form {
        padding: 20px;
    }
    
    .ik-form-group input,
    .ik-form-group textarea {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .ik-submit-btn {
        font-size: 14px;
        padding: 14px 24px;
        min-width: 160px;
    }
}
