/* ============================================
   MODERN PROFILE PAGE STYLES
   Creative, Clean & Mobile Responsive Design
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Genel Sayfa Ayarları --- */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    color: var(--text-primary);
}

/* --- Mobil Hamburger Menü --- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* --- Ana Kapsayıcı --- */
.profile-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* --- Sol Menü (Sidebar) --- */
.profile-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.profile-header {
    padding: 0.875rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-avatar {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-avatar i {
    font-size: 1.75rem;
    color: white;
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.profile-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0.35rem 0 0;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.tab-navigation {
    flex-grow: 1;
    padding: 0.75rem 0.625rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Sidebar scrollbar */
.profile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.profile-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.profile-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.profile-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.tab-navigation::-webkit-scrollbar {
    width: 6px;
}

.tab-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.tab-navigation::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tab-navigation::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* --- Navigasyon Linkleri --- */
.tab-navigation .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-navigation .nav-item {
    margin-bottom: 0.2rem;
}

.tab-navigation .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.tab-navigation .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.tab-navigation .nav-link i {
    margin-right: 0.5rem;
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.tab-navigation .nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}

.tab-navigation .nav-link:hover::before {
    transform: scaleY(1);
}

.tab-navigation .nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.tab-navigation .nav-link.active::before {
    transform: scaleY(1);
}

.tab-navigation .nav-link.active i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.profile-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.back-button {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.back-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.back-button i {
    transition: var(--transition);
}

.back-button:hover i {
    transform: translateX(-4px);
}

/* --- Sağ Ana İçerik Alanı --- */
.profile-main-content {
    flex-grow: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
    position: relative;
}

.profile-main-content::-webkit-scrollbar {
    width: 8px;
}

.profile-main-content::-webkit-scrollbar-track {
    background: transparent;
}

.profile-main-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.profile-main-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* --- CV Güncelleme Bildirimi --- */
.cv-update-notice {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cv-notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cv-notice-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--warning-color) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.cv-notice-text {
    flex: 1;
    min-width: 200px;
}

.cv-notice-text strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.cv-notice-action {
    flex-shrink: 0;
}

.btn-cv-update {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-cv-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-cv-update:active {
    transform: translateY(0);
}

.btn-cv-update .spinner {
    display: none;
}

.btn-cv-update.loading .spinner {
    display: inline-block;
}

/* --- Form Sekmeleri --- */
.tab-pane {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Form Başlıkları --- */
.section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* --- Modern Form Stilleri --- */
.profile-form {
    width: 100%;
}

/* İki Sütunlu Form Layout */
.profile-form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-form-left,
.profile-form-right {
    display: flex;
    flex-direction: column;
}

.form-section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.form-section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group-profile-photo {
    margin-bottom: 0.75rem;
}

.form-section-title-email {
    margin-top: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Kişisel Bilgiler: Ad, Soyad, Tam Ad, Cinsiyet yan yana; Özet tam genişlik */
.form-grid.form-grid-personal {
    grid-template-columns: repeat(4, 1fr);
}

.summary-textarea {
    width: 100%;
    min-height: 140px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
}

.summary-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Sosyal Medya ve Web: 3 URL alanı yan yana */
.form-grid.form-grid-three-cols {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Temel Bilgiler Özel Stilleri --- */
.basic-info-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.info-section-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-section-title i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.input-wrapper {
    position: relative;
}

.form-control-modern {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control-modern:read-only {
    background: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.8;
}

.form-control-modern::placeholder {
    color: var(--text-light);
}

.password-input {
    display: flex;
    align-items: center;
}

.password-input .form-control-modern {
    padding-right: 2.5rem;
}

.toggle-pass {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pass:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.15rem;
    line-height: 1.4;
}

/* --- Butonlar --- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary-modern {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:active {
    transform: translateY(0);
}

.btn-primary-modern i {
    font-size: 0.9rem;
}

/* --- İkincil Buton Stili --- */
.btn-secondary-modern {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-secondary-modern:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary-modern:active {
    transform: translateY(0);
}

.btn-secondary-modern i {
    font-size: 1rem;
}

/* --- İçerik Kartları --- */
.content-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    min-height: 120px;
}

/* --- Modern Tablo Stilleri --- */
.table-responsive-modern {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-modern thead th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.table-modern tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

.table-modern tbody td {
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    vertical-align: middle;
}

.table-modern tbody td:empty::before {
    content: '—';
    color: var(--text-light);
    font-style: italic;
}

/* Tablo içindeki input-group stilleri */
.table-modern .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 150px;
}

.table-modern .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 40px;
    flex-shrink: 0;
}

.table-modern .input-group-text i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.table-modern .input-group .form-control {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 0;
}

.table-modern .input-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    z-index: 2;
}

.table-modern .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.table-modern .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: auto;
}

/* --- Responsive Tasarım --- */
@media (max-width: 1024px) {
    .profile-form-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.form-grid-three-cols {
        grid-template-columns: 1fr;
    }

    .form-grid.form-grid-personal {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-card {
        padding: 1.5rem;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .input-group {
        flex-direction: row;
        gap: 0;
    }

    .input-group-text {
        padding: 0 0.75rem;
        min-width: 45px;
        font-size: 0.9rem;
    }

    .input-group .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .certificate-item .input-group,
    .hobby-item .input-group,
    .language-item .input-group {
        flex-direction: row;
        gap: 0;
    }

    .certificate-item .input-group-text,
    .hobby-item .input-group-text,
    .language-item .input-group-text {
        padding: 0 0.75rem;
        min-width: 45px;
        font-size: 0.9rem;
        border-right: none;
    }

    .certificate-item .form-control,
    .hobby-item .form-control,
    .language-item .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
        border-left: none;
        border-right: none;
    }

    .certificate-item .btn,
    .hobby-item .btn,
    .language-item .btn {
        padding: 0.75rem 0.875rem;
        min-width: 40px;
        margin-left: 0;
        border-left: none;
    }

    .table-modern .input-group {
        flex-direction: row;
        min-width: 120px;
    }

    .table-modern .input-group-text {
        padding: 0 0.5rem;
        min-width: 35px;
        font-size: 0.8rem;
        border-right: none;
    }

    .table-modern .input-group .form-control {
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .profile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 1000;
        width: 280px;
        box-shadow: var(--shadow-xl);
    }

    .profile-sidebar.active {
        transform: translateX(0);
    }

    .profile-main-content {
        padding: 4rem 0.75rem 1rem;
        margin-left: 0;
    }

    .tab-pane {
        padding: 1rem;
        margin-top: 0.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .cv-notice-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-notice-action {
        width: 100%;
    }

    .btn-cv-update {
        width: 100%;
        justify-content: center;
    }

    .profile-form-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-section-card {
        padding: 0.875rem 1rem;
    }

    .form-section-title {
        font-size: 0.95rem;
    }

    .basic-info-sections {
        gap: 0.875rem;
    }

    .info-section-card {
        padding: 0.875rem 1rem;
    }

    .info-section-title {
        font-size: 0.95rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.form-grid-personal {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary-modern {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .profile-main-content {
        padding: 3.5rem 0.5rem 0.75rem;
    }

    .tab-pane {
        padding: 0.875rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .form-grid {
        gap: 0.75rem;
    }

    .profile-header {
        padding: 0.75rem 0.875rem;
    }

    .profile-avatar {
        width: 44px;
        height: 44px;
    }

    .profile-avatar i {
        font-size: 1.5rem;
    }

    .profile-name {
        font-size: 0.9rem;
    }
}

/* --- Diğer Form Bölümleri için Genel Stiller --- */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-secondary);
    font-size: 1rem;
    min-width: 50px;
    flex-shrink: 0;
    z-index: 1;
}

.input-group-text i {
    color: var(--primary-color);
}

.input-group .form-control {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    z-index: 2;
}

.input-group .form-control:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.input-group .btn {
    margin-left: 0.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

/* Dinamik eklenen elemanlar için özel stiller */
.certificate-item,
.hobby-item,
.language-item {
    margin-bottom: 1rem;
    width: 100%;
}

.certificate-item .input-group,
.hobby-item .input-group,
.language-item .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.certificate-item .input-group-text,
.hobby-item .input-group-text,
.language-item .input-group-text {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    min-width: 50px;
}

.certificate-item .form-control,
.hobby-item .form-control,
.language-item .form-control {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: var(--bg-primary);
}

.certificate-item .btn,
.hobby-item .btn,
.language-item .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: none;
    margin-left: 0;
}

.certificate-item .input-group:focus-within .input-group-text,
.hobby-item .input-group:focus-within .input-group-text,
.language-item .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
}

.certificate-item .form-control:focus,
.hobby-item .form-control:focus,
.language-item .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Remove butonları için modern stil */
.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:active {
    transform: translateY(0);
}

.btn-outline-danger i {
    font-size: 0.9rem;
}

/* --- Yetenekler Bölümü Stilleri --- */
.skill-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.skill-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.skill-input:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    outline: none;
    transform: translateY(-2px);
}

.skill-input::placeholder {
    color: var(--text-light);
    font-style: italic;
}

.skills-list-container {
    min-height: 120px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    box-shadow: inset var(--shadow-sm);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag .skill-text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.skill-tag .remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.skill-tag .remove-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    color: #ff6b6b;
}

.skill-tag .remove-item:active {
    transform: scale(0.95);
}

@keyframes skillTagAppear {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.skill-tag.new {
    animation: skillTagAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes skillTagRemove {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.3) rotate(10deg);
    }
}

.skill-tag.removing {
    animation: skillTagRemove 0.3s ease-in-out forwards;
}

.skills-list:empty::before {
    content: '🎯 Henüz yetenek eklenmedi. Yukarıdaki alana yazarak yeteneklerinizi ekleyebilirsiniz.';
    display: block;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
}

/* --- Proje Deneyimleri Bölümü Stilleri --- */
.project-item {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.project-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-bottom: 1px solid transparent;
}

.project-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.project-header.active {
    background: rgba(99, 102, 241, 0.08);
    border-bottom-color: var(--border-color);
}

.project-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}

.project-header:hover .project-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.project-title {
    flex: 1;
    margin-left: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.project-title.empty {
    color: var(--text-light);
    font-style: italic;
    font-weight: 400;
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-toggle {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.accordion-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.accordion-toggle i {
    transition: transform 0.3s ease;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.remove-project {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--danger-color);
    background: transparent;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.remove-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--danger-color);
    transition: left 0.3s ease;
}

.remove-project:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.remove-project:hover::before {
    left: 0;
}

.remove-project i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.project-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.project-body.active {
    max-height: 1000px;
    padding: 2rem;
}

.project-body .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.project-body .form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-body .form-label::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.project-body .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.project-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    outline: none;
    transform: translateY(-2px);
    background: var(--bg-primary);
}

.project-body .form-control::placeholder {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
}

.project-description {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

@keyframes projectCardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-item.new {
    animation: projectCardAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes projectCardRemove {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
}

.project-item.removing {
    animation: projectCardRemove 0.4s ease-in-out forwards;
}

#projectsList:empty::before {
    content: '🚀 Henüz proje eklenmedi. "Yeni Proje Ekle" butonuna tıklayarak projelerinizi ekleyebilirsiniz.';
    display: block;
    width: 100%;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
    margin-bottom: 2rem;
}

#btnUpdateCv.loading {
    pointer-events: none;
    opacity: 0.7;
}

#btnUpdateCv .spinner {
    display: none;
}

#btnUpdateCv.loading .spinner {
    display: inline-block;
    margin-right: 6px;
}

/* --- Responsive İyileştirmeler --- */
@media (max-width: 768px) {
    .skills-list-container {
        padding: 1rem;
        max-height: 300px;
    }
    
    .skill-tag {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .skill-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .project-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .project-header {
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .remove-project {
        width: 35px;
        height: 35px;
    }
    
    .project-body .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .skills-list {
        gap: 0.5rem;
    }
    
    .skill-tag {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .skill-tag .remove-item {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .project-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
    
    .project-body .form-label {
        font-size: 0.95rem;
    }
    
    .project-body .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .project-description {
        min-height: 100px;
    }
}

.profile-progress {
    width: 100%;
}

    .profile-progress .progress {
        background-color: #e9ecef;
    }

    .profile-progress small {
        color: #6c757d;
        font-weight: 500;
    }

/* === Başvurularım – İşlemler (her zaman görünen ikon butonlar) === */

.actions-cell {
    position: relative;
    min-width: 120px;
}

.row-actions-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

/* İkon buton – net buton görünümü (tooltip için relative) */
.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn i {
    font-size: 14px;
}

/* Sabit tooltip – overflow kesmesin diye body'de, JS ile konumlanır */
.action-btn-tooltip-fixed {
    position: fixed;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 9999;
    transform: translateX(-50%) translateY(-4px);
}

.action-btn-tooltip-fixed::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-bottom-color: var(--secondary-color);
}

.action-btn-tooltip-fixed.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.action-btn-tooltip-fixed.is-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.action-btn-tooltip-fixed.is-danger::after {
    border-bottom-color: #b91c1c;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.action-btn:active {
    transform: scale(0.97);
}

/* Tehlikeli işlem (geri çek) */
.action-btn-danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger-color);
}

.action-btn-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger-color);
    color: var(--danger-color);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.action-btn-success {
    border-color: rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

.action-btn-success:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: #16a34a;
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.offer-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.offer-status-badge--pending {
    background: #e0f2fe;
    color: #0369a1;
}

.offer-status-badge--accepted {
    background: #dcfce7;
    color: #15803d;
}

.offer-status-badge--rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.offer-status-badge--expired {
    background: #f3f4f6;
    color: #6b7280;
}

.offer-status-badge--default {
    background: #eef2ff;
    color: #4338ca;
}

.candidate-offer-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.candidate-offer-detail__label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

@media (max-width: 767.98px) {
    .candidate-offer-detail__grid {
        grid-template-columns: 1fr;
    }
}
