/* Font Ayarı (Terminal Stili) */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace; /* Terminal benzeri font */
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #2c3e50, #34495e);  /* Karanlık mod arka plan */
    color: var(--text-color, #f1f1f1);
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Tema Değiştirici */
#mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    cursor: pointer;
}

#theme-icon {
    width: 25px;  /* Tema ikonunun boyutunu küçülttüm */
    height: 25px;
}

/* Light Mode */
.light-mode {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7); /* Aydınlık mod arka plan */
    --text-color: #2c3e50;
}

.light-mode body {
    color: #2c3e50; /* Aydınlık mod için yazı rengi */
}

/* Sidebar (Profil) */
.sidebar {
    width: 18%; /* Sidebar genişliğini biraz daralttım */
    background-color: rgba(44, 62, 80, 0.9); /* Karanlık mod sidebar arka plan */
    backdrop-filter: blur(10px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    position: fixed;
    z-index: 2;
}

.light-mode .sidebar {
    background-color: rgba(236, 240, 241, 0.85); /* Aydınlık mod sidebar arka plan */
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-img {
    width: 120px;  /* Profil resmini küçülttüm */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
    margin-bottom: 10px;
}

.sidebar h1 {
    font-size: 1.5rem; /* İsmi daha kompakt hale getirdim */
    color: var(--text-color, #ecf0f1);
    text-align: center;
    margin-bottom: 15px;
}

/* Sosyal Medya Butonları */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Aradaki boşlukları daralttım */
    margin-bottom: 20px;
}

.social-links a img {
    width: 25px;  /* Butonları küçülttüm */
    height: 25px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}

hr {
    width: 80%;
    border: 1px solid #444;
    margin: 15px 0;
}

.light-mode hr {
    border-color: #aaa; /* Aydınlık modda çizgi rengi */
}

/* Eğitim ve Diğer Bilgiler Bölümü */
.content {
    width: 75%;
    margin-left: 20%;  /* Sol kısımla aradaki boşluğu ayarladım */
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-section {
    width: 100%;
}

.info-item {
    background: rgba(255, 255, 255, 0.1); /* Karanlık mod için kutu arka planı */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.light-mode .info-item {
    background: rgba(255, 255, 255, 0.5); /* Aydınlık mod için kutu arka planı */
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.info-icon-text {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-icon {
    width: 28px; /* İkonları biraz daha küçülttüm */
    height: 28px;
    margin-right: 10px;
    position: relative;
    top: -2px; /* İkon hizalaması için hafifçe yukarı aldım */
}

.info-item h2 {
    font-size: 1.4rem;  /* Başlık boyutunu biraz küçülttüm */
    margin-bottom: 10px;
}

.info-item p {
    color: var(--text-color, #bdc3c7);
    margin-bottom: 5px;
}

.light-mode .info-item p {
    color: #2c3e50; /* Aydınlık modda yazı rengi */
}

.subtext {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.light-mode .subtext {
    color: #2c3e50; /* Aydınlık modda alt yazı rengi */
}

/* Ben Kimim? Bölümü */
.ben-kimim {
    width: 100%;
    order: 1;
    text-align: justify;
}

@media (min-width: 769px) {
    .ben-kimim {
        width: 45%;
        order: 0;
        float: right;
    }
}

/* Spotify Tasarımı */
.spotify-section {
    display: none; /* Şarkı durumu mevcutsa gösterilecek */
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

.spotify-now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
}

.spotify-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.spotify-info p {
    margin: 0;
}

#spotify-song-title {
    font-size: 1rem;
    font-weight: bold;
}

#spotify-time {
    font-size: 0.8rem;
    color: #bdc3c7;
}

#spotify-status {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

/* Kendi Scroll Bar Tasarımımız */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #34495e;
}

body::-webkit-scrollbar-thumb {
    background-color: #3498db;
    border-radius: 5px;
    border: 2px solid #34495e;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        margin-bottom: 20px;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .info-item {
        width: 100%;
    }

    .social-links {
        margin-bottom: 15px;
    }
}
