@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .text-title { color: var(--color-title); }
.text-subtitle { color: var(--color-subtitle); }

/* Premium buttons */
.btn-premium {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    transition: all 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
    color: #fff;
}

/* Premium cards */
.premium-card {
    background: var(--color-card);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
}
.premium-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-3px);
}

.premium-card-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

/* Glass effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
}

/* Admin sidebar */
.admin-sidebar {
    background: var(--color-sidebar);
    min-height: 100vh;
    width: 280px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: transform 0.3s ease;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.85rem 1.5rem;
    margin: 0.15rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.admin-sidebar .nav-link.active {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.admin-sidebar .nav-link i { margin-right: 0.75rem; width: 20px; }

.admin-version-footer {
    margin-top: 50px;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    user-select: none;
}

.admin-main {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--color-primary);
}
.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
}

/* Login pages */
.login-page {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}
.login-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}
.login-logo {
    display: block;
    margin: 0 auto 1.5rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Platform layout */
.platform-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.08), transparent),
        var(--color-background);
}

.site-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.06);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.site-nav-link {
    font-weight: 600;
    color: var(--color-text) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
}
.site-nav-link:hover,
.site-nav-link.active {
    color: var(--color-primary) !important;
    background: rgba(99, 102, 241, 0.08);
}

.btn-glass-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    color: var(--color-primary);
    font-size: 1.35rem;
    transition: all 0.25s ease;
    text-decoration: none;
}
.btn-glass-icon:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.btn-glass-primary {
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 0;
    transition: all 0.25s ease;
}
.btn-glass-primary:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.platform-hero {
    padding: 2rem 0 1.5rem;
}
.search-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    border-radius: 0;
    padding: 0.35rem 0.5rem 0.35rem 0;
}
.search-glass .form-control {
    font-size: 1.05rem;
}
.search-glass .form-control::placeholder {
    color: var(--color-subtitle);
}
.search-glass .input-group-text {
    color: var(--color-primary);
}

.filter-bar {
    padding-top: 0.5rem;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0;
    transition: all 0.2s ease;
}
.filter-chip:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.filter-chip.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-title);
}
.catalog-header {
    margin-top: 50px;
}

.education-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.education-card-v2 {
    background: var(--color-card);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.education-card-link:hover .education-card-v2 {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}
.education-card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.education-card-cover.is-placeholder {
    background: var(--gradient-primary);
}
.education-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.55) 0%, transparent 55%);
}
.education-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.education-card-play {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-size: 1.25rem;
    border-radius: 0;
    transition: transform 0.2s;
}
.education-card-link:hover .education-card-play {
    transform: scale(1.08);
    background: var(--color-primary);
    color: #fff;
}
.education-card-body {
    padding: 1.25rem 1.35rem 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.education-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.education-card-excerpt {
    color: var(--color-subtitle);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.education-card-action {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--color-subtitle);
    opacity: 0.5;
}
.glass-alert {
    backdrop-filter: blur(12px);
    border-radius: 0;
}

.site-footer {
    margin-top: auto;
    padding: calc(1.75rem - 10px) 0;
    background: rgba(15, 23, 42, 0.92);
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.site-footer-inner {
    text-align: center;
}

.admin-footer {
    margin-top: 3rem;
    padding: 1.25rem 0 0.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--color-subtitle);
}
.admin-footer a {
    color: var(--color-primary);
    text-decoration: none;
}
.admin-footer a:hover {
    text-decoration: underline;
}

.admin-egitim-table td,
.admin-egitim-table th {
    white-space: nowrap;
    vertical-align: middle;
}
.admin-egitim-title-cell {
    max-width: 0;
    width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-egitim-title {
    font-weight: 600;
    color: var(--color-title);
}
.admin-egitim-ozet {
    font-size: 0.85rem;
}
.admin-egitim-thumb {
    width: 44px;
    height: 32px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: 1px solid #e2e8f0;
}
.admin-egitim-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--color-subtitle);
    font-size: 0.9rem;
}
.admin-table-card .table > :not(caption) > * > * {
    padding: 0.65rem 0.75rem;
}
.admin-filter-row .form-label {
    color: var(--color-subtitle);
}

.featured-preview {
    aspect-ratio: 16 / 10;
    max-width: 320px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0;
}
.featured-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Legacy gebe hero - removed from homepage */
.gebe-hero {
    display: none;
}

