/* --- 1. DEĞİŞKENLER VE TEMEL AYARLAR --- */
:root {
    --primary: #d11239; /* ODTÜ Kırmızısı */
    --primary-hover: #b00f2e;
    --success: #10b981; /* Yeşil Onay */
    --bg-light: #f8fafc; /* Yumuşak arka plan */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Giriş ekranında flexbox'ı korumak için */
body:has(.auth-container) {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =============================================================
   /* === YENİ EKLENECEK KODLAR BURAYA (BÖLÜM 14+) === 
   ============================================================= */

/* --- 13. GÜNDEM (FEED) VE TAB SİSTEMİ --- */
.feed-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.feed-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    margin-bottom: 30px;
    gap: 8px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
}

/* Feed Kart Tasarımı */
.feed-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feed-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.badge-urgent { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.badge-general { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

.event-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.feed-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.loading-state {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-style: italic;
}

/* --- 12. İLETİŞİM, MESAJLAŞMA VE VİTRİN --- */
.showcase-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 15px; 
    margin: 20px 0 40px; 
}

.showcase-card { 
    background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%); 
    border: 2px dashed var(--primary); 
    padding: 20px; 
    border-radius: 15px; 
    text-align: center;
    transition: 0.3s;
}

.showcase-card:hover {
    transform: scale(1.02);
    border-style: solid;
}

.team-title { 
    color: var(--primary); 
    font-weight: 800; 
    font-size: 1.1rem; 
    margin-bottom: 10px; 
    display: block; 
}

.chat-container {
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    height: 450px; 
    box-shadow: var(--shadow);
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-image: radial-gradient(var(--border) 0.5px, transparent 0.5px); 
    background-size: 20px 20px;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.msg-me { 
    align-self: flex-end; 
    background: var(--primary); 
    color: white; 
    border-bottom-right-radius: 4px; 
}

.msg-them { 
    align-self: flex-start; 
    background: #f1f5f9; 
    color: var(--text-dark); 
    border-bottom-left-radius: 4px; 
    border: 1px solid var(--border);
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 0 0 15px 15px;
}

.contact-info-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info-card a {
    color: #0077b5;
    text-decoration: none;
    font-weight: 600;
}

.chat-active-btn {
    background: var(--success) !important;
}

/* --- 11. MENTÖRLÜK SİSTEMİ --- */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mentor-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}

.mentor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.mentor-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    background: var(--bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
}

.mentor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin: 15px 0;
}

/* --- 10. MOBİL UYUMLULUK VE NAVİGASYON (Android Fix) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important; 
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 20px; /* Padding biraz daraltıldı */
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        border-left: 1px solid var(--border);
        align-items: flex-start;
        gap: 0;
        display: flex;
        /* Yeni eklenen: Çok fazla link varsa aşağı kaydırılabilir olsun */
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    .nav-links.mobile-active {
        right: 0 !important;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1.1rem;
        display: block;
        color: var(--text-dark);
    }

    /* Mobilde Logout/Çıkış Butonu Özel Ayarı */
    .nav-links button {
        width: 100%;
        text-align: left;
        padding: 15px 10px;
        border: none;
        background: none;
        color: var(--primary);
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        padding: 15px;
    }

    .auth-container {
        width: 90%;
        padding: 1.5rem;
    }

    .member-grid {
        grid-template-columns: 1fr !important;
    }

    #global-map {
        height: 350px;
    }

    .admin-container {
        width: 95%;
        padding: 15px;
        overflow-x: auto;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .job-card .btn-primary {
        width: 100%;
    }
}
/* --- 9. DUYURULAR VE ETKİNLİKLER --- */
.announcement-item {
    border-left: 4px solid var(--primary);
    padding: 15px;
    background: #fff5f6;
    border-radius: 0 10px 10px 0;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.announcement-item:hover {
    transform: translateX(5px);
}

.announcement-item h4 { 
    margin: 0 0 5px 0; 
    color: var(--text-dark); 
    font-size: 1rem;
}

.announcement-item p { 
    margin: 0; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    line-height: 1.4;
}

.announcement-date { 
    font-size: 0.75rem; 
    color: var(--primary); 
    font-weight: 600; 
    display: block; 
    margin-bottom: 5px; 
}

.event-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.event-item:hover {
    background: #f8fafc;
}

.event-date-box {
    background: var(--primary);
    color: white;
    min-width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 4px 6px rgba(209, 18, 57, 0.15);
}

.event-date-box .day { 
    font-size: 1.3rem; 
    font-weight: 800; 
}

.event-date-box .month { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    font-weight: 600;
}

.event-info h4 { 
    margin: 0; 
    font-size: 0.95rem; 
    color: var(--text-dark); 
}

.event-info p { 
    margin: 4px 0 0 0; 
    font-size: 0.8rem; 
    color: var(--text-muted); 
}

.event-info i {
    color: var(--primary);
    margin-right: 4px;
}

/* --- 8. KARİYER VE İŞ İLANLARI --- */
.career-container {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.career-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-job-btn {
    background: var(--primary);
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(209, 18, 57, 0.2);
}

.post-job-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.job-form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.job-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.job-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.job-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--primary);
}

.job-meta span i {
    margin-right: 5px;
}

/* --- 7. ÜYELER VE NETWORK SAYFASI --- */
.member-header {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 20px;
    text-align: center;
}

#global-map {
    height: 500px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 1;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.member-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.member-card img.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
    border: 3px solid #f1f5f9;
}

.member-card h3 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.member-card .dept-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.member-card .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 15px;
}

.skill-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 500;
}

.linkedin-btn {
    color: #0077b5;
    font-size: 1.4rem;
    transition: 0.2s;
}

.linkedin-btn:hover {
    color: #005582;
    transform: scale(1.1);
}

/* --- 6. PROFİL VE FORM DETAYLARI --- */
.profile-card {
    background: var(--white);
    max-width: 800px;
    margin: 40px auto;
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-title {
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 25px;
    color: var(--text-dark);
    font-size: 1.4rem;
}

#map {
    height: 350px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

textarea {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209, 18, 57, 0.1);
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.btn-save {
    background: var(--primary);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-save:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 18, 57, 0.2);
}

/* --- 5. NAVIGASYON (Dashboard Menüsü - Revize) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- 4. ADMIN PANELI (Tablo ve Liste) --- */
.admin-container {
    background: var(--white);
    width: 95%;
    max-width: 1100px;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin: 40px auto;
}

h1 {
    color: var(--text-dark);
    font-size: 1.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

th {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 15px;
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

tr:hover td {
    background-color: #fff9fa;
}

.btn-approve {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-approve:hover {
    opacity: 0.9;
}

/* --- 3. FORMLAR VE ELEMENTLER --- */
input, select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(209, 18, 57, 0.1);
}

.btn-primary, .btn-main {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.options a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.switch-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.switch-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* --- 2. GİRİŞ VE KAYIT KARTI (Auth Card) --- */
.auth-container {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    max-height: 95vh;
    overflow-y: auto;
    margin: 20px;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    max-width: 100px; height: auto; margin-bottom: 1rem;
}

h2 {
    text-align: center; color: var(--text-dark); font-size: 1.5rem; margin-bottom: 1.5rem;
}

h2 small {
    display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 400; margin-top: 5px;
}
