/* ═══════════════════════════════════════════════
   MAVERAN PLATFORMU - ANA STİL DOSYASI
   Tema: Şifacı / Eczacı (Zümrüt Yeşili + Bal Altın)
   ═══════════════════════════════════════════════ */

/* ── ÖZEL FONT TANIMLAMALARI ── */
@font-face {
    font-family: 'Futura-LightOblique';
    src: url('../fonts/Futura-LightOblique.woff2') format('woff2');
    font-weight: 300; font-style: oblique; font-display: swap;
}
@font-face {
    font-family: 'Zapfino';
    src: url('../fonts/Zapfino.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Calibre';
    src: url('../fonts/Calibre.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Orbitron black';
    src: url('../fonts/Orbitron-Black.woff2') format('woff2');
    font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Times NR MT Pro Regular';
    src: url('../fonts/TimesNRMTPro.woff2') format('woff2');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ── CSS DEĞİŞKENLERİ ── */
:root {
    --primary:    #0d9488;
    --primary-d:  #0f766e;
    --primary-l:  #ccfbf1;
    --accent:     #d97706;
    --accent-d:   #b45309;
    --bg:         #f0fdfa;
    --surface:    #ffffff;
    --border:     #d1fae5;
    --text:       #134e4a;
    --muted:      #5eead4;
    --radius:     18px;
    --shadow:     0 1px 8px rgba(13,148,136,0.07);
    --shadow-lg:  0 8px 32px rgba(13,148,136,0.10);
    --success:    #10b981;
    --warning:    #f59e0b;
    --danger:     #ef4444;
}

/* ── SIFIRLAMA ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: auto;
    font-size: 15px;
    margin: 0;
    padding: 0;
    min-width: 1200px;
}
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   HEADER - EN ÜSTE SABİT
   ═══════════════════════════════════════════════ */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    box-shadow: 0 1px 8px rgba(13,148,136,0.05);
}
.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ── LOGO ── */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-mark {
    width: 40px; height: 40px;
    background: linear-gradient(145deg, #0d9488, #0f766e);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
    box-shadow: 0 6px 16px rgba(13,148,136,0.4);
}
.logo-label {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: -0.2px; color: #134e4a;
    line-height: 1.4;
}
.logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: #0d9488; margin-top: 4px;
}

/* ── NAVİGASYON ── */
.nav-desktop { display: flex; align-items: center; gap: 10px; }
.nav-link {
    text-decoration: none; color: #115e59;
    font-size: 15px; font-weight: 500;
    padding: 8px 12px; transition: all 0.3s ease;
}
.nav-link:hover { color: #0d9488; background-color: #f0fdfa; border-radius: 6px; }
.nav-actions { display: flex; align-items: center; gap: 15px; }

/* ── BUTONLAR ── */
.btn-login {
    padding: 0.45rem 1.1rem; border-radius: 99px;
    text-decoration: none; color: var(--muted);
    font-size: 0.82rem; font-weight: 500;
    border: 1px solid var(--border); transition: all 0.2s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }

.btn-register {
    padding: 0.45rem 1.3rem; border-radius: 99px;
    text-decoration: none; color: white;
    font-size: 0.82rem; font-weight: 600;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(13,148,136,0.25);
    transition: all 0.2s;
}
.btn-register:hover { background: var(--primary-d); transform: translateY(-1px); }

/* ── KULLANICI CHIP ── */
.user-chip {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--border);
    padding: 5px 12px 5px 6px; border-radius: 99px;
    font-size: 0.8rem; font-weight: 500; color: var(--text);
}
.user-avatar {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--primary), #0f766e);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; font-weight: 700;
}
.admin-chip {
    padding: 5px 12px;
    background: rgba(13,148,136,0.1); color: var(--primary);
    border-radius: 8px; font-size: 0.72rem; font-weight: 700;
    text-decoration: none; letter-spacing: 0.2px;
}
.logout-link {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239,68,68,0.08); color: #ef4444;
    text-decoration: none; font-size: 13px; transition: all 0.2s;
}
.logout-link:hover { background: #ef4444; color: white; }

/* ── MOBİL ── */
.mobile-menu-btn {
    display: none; background: none;
    border: 1px solid var(--border); padding: 7px 10px;
    border-radius: 8px; cursor: pointer; color: var(--text); font-size: 14px;
}
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: 600; }
.mobile-drawer.open { display: block; }
.drawer-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
}
.drawer-panel {
    position: absolute; top: 0; right: 0;
    width: min(300px, 85vw); height: 100%;
    background: white; padding: 2rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.4rem;
    overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}
