/* ================================== */
/* GENEL AYARLAR VE DEĞİŞKENLER      */
/* ================================== */
:root {
    --bg-color: #0f172a;
    --sidebar-bg: rgba(20, 28, 46, 0.8);
    --container-bg: rgba(20, 28, 46, 0.7);
    --widget-bg: rgba(15, 23, 42, 0.85);
    --panel-border: rgba(125, 150, 190, 0.3);
    --text-color: #e2e8f0;
    --text-color-light: #94a3b8;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #38bdf8;
    --input-bg: rgba(49, 62, 85, 0.7);
}

body.light-theme {
    --bg-color: #f1f5f9;
    --sidebar-bg: rgba(255, 255, 255, 0.7);
    --container-bg: rgba(255, 255, 255, 0.6);
    --widget-bg: rgba(248, 250, 252, 0.8);
    --panel-border: rgba(0, 0, 0, 0.15);
    --text-color: #0f172a;
    --text-color-light: #475569;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #0ea5e9;
    --input-bg: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #000;
    background-image: url('https://images.unsplash.com/photo-1516259762381-22954d7d3ad2?q=80&w=1189&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    padding: 1.5rem;
    height: 100vh;
    overflow: hidden;
}

/* ================================== */
/* ANA YERLEŞİM (LAYOUT)             */
/* ================================== */
.app-layout {
    display: flex;
    gap: 1.5rem;
    height: 100%;
}

.sidebar {
    width: 260px;
    height: 100%;
    background-color: var(--sidebar-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.page-container {
    flex-grow: 1;
    height: 100%;
    background-color: var(--container-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: grid;
    grid-template-rows: auto 1fr auto; 
    overflow: hidden;
}

.sidebar.collapsed { width: 90px; }
.sidebar.collapsed .sidebar-title, 
.sidebar.collapsed .sidebar-nav span { display: none; }
.sidebar.collapsed .sidebar-nav a { justify-content: center; }
.sidebar.collapsed .sidebar-nav a i { margin-right: 0; }
.sidebar.collapsed .sidebar-toggle i { transform: rotate(180deg); }


/* ================================== */
/* SIDEBAR ELEMENTLERİ               */
/* ================================== */
.sidebar-header { 
    padding: 1.5rem; 
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px; 
}

.sidebar-logo-link { display: inline-block; }
.sidebar-logo { height: 40px; width: auto; transition: all 0.3s ease; filter: brightness(0) invert(1); }
.light-theme .sidebar-logo { filter: none; }
.sidebar.collapsed .sidebar-logo { height: 35px; }
.sidebar-nav { flex-grow: 1; padding: 1rem 0; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav a { display: flex; align-items: center; padding: 0.9rem 1.7rem; margin: 0.3rem 1rem; border-radius: 12px; color: var(--text-color-light); text-decoration: none; font-size: 0.95rem; white-space: nowrap; transition: color 0.2s, background-color 0.2s; }
.sidebar-nav a i { font-size: 1.1rem; width: 24px; margin-right: 1.2rem; text-align: center; }
.sidebar-nav a:hover { color: var(--text-color); background-color: rgba(255, 255, 255, 0.05); }
.sidebar-nav li.active a { color: var(--text-color); background-color: var(--accent-color); font-weight: 500; }
.sidebar-footer { padding: 1.5rem; border-top: 1px solid var(--panel-border); display: flex; justify-content: center; }
.sidebar-toggle { background: transparent; border: 1px solid var(--panel-border); color: var(--text-color-light); width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease, background-color 0.2s; }
.sidebar-toggle:hover { background-color: rgba(255,255,255,0.1); }

/* ================================== */
/* SAYFA İÇERİK ALANI                */
/* ================================== */
.page-header { display: flex; justify-content: flex-end; align-items: center; padding: 1rem 2rem; }
.main-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    background: transparent;
}
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.main-content::-webkit-scrollbar-track { background: transparent; }

/* DÜZELTME: Bu sarmalayıcı içeriği sola yaslar ve ortadaki alanı doldurur */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content .page-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-color); }
.main-content .page-description { color: var(--text-color-light); margin-bottom: 2.5rem; font-size: 1.1rem; max-width: 800px; }

/* ================================== */
/* ANASAYFA KONTROL PANELİ           */
/* ================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}
.widget {
    background-color: var(--widget-bg);
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    padding: 1.5rem;
}
.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.clock-widget {
    grid-column: 1 / -1; 
    text-align: center;
    padding: 2rem;
}
.clock-widget .time {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 2px;
}
.clock-widget .date {
    font-size: 1.2rem;
    color: var(--text-color-light);
}

.status-widget .status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.status-widget .status-item:last-child { margin-bottom: 0; }
.status-widget .status-label { width: 70px; font-weight: 500; }
.status-widget .status-bar { flex-grow: 1; height: 8px; background-color: var(--input-bg); border-radius: 4px; overflow: hidden; }
.status-widget .status-level { 
    height: 100%; 
    background-color: var(--accent-color); 
    border-radius: 4px; 
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.status-widget .status-value { font-weight: 500; }

.quick-access-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}
.quick-access-card .qa-icon {
    font-size: 2rem;
    color: var(--accent-color);
}
.quick-access-card .qa-text h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.quick-access-card .qa-text p {
    font-size: 0.85rem;
    color: var(--text-color-light);
}


/* ================================== */
/* DİĞER SAYFA STİLLERİ              */
/* ================================== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; width: 100%; }
.project-card { background-color: var(--widget-bg); border: 1px solid var(--panel-border); border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--shadow-color); border-color: rgba(125, 150, 190, 0.4); }
.card-image-placeholder { height: 180px; background-color: rgba(0,0,0,0.2); display: flex; justify-content: center; align-items: center; }
.card-image-placeholder i { font-size: 4rem; color: var(--accent-color); opacity: 0.6; }
.card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.5rem; }
.card-description { font-size: 0.9rem; color: var(--text-color-light); line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { background-color: var(--accent-color); color: white; padding: 0.2rem 0.6rem; border-radius: 5px; font-size: 0.75rem; font-weight: 500; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; width: 100%; }
.app-card { background-color: var(--widget-bg); border: 1px solid var(--panel-border); border-radius: 15px; padding: 2rem 1.5rem; text-align: center; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; border-style: solid; }
.app-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px var(--shadow-color); border-color: rgba(125, 150, 190, 0.4); }
.app-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.app-title { font-size: 1.1rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.5rem; }
.app-short-desc { font-size: 0.85rem; color: var(--text-color-light); line-height: 1.5; }

.form-message { width: 100%; max-width: 800px; padding: 1rem; margin-bottom: 1.5rem; border-radius: 8px; font-weight: 500; border: 1px solid transparent; }
.form-message.success { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; border-color: #2ecc71; }
.form-message.error { background-color: rgba(231, 76, 60, 0.2); color: #e74c3c; border-color: #e74c3c; }
.contact-form-container { width: 100%; max-width: 800px; background-color: var(--widget-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--panel-border); }
.contact-form .form-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.contact-form .form-group { flex: 1; min-width: 250px; display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.contact-form .form-row .form-group { margin-bottom: 0; }
.contact-form label { margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 500; color: var(--text-color-light); }
.contact-form input, .contact-form textarea { width: 100%; background-color: var(--input-bg); border: 1px solid var(--panel-border); border-radius: 8px; padding: 0.8rem 1rem; font-size: 1rem; color: var(--text-color); font-family: 'Poppins', sans-serif; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3); }
.contact-form textarea { resize: vertical; }
.submit-btn { background-color: var(--accent-color); color: white; border: none; padding: 0.9rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; }
.submit-btn:hover { background-color: #0ea5e9; transform: translateY(-2px); }
.submit-btn:active { transform: translateY(0); }

.about-container { display: flex; gap: 3rem; width: 100%; align-items: center; max-width: 1100px; }
.about-left { flex-basis: 300px; flex-shrink: 0; }
.about-right { flex-grow: 1; }
.profile-image-wrapper { width: 100%; padding-top: 100%; position: relative; border-radius: 50%; overflow: hidden; border: 4px solid var(--panel-border); box-shadow: 0 5px 25px var(--shadow-color); }
.profile-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.about-right h2 { font-size: 2rem; font-weight: 600; color: var(--text-color); }
.about-right h3 { font-size: 1.2rem; font-weight: 400; color: var(--accent-color); margin-bottom: 1.5rem; }
.bio { font-size: 1rem; color: var(--text-color-light); line-height: 1.8; margin-bottom: 1rem; }
.skills-title { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1.5rem; border-top: 1px solid var(--panel-border); padding-top: 1.5rem; }
.skills-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.skill { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-name { font-weight: 500; color: var(--text-color-light); }
.skill-bar { width: 100%; height: 10px; background-color: var(--input-bg); border-radius: 5px; overflow: hidden; }
.skill-level { height: 100%; background-color: var(--accent-color); border-radius: 5px; }

/* ================================== */
/* MODAL PENCERE STİLLERİ             */
/* ================================== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}
.modal-container.active {
    pointer-events: auto;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--panel-border);
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-color);
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-container.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--panel-border);
}
.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}
.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* ================================== */
/* HESAP MAKİNESİ STİLLERİ             */
/* ================================== */
.calculator {
    width: 320px;
}
.calculator-display {
    background-color: var(--input-bg);
    color: var(--text-color);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: right;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    word-wrap: break-word;
    word-break: break-all;
    min-height: 70px;
}
.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.calculator-key {
    height: 60px;
    border-radius: 10px;
    border: none;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.calculator-key:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.calculator-key.operator {
    background-color: var(--accent-color);
    color: white;
}
.calculator-key.function {
    background-color: var(--text-color-light);
    color: #000;
}
.calculator-key.equals {
    grid-column: span 2;
    background-color: #2ecc71;
    color: white;
}


/* ================================== */
/* DİĞER ELEMENTLER                  */
/* ================================== */
.footer { padding: 1rem 2rem; text-align: center; font-size: 0.8rem; color: var(--text-color-light); }
.theme-toggle { background: var(--sidebar-bg); border: 1px solid var(--panel-border); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; backdrop-filter: blur(5px); }

/* ================================== */
/* MOBİL UYUMLULUK (RESPONSIVE)      */
/* ================================== */
@media (max-width: 1200px) {
    body { padding: 0; }
    .app-layout { flex-direction: column; gap: 0; }
    .sidebar { width: 100%; height: auto; border-radius: 0; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 1rem; border-right: 0; border-bottom: 1px solid var(--panel-border); }
    .sidebar-header { border: 0; }
    .sidebar-nav { flex-grow: 0; }
    .sidebar-nav ul { display: flex; }
    .sidebar-nav a { margin: 0.5rem; }
    .sidebar-nav span { display: none; }
    .sidebar-footer, .sidebar.collapsed .sidebar-toggle { display: none; }
    .page-container { width: 100%; height: 100%; border-radius: 0; }
}
@media (max-width: 768px) {
    .main-content { padding: 1.5rem; }
    .main-content .page-title { font-size: 2rem; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-form .form-row .form-group { margin-bottom: 1.5rem; }
    .about-container { flex-direction: column; align-items: center; text-align: center; }
    .about-left { width: 200px; margin-bottom: 2rem; }
    .about-right h2, .about-right h3 { text-align: center; }
}
