/* Light tema varsayılan değişkenler */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --card-background: #ffffff;
    --section-padding: 2rem;
    --hover-color: #3498db;
    --header-bg: #ffffff;
    --header-text: #2c3e50;
    --skill-bg: #f8f9fa;
    --skill-hover: #3498db;
    --skill-text: #2c3e50;
    --skill-hover-text: #ffffff;
    --border-color: #e1e8ed;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark tema için değişkenler */
[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #1a1a2e;
    --text-color: #ffffff;
    --card-background: #2c3e50;
    --header-bg: #2c3e50;
    --header-text: #ffffff;
    --skill-bg: #34495e;
    --skill-hover: #2ecc71;
    --skill-text: #ffffff;
    --skill-hover-text: #ffffff;
    --border-color: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    margin-top: 60px;  /* Üst kontrol çubuğu için alan */
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tema switch butonu */
.controls-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-bottom: 1px solid var(--border-color);
}

/* Tema switch container */
.theme-switch {
    position: relative;
    width: 64px;
    height: 32px;
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.theme-switch:focus {
    outline: none;
    background: transparent;
}

.theme-switch:focus-visible {
    outline: none;
    background: transparent;
}

/* Gizli checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
}

.theme-switch input:focus {
    outline: none;
}

.theme-switch input:focus-visible {
    outline: none;
}

/* Switch arka planı */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #4299e1;
    transition: 0.3s ease-in-out;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    box-sizing: border-box;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.slider:focus {
    outline: none;
    background-color: #4299e1;
}

.slider:active {
    background-color: #4299e1;
}

/* İkonlar için ortak stiller */
.slider .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
    font-size: 16px;
    transition: 0.3s ease-in-out;
    background: transparent;
}

/* Switch yuvarlak düğmesi */
.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 2px;
    top: 2px;
    background-color: white;
    transition: 0.3s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

/* Güneş ikonu */
.slider .sun-icon::before {
    content: "☀️";
    background: transparent;
}

/* Ay ikonu */
.slider .moon-icon::before {
    content: "🌙";
    background: transparent;
}

/* Switch aktif durumu */
.theme-switch input:checked + .slider {
    background-color: #2b6cb0;
}

.theme-switch input:checked + .slider:focus {
    background-color: #2b6cb0;
}

.theme-switch input:checked + .slider:active {
    background-color: #2b6cb0;
}

/* Switch yuvarlak düğmesi aktif durumu */
.theme-switch input:checked + .slider:before {
    transform: translateX(32px);
}

/* Hover efektleri */
.slider:hover:before {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-switch-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    z-index: 1;
}

.theme-switch-icon {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.theme-switch[data-theme="light"] .sun {
    opacity: 1;
    color: #f1c40f;
}

.theme-switch[data-theme="dark"] .moon {
    opacity: 1;
    color: #f1c40f;
}

/* Light tema için switch renkleri */
[data-theme="light"] .theme-switch {
    background: #e1e8ed;
}

/* Dark tema için switch renkleri */
[data-theme="dark"] .theme-switch {
    background: #2c3e50;
}

header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: var(--section-padding);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    margin: 0;
    border-radius: 0;
    background: transparent;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    object-fit: cover;
}

.language-selector {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.language-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
}

.language-btn:hover {
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.language-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--shadow-color);
    border: 2px solid var(--primary-color);
    opacity: 1;
}

.language-btn.active .flag-icon {
    opacity: 1;
}

.flag-icon {
    width: 25px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid var(--card-background);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 1.5rem 0;
    font-size: 2.5rem;
    color: var(--text-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--card-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-item i {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.country-flag {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

section {
    background-color: var(--card-background);
    padding: var(--section-padding);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

section:hover {
    transform: translateY(-5px);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.skill {
    background-color: var(--skill-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--skill-text);
    border: 1px solid var(--border-color);
}

.skill:hover {
    transform: translateY(-3px);
    background-color: var(--skill-hover);
    color: var(--skill-hover-text);
}

.job {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--skill-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.job:last-child {
    margin-bottom: 0;
}

.job h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.date {
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 0.5rem;
}

ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.edu {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--skill-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.personal-item {
    background-color: var(--skill-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Mobil düzenlemeler */
@media (max-width: 768px) {
    .controls-container {
        padding: 8px 12px;
        gap: 10px;
    }

    .theme-switch {
        width: 56px;
        height: 28px;
    }

    .slider:before {
        height: 24px;
        width: 24px;
        top: 2px;
    }

    .slider .icon {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .theme-switch input:checked + .slider:before {
        transform: translateX(28px);
    }

    .theme-switch-icon {
        font-size: 10px;
    }

    .language-btn {
        min-width: 30px;
        padding: 2px;
    }

    .flag-icon {
        width: 22px;
        height: 14px;
    }

    .container {
        margin-top: 50px;
        padding: 15px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin: 0;
        gap: 1.5rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .profile-info h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .contact-item {
        padding: 0.6rem 0.8rem;
    }

    .country-flag {
        font-size: 1rem;
    }

    /* Mobil font boyutları */
    body {
        font-size: 14px;
    }

    /* Header kontrolleri */
    .controls {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .language-selector {
        gap: 0.35rem;
    }

    .language-selector img {
        width: 18px;
        height: 12px;
    }

    /* İçerik boşlukları */
    .profile-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .contact-info {
        gap: 0.6rem;
    }

    /* Profil fotoğrafı */
    .profile-photo {
        width: 140px;
        height: 140px;
        border-radius: 16px;
        border-width: 2px;
    }

    /* Bölüm başlıkları ve içerik */
    section {
        margin: 1.5rem 0;
        padding: 0.8rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .controls-container {
        padding: 6px 8px;
        gap: 8px;
    }

    .language-selector {
        gap: 4px;
    }

    .flag-icon {
        width: 20px;
        height: 13px;
    }
}

/* Scrollbar tasarımı - Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--card-background);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid var(--card-background);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Dark tema için scrollbar renkleri */
[data-theme="dark"]::-webkit-scrollbar-track {
    background: var(--primary-color);
    border-left: 1px solid var(--border-color);
}

[data-theme="dark"]::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
}

/* Firefox için scrollbar tasarımı */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--card-background);
}

[data-theme="dark"] * {
    scrollbar-color: var(--secondary-color) var(--primary-color);
}

/* Mobil için scrollbar ayarları */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-thumb {
        border: 2px solid var(--card-background);
    }

    [data-theme="dark"]::-webkit-scrollbar-thumb {
        border: 2px solid var(--primary-color);
    }
}

/* Mevcut kontrol çubuğu stilleri */
.controls {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 1000;
    background: transparent;
}

/* Dil seçici stilleri */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-selector img {
    width: 24px;
    height: 16px;
    cursor: pointer;
    border-radius: 2px;
    transition: transform 0.2s ease;
}

.language-selector img:hover {
    transform: scale(1.1);
}

/* Tablet görünümü için ek düzenlemeler */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .profile-info h1 {
        font-size: 2.2rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

    .controls {
        padding: 0.75rem;
    }

    .profile-section {
        padding: 1.5rem;
        margin: 0;
    }

    .theme-switch {
        width: 60px;
        height: 30px;
    }

    .slider:before {
        height: 26px;
        width: 26px;
        top: 2px;
    }

    .slider .icon {
        width: 22px;
        height: 22px;
        font-size: 15px;
    }

    .theme-switch input:checked + .slider:before {
        transform: translateX(30px);
    }
} 