.education-card {
    cursor: pointer;
    height: 100%;
}
.education-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Nurse avatar v2 */
.nurse-stage {
    position: relative;
    background: linear-gradient(180deg, #dbeafe 0%, #eef2ff 45%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem 1.5rem;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(99, 102, 241, 0.12);
}
.nurse-stage::before {
    content: '';
    position: absolute;
    inset: 10% 15% 25%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}
.nurse-stage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
    pointer-events: none;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.nurse-avatar {
    width: 260px;
    height: 380px;
    position: relative;
    z-index: 2;
}
.nurse-avatar svg { width: 100%; height: 100%; display: block; }

.nurse-avatar.is-idle .nurse-body {
    animation: nurse-idle 4s ease-in-out infinite;
}
.nurse-avatar.is-idle .holo-ring {
    animation: holo-pulse 3s ease-in-out infinite;
}
@keyframes nurse-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes holo-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Mouth states */
.nurse-avatar .mouth-shape { display: none; }
.nurse-avatar .mouth-closed { display: block; }
.nurse-avatar.is-speaking[data-mouth="closed"] .mouth-closed { display: block; }
.nurse-avatar.is-speaking[data-mouth="closed"] .mouth-open,
.nurse-avatar.is-speaking[data-mouth="closed"] .mouth-wide { display: none; }
.nurse-avatar.is-speaking[data-mouth="open"] .mouth-open { display: block; }
.nurse-avatar.is-speaking[data-mouth="open"] .mouth-closed,
.nurse-avatar.is-speaking[data-mouth="open"] .mouth-wide { display: none; }
.nurse-avatar.is-speaking[data-mouth="wide"] .mouth-wide { display: block; }
.nurse-avatar.is-speaking[data-mouth="wide"] .mouth-closed,
.nurse-avatar.is-speaking[data-mouth="wide"] .mouth-open { display: none; }

.nurse-avatar.is-speaking .eyes-group {
    animation: eyes-blink 4s ease-in-out infinite;
}
@keyframes eyes-blink {
    0%, 42%, 44%, 100% { transform: scaleY(1); }
    43% { transform: scaleY(0.1); }
}

/* SVG gesture animations */
.nurse-svg .arm-left,
.nurse-svg .arm-right,
.nurse-svg .arms-group,
.nurse-svg .head-group {
    transform-box: fill-box;
    transform-origin: center;
}

.nurse-svg .arm-right { transform-origin: 30% 15%; }
.nurse-svg .arm-left { transform-origin: 70% 15%; }
.nurse-svg .head-group { transform-origin: 50% 85%; }
.nurse-svg .arms-group { transform-origin: 50% 40%; }

.nurse-svg .arm-right.anim-wave {
    animation: nurse-wave 0.9s ease-in-out 3;
}
.nurse-svg .arm-right.anim-point {
    animation: nurse-point 2s ease-in-out 1;
}
.nurse-svg .arms-group.anim-explain {
    animation: nurse-explain 2.5s ease-in-out 1;
}
.nurse-svg .head-group.anim-nod {
    animation: nurse-nod 0.7s ease-in-out 3;
}
.nurse-svg .head-group.anim-attention {
    animation: nurse-attention 0.6s ease-in-out 4;
}

@keyframes nurse-wave {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-18deg) translateY(-4px); }
    40% { transform: rotate(22deg) translateY(-6px); }
    60% { transform: rotate(-12deg); }
    80% { transform: rotate(16deg); }
}
@keyframes nurse-point {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    35% { transform: rotate(-28deg) translateX(12px) translateY(-8px); }
    70% { transform: rotate(-18deg) translateX(8px); }
}
@keyframes nurse-explain {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.02); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-2px) scale(1.01); }
}
@keyframes nurse-nod {
    0%, 100% { transform: rotate(0deg); }
    40% { transform: rotate(10deg); }
}
@keyframes nurse-attention {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}

.speech-bubble {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 90%;
    box-shadow: var(--shadow-card);
    z-index: 3;
    font-size: 0.95rem;
    line-height: 1.6;
    border: 2px solid rgba(99,102,241,0.15);
}
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #fff;
}

.player-controls {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    margin-top: 1.5rem;
}

.video-stage {
    position: relative;
    background: #0f172a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(99, 102, 241, 0.12);
    aspect-ratio: 16 / 9;
    max-height: 520px;
}
.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}
.video-stage.is-vertical {
    aspect-ratio: 9 / 16;
    max-height: 640px;
    max-width: 360px;
    margin: 0 auto;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.logo-preview-box {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
