/*
|==========================================================================
|  YEŞILIZ — SHARED STYLESHEET
|  Tüm sayfalarda ortak kullanılan stiller
|==========================================================================
*/

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

/* ==========================================================================
   CSS CUSTOM PROPERTIES (TEMA DEĞİŞKENLERİ)
   ========================================================================== */

:root {
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-green-light: #10b981;
    --text-main: #334155;
    --text-dim: #64748b;
    --border-color: #e2e8f0;
    --progress-bg: #f1f5f9;
    --card-white: #ffffff;
    --bg-body: rgba(241,245,249,0.7);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
    --shadow-green: 0 6px 20px rgba(5,150,105,0.3);
    --navbar-height: 75px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --transition: 0.3s ease;
}

body.dark-mode {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-color: rgba(255,255,255,0.08);
    --progress-bg: #334155;
    --card-white: rgba(30,41,59,0.75);
    --bg-body: rgba(15,23,42,0.5);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.5);
    --shadow-green: 0 6px 20px rgba(16,185,129,0.25);
}

/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

body, button, input, select, textarea {
    font-family: 'Inter', sans-serif;
}

body {
    background:
        linear-gradient(var(--bg-body), var(--bg-body)),
        url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=1920&auto=format&fit=crop') fixed center;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ==========================================================================
   GOOGLE TRANSLATE ÇUBUK GİZLEYİCİ
   ========================================================================== */

iframe.goog-te-banner-frame,
iframe[id=":1.container"],
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
#google_translate_element,
.goog-tooltip,
.goog-tooltip:hover { display: none !important; }

body { top: 0px !important; position: static !important; margin-top: 0px !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .navbar {
    background: rgba(10,17,32,0.96);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    border-bottom-color: rgba(255,255,255,0.06);
}

.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
}

/* --- Marka / Logo --- */
.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 16px;
}

.brand-logo { height: 38px; width: auto; }

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-green) !important;
    letter-spacing: -0.5px;
    text-decoration: none !important;
}

/* --- Nav Links --- */
.info-link {
    text-decoration: none;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 40px;
    transition: all var(--transition);
}

.info-link:hover,
.active-link {
    background: rgba(5,150,105,0.1);
    color: var(--primary-green);
}

body.dark-mode .info-link { color: #e2e8f0; }
body.dark-mode .info-link:hover,
body.dark-mode .active-link { color: var(--primary-green); }

/* --- Kullanıcı Grubu --- */
.user-menu-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--progress-bg);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all var(--transition);
    flex-shrink: 0;
}

body.dark-mode .theme-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

.theme-btn:hover { background: rgba(5,150,105,0.12); color: var(--primary-green); }

.btn-lang {
    font-size: 0.8rem;
    font-weight: 700;
    width: auto;
    padding: 0 14px;
    gap: 6px;
    letter-spacing: 0.5px;
}

.btn-login {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 16px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: all var(--transition);
}

body.dark-mode .btn-login { color: #e2e8f0; }
.btn-login:hover { color: var(--primary-green); background: rgba(5,150,105,0.1); }

.btn-register {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    background: var(--primary-green);
    color: white !important;
    box-shadow: var(--shadow-green);
    transition: all var(--transition);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5,150,105,0.45);
    background: var(--primary-green-dark);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(5,150,105,0.1);
    border: 1px solid rgba(5,150,105,0.2);
    color: var(--primary-green);
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

body.dark-mode .user-badge {
    background: rgba(16,185,129,0.12);
    border-color: rgba(52,211,153,0.2);
    color: #4ade80;
}

.admin-badge {
    background: var(--primary-green);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid rgba(239,68,68,0.35);
    color: #ef4444;
    padding: 0 14px;
    height: 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    transition: all var(--transition);
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* ==========================================================================
   CHAT WIDGET
   ========================================================================== */

.chat-widget-btn {
    position: fixed;
    left: 28px;
    bottom: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 24px rgba(5,150,105,0.45);
    transition: all var(--transition);
    border: none;
}

.chat-widget-btn:hover { transform: scale(1.12) rotate(-8deg); }

.chat-widget-box {
    position: fixed;
    left: 28px;
    bottom: 108px;
    width: 390px;
    height: 580px;
    background: var(--card-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9999;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-widget-box.show { display: flex; }

.chat-widget-header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.chat-widget-body {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cw-msg {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.6;
    font-size: 0.93rem;
}

.cw-ai {
    background: var(--progress-bg);
    align-self: flex-start;
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.cw-user {
    background: var(--primary-green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-widget-footer {
    padding: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-widget-input-wrapper {
    flex: 1;
    display: flex;
    background: var(--progress-bg);
    border-radius: 30px;
    padding: 6px 14px;
    align-items: center;
}

body.dark-mode .chat-widget-input-wrapper { background: #1e293b; }

.chat-widget-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.9rem;
}

.btn-send-msg {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-send-msg:hover { background: var(--primary-green-dark); transform: scale(1.05); }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--card-white);
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 24px;
    margin-top: auto;
    text-align: center;
    backdrop-filter: blur(15px);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 28px;
}

.footer-content h4 {
    color: var(--text-main);
    margin-bottom: 14px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-content p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-content a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-content a:hover { color: var(--primary-green); }

.footer-bottom {
    color: var(--text-dim);
    font-size: 0.82rem;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   SAYFA KARTLARI — Ortak
   ========================================================================== */

.glass-card {
    background: var(--card-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   BADGE / TAB ORTAK
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-green {
    background: rgba(5,150,105,0.12);
    color: var(--primary-green);
}

.badge-red    { background: rgba(239,68,68,0.12);  color: #ef4444; }
.badge-yellow { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-blue   { background: rgba(59,130,246,0.12); color: #3b82f6; }

/* ==========================================================================
   SCROLL BAR (WebKit)
   ========================================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-green); }

/* ==========================================================================
   YARDIMCI SINIFLAR
   ========================================================================== */

.text-green  { color: var(--primary-green); }
.text-dim    { color: var(--text-dim); }
.fw-800      { font-weight: 800; }
.text-center { text-align: center; }
