/* ============================================================
   ÖĞRETMEN YAŞAM AĞACI – ÖĞRETMEN PROFİLİ CSS FINAL v55
   Premium • Modern • Ultra Responsive • Bonus FX Ready
============================================================ */

/* -------------------------------------------
   GENEL SAYFA YAPISI
------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background: #f4f6fb;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #222;
    transition: filter .30s ease;
}

body.oy-blur {
    filter: blur(3px);
}

/* Container */
.oy-shell {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 14px 50px;
}

/* -------------------------------------------
   ÜST BAR
------------------------------------------- */
.oy-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-bottom: 15px;
}

.oy-logo-link {
    font-weight: 700;
    font-size: 20px;
    color: #111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oy-visit-chip {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.oy-visit-chip-online {
    background: #d5ffe2;
}

/* -------------------------------------------
   LAYOUT
------------------------------------------- */
.oy-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.oy-col-left {
    width: 330px;
}

.oy-col-right {
    flex: 1;
    min-width: 300px;
}

/* -------------------------------------------
   PROFİL KARTI
------------------------------------------- */
.oy-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Öğretmen Foto */
.oy-profile-header {
    display: flex;
    gap: 16px;
}

.oy-profile-photo-wrap {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    position: relative;
}

.oy-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oy-avatar-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #d9e1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 600;
}

/* Glow (JS tetikliyor) */
.oy-glow {
    animation: glowFx .7s ease;
}

@keyframes glowFx {
    0% { box-shadow: 0 0 0px 0px rgba(11,132,255,0.0); }
    50% { box-shadow: 0 0 18px 6px rgba(11,132,255,0.55); }
    100% { box-shadow: 0 0 0px 0px rgba(11,132,255,0.0); }
}

.oy-teacher-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

/* -------------------------------------------
   ETİKETLER
------------------------------------------- */
.oy-teacher-tags {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.oy-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    background: #eef2ff;
    padding: 4px 8px;
    border-radius: 8px;
}

.oy-tag:nth-child(1)::before { content: "📘"; }
.oy-tag:nth-child(2)::before { content: "🏫"; }
.oy-tag:nth-child(3)::before { content: "📍"; }

/* -------------------------------------------
   XP PANEL
------------------------------------------- */
.oy-xp-value {
    font-size: 28px;
    font-weight: 800;
    color: #0b84ff;
}

.oy-xp-bar-bg {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
}

.oy-xp-bar-fill {
    height: 100%;
    background: #0b84ff;
    border-radius: 20px;
    transition: width .45s ease;
}

/* XP Baloncuğu */
.xp-burst {
    position: fixed;
    font-size: 22px;
    font-weight: 800;
    color: #0b84ff;
    opacity: 0;
    transform: translateY(0);
    animation: xpFly 1.2s ease forwards;
    pointer-events: none;
}

@keyframes xpFly {
    0%   { opacity:0; transform:translateY(0) scale(0.6); }
    40%  { opacity:1; transform:translateY(-20px) scale(1); }
    100% { opacity:0; transform:translateY(-60px) scale(0.85); }
}

/* -------------------------------------------
   KALP
------------------------------------------- */
.oy-btn-heart {
    width: 100%;
    background: #ff3b30;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
}

.oy-btn-heart:hover {
    background: #ff564e;
}

/* Uçan Kalpler */
.kalp-efekt {
    position: fixed;
    left: 50%;
    top: 60%;
    font-size: 52px;
    pointer-events: none;
    animation: kalpUcus 1.5s ease forwards;
}

@keyframes kalpUcus {
    0%   { opacity:1; transform:translate(-50%,0) scale(0.5); }
    60%  { opacity:.9; transform:translate(-50%,-50px) scale(1.6); }
    100% { opacity:0; transform:translate(-50%,-120px) scale(2.1); }
}

/* -------------------------------------------
   HEDİYE GRİDİ
------------------------------------------- */
.oy-hediye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 12px;
    margin-top: 12px;
}

.oy-hediye-btn {
    background: #fff;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    cursor: pointer;
    transition: .2s;
    font-size: 14px;
    border: 1px solid #cbd9ff;
}

.oy-hediye-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: 50%;
    opacity: 0;
    animation: confettiFall 1.2s ease forwards;
    border-radius: 2px;
}

@keyframes confettiFall {
    0%   { opacity:1; transform:translateY(0) rotate(0deg); }
    100% { opacity:0; transform:translateY(-120px) rotate(260deg); }
}

/* -------------------------------------------
   HATIRALAR
------------------------------------------- */
.oy-hatira-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.oy-hatira-item {
    border-bottom: 1px solid #eee;
    padding: 10px 4px;
    animation: fadeIn .35s ease;
}

.fade-in {
    animation: fadeIn .35s ease !important;
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(5px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Hatıra Pulse */
.pulse {
    animation: pulseFx .5s ease;
}
@keyframes pulseFx {
    0%   { transform:scale(1); }
    50%  { transform:scale(1.03); }
    100% { transform:scale(1); }
}

/* -------------------------------------------
   FORM YAPILARI
------------------------------------------- */
.oy-form input,
.oy-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.oy-form input:focus,
.oy-form textarea:focus {
    border-color: #0b84ff;
}

/* Kaydet */
.oy-btn-primary {
    background: #0b84ff;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.oy-btn-primary:hover {
    background: #0d7ded;
}

/* -------------------------------------------
   MODAL (Hediye Gönder)
------------------------------------------- */
.oy-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.oy-modal.oy-modal-open {
    display: flex !important;
}

.oy-modal-content {
    background: #fff;
    width: 92%;
    max-width: 420px;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from { opacity:0; transform:translateY(25px); }
    to   { opacity:1; transform:translateY(0); }
}

/* -------------------------------------------
   TOAST
------------------------------------------- */
.oy-toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    opacity: 0;
    transition: .25s;
    z-index: 99999999;
}

.oy-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.oy-toast-info { background:#2b6cb0; }
.oy-toast-success { background:#059669; }
.oy-toast-error { background:#e11d48; }

/* -------------------------------------------
   RESPONSIVE
------------------------------------------- */
@media (max-width: 800px) {
    .oy-layout {
        flex-direction: column;
    }

    .oy-col-left,
    .oy-col-right {
        width: 100%;
    }

    .oy-profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .oy-hediye-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .oy-profile-photo-wrap {
        width: 80px;
        height: 80px;
    }

    .oy-teacher-name {
        font-size: 19px;
    }
}