.drawer-close {
    align-self: flex-end; background: none;
    border: 1px solid var(--border); width: 34px; height: 34px;
    border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted);
}
.drawer-link {
    display: flex; align-items: center; gap: 10px;
    padding: 0.75rem 1rem; border-radius: 12px;
    text-decoration: none; color: var(--muted);
    font-weight: 500; font-size: 0.88rem; transition: all 0.2s;
}
.drawer-link:hover { background: var(--bg); color: var(--primary); }
.drawer-link i { width: 16px; text-align: center; color: var(--primary); }
.drawer-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }

/* ═══════════════════════════════════════════════
   SAYFA DÜZENİ
   ═══════════════════════════════════════════════ */
.page-wrapper {
    max-width: 1380px; margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    display: grid; grid-template-columns: 1fr 300px;
    gap: 1.8rem; align-items: start;
}
.main-col { min-width: 0; }
.section-label {
    font-size: 0.68rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 1rem; display: flex; align-items: center; gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.side-col { display: flex; flex-direction: column; gap: 1.1rem; }
.side-widget {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.side-widget-head {
    padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border);
    font-size: 0.65rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: 1.2px;
}
.side-links { padding: 0.5rem; }
.side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0.7rem 0.9rem; border-radius: 10px;
    text-decoration: none; color: var(--muted);
    font-size: 0.83rem; font-weight: 500; transition: all 0.2s;
}
.side-link:hover { background: var(--bg); color: var(--primary); transform: translateX(3px); }
.side-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-l); display: flex;
    align-items: center; justify-content: center;
    color: var(--primary); font-size: 12px; flex-shrink: 0;
}
.promo-widget {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    border-radius: var(--radius); padding: 1.6rem 1.4rem;
    color: white; box-shadow: 0 8px 24px rgba(13,148,136,0.22);
}
.promo-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.promo-desc { font-size: 0.8rem; opacity: 0.82; margin-bottom: 1.2rem; line-height: 1.6; }
.promo-btn {
    display: block; text-align: center;
    background: rgba(255,255,255,0.18); color: white;
    padding: 0.65rem; border-radius: 9px; text-decoration: none;
    font-weight: 600; font-size: 0.82rem;
    border: 1px solid rgba(255,255,255,0.25); transition: all 0.2s;
}
.promo-btn:hover { background: rgba(255,255,255,0.28); }

/* ═══════════════════════════════════════════════
   KARTLAR
   ═══════════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
}
.content-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow); cursor: pointer;
}
.content-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
    border-color: rgba(13,148,136,0.3);
}
.card-image-wrap {
    width: 100%; height: 155px; overflow: hidden;
    background: linear-gradient(135deg, #ccfbf1, #d1fae5); flex-shrink: 0;
}
.card-image-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.content-card:hover .card-image-wrap img { transform: scale(1.04); }
.card-icon-ph {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); opacity: 0.35;
}
.card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 0.95rem; font-weight: 600;
    color: var(--text); margin-bottom: 0.4rem; line-height: 1.35;
}
.card-desc {
    color: var(--muted); font-size: 0.82rem;
    line-height: 1.6; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
    display: flex; align-items: center; gap: 6px;
    margin-top: 0.9rem; font-size: 0.75rem;
    font-weight: 600; color: var(--primary);
}
.empty-cards {
    grid-column: 1 / -1; text-align: center;
    padding: 3rem; border: 2px dashed var(--border);
    border-radius: var(--radius); color: var(--muted); font-size: 0.85rem;
}
.empty-cards i { font-size: 2rem; display: block; margin-bottom: 0.8rem; opacity: 0.3; }

/* ═══════════════════════════════════════════════
   BACK LINK
   ═══════════════════════════════════════════════ */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--muted); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    margin-bottom: 1.5rem; transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════
   ALERT
   ═══════════════════════════════════════════════ */
.alert {
    padding: 0.9rem 1.1rem; border-radius: 10px;
    margin-bottom: 1.3rem; font-size: 0.82rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ═══════════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════════════════════════════════════════════
   TÜM CİHAZLARDA MASAÜSTÜ GÖRÜNÜMÜ
   ═══════════════════════════════════════════════ */
html {
    min-width: 1200px;
    overflow-x: auto;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE - SADECE BÜYÜK EKRAN UYARLAMASI
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .page-wrapper { grid-template-columns: 1fr; }
    .side-col { display: grid; grid-template-columns: 1fr 1fr; }
    .promo-widget { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: flex; }
    .page-wrapper { padding: 1.2rem 1rem 3rem; gap: 1.4rem; }
    .side-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .header-inner { padding: 0 1rem; }
    .logo-sub { display: none; }
    .cards-grid { grid-template-columns: 1fr; }
}
@media (hover: none) and (pointer: coarse) {
    .nav-link, .side-link, .drawer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}