@charset "UTF-8";

/* ==========================================================================
   CSS Değişkenleri — Karanlık Mod (Varsayılan)
   ========================================================================== */
:root {
    --bg-color: #0D1A12;
    --card-bg: #111E16;
    --text-primary: #EDF2EE;
    --text-secondary: #7A9482;
    --border-color: #1E3326;
    --accent: #4ADE80;        /* Yeşil vurgu */
    --accent-rgb: 74, 222, 128;
    --accent-dim: #22c55e;
    --accent-light: rgba(74, 222, 128, 0.1);
    --selection-bg: rgba(74, 222, 128, 0.3);
    --hero-overlay: linear-gradient(to top, rgba(5,12,8,0.97) 0%, rgba(5,12,8,0.6) 50%, rgba(5,12,8,0.15) 100%);
    --nav-bg: rgba(13, 26, 18, 0.88);
    --card-shadow: none;
    --transition: 0.25s ease;
}

body.light-mode {
    --bg-color: #F9FAF7;
    --card-bg: #FFFFFF;
    --text-primary: #111B14;
    --text-secondary: #5C7A67;
    --border-color: #D8E8DC;
    --accent: #16A34A;
    --accent-rgb: 22, 163, 74;
    --accent-dim: #15803D;
    --accent-light: rgba(22, 163, 74, 0.08);
    --selection-bg: rgba(22, 163, 74, 0.15);
    --hero-overlay: linear-gradient(to top, rgba(10,20,13,0.95) 0%, rgba(10,20,13,0.5) 55%, transparent 100%);
    --nav-bg: rgba(249,250,247,0.9);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Selection & Scrollbar */
::selection { background: var(--selection-bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    color: var(--text-primary);
    transition: color var(--transition);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition), border-color var(--transition);
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(120deg, var(--accent), #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    transition: opacity var(--transition);
}
.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.logo:hover { opacity: 0.85; }

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

#theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
#theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
    transform: rotate(12deg);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}

/* ==========================================================================
   Hero Makale
   ========================================================================== */
.hero-article-wrapper {
    margin-bottom: 3.5rem;
}

.hero-article {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.hero-article:hover .hero-img { transform: scale(1.03); }

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1f11, var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img-placeholder svg { width: 64px; height: 64px; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2.5rem 2rem;
}

.hero-content .cat-label {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #FFFFFF !important; /* Always white on dark hero images */
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 680px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: color 0.2s;
}

.hero-article:hover .hero-content h2 { color: var(--accent) !important; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8) !important; /* Readable on dark images */
    font-family: 'Inter', sans-serif;
}

.hero-meta .dot {
    color: var(--accent);
}

.hero-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent) !important;
    font-family: 'Inter', sans-serif;
    transition: gap var(--transition);
}
.hero-read-btn:hover { gap: 0.9rem; color: #FFFFFF !important; }
.hero-read-btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   Section Headings
   ========================================================================== */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-heading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Article Cards — Editorial Flat Design
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.article-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition);
    position: relative;
}

/* Top accent line on hover */
.article-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.article-card:hover::after { transform: scaleX(1); }
.article-card:hover { background-color: var(--bg-color); }

/* Image — zero padding, flush to card top */
.article-card .card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .card-img-wrapper img { transform: scale(1.04); }

.article-card .card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

/* Category label — plain text, no box */
.cat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.cat-label-fizik     { color: #F59E0B; }
.cat-label-kimya     { color: #8B5CF6; }
.cat-label-biyoloji  { color: var(--accent); }
.cat-label-matematik { color: #F59E0B; }
.cat-label-astronomi { color: #38BDF8; }

/* Card body */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color var(--transition);
}
.article-card:hover .article-title { color: var(--accent); }

.article-summary {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Minimalist read link */
.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    transition: color var(--transition), gap var(--transition);
}
.read-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.article-card:hover .read-link { color: var(--accent); gap: 0.8rem; }

/* Card footer */
.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    transition: border-color var(--transition);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #86efac);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0a1f11;
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.read-time {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Placeholder Gradients (no image)
   ========================================================================== */
.img-space    { background: linear-gradient(135deg, #06110A, #38BDF8); }
.img-bio      { background: linear-gradient(135deg, #061A0B, var(--accent)); }
.img-tech     { background: linear-gradient(135deg, #150730, #8B5CF6); }
.img-ai       { background: linear-gradient(135deg, #1a0e00, #F59E0B); }
.img-default  { background: linear-gradient(135deg, #0a1a10, var(--accent)); }

.card-img-placeholder svg { width: 40px; height: 40px; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 5rem;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    transition: background-color var(--transition), border-color var(--transition);
}

.widget h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.widget h3::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.most-read-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color var(--transition), border-color var(--transition);
}

.most-read-item:hover {
    background-color: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.15);
}

.most-read-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    flex-shrink: 0;
    min-width: 24px;
}
.most-read-item:hover .most-read-number { color: var(--accent); }

.most-read-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    transition: color var(--transition);
}
.most-read-item:hover .most-read-content h4 { color: var(--accent); }

.most-read-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

/* Author sidebar rows */
.authors-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.author-sidebar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color var(--transition), border-color var(--transition);
}
.author-sidebar-row:hover {
    background: rgba(74, 222, 128, 0.05);
    border-color: rgba(74, 222, 128, 0.15);
}
.author-sidebar-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.author-sidebar-bio {
    font-size: 0.77rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Article Page (article.html)
   ========================================================================== */
.article-header { margin-bottom: 2rem; }

.article-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0.8rem 0 1.2rem;
    line-height: 1.15;
}

.article-meta-row {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}
.article-body p { margin-bottom: 1.6rem; }
.article-body h2, .article-body h3 {
    margin: 2.5rem 0 1rem;
    color: var(--accent);
}

/* ==========================================================================
   Author Page (author.html)
   ========================================================================== */
.author-hero {
    max-width: 760px;
    margin: 4rem auto;
    text-align: center;
    padding: 0 1.5rem;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--accent);
    background: var(--card-bg);
    display: block;
}

.author-hero .author-name {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.author-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
}
.author-social { display: flex; justify-content: center; gap: 0.8rem; }
.author-social a {
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    transition: var(--transition);
}
.author-social a:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(74,222,128,0.08);
    transform: translateY(-2px);
}
.articles-section {
    max-width: 1280px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */
.skeleton {
    animation: shimmer 1.6s infinite;
    background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
    background-size: 200% 100%;
    border-radius: 3px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-img   { height: 200px; border-radius: 0; margin-bottom: 0; }
.skeleton-badge { width: 80px; height: 14px; margin-bottom: 0.6rem; }
.skeleton-title { height: 22px; margin-bottom: 0.5rem; }
.skeleton-text  { height: 14px; margin-bottom: 0.4rem; }
.skeleton-avatar { width: 28px; height: 28px; border-radius: 50%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    aside { position: static; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    nav { padding: 0.8rem 1rem; }
    .container { padding: 1.5rem 1rem; }
    .hero-article { height: 380px; }
    .hero-content { padding: 1.5rem; }
    .article-grid { grid-template-columns: 1fr; }
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent, #05a081);
    box-shadow: 0 0 10px rgba(5, 160, 129, 0.5);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   USER AUTH & PROFILE STYLES
   ========================================================================== */

/* Auth Modal */
/* ==========================================================================
   USER AUTH & PROFILE SYSTEM (PREMIUM EDITORIAL)
   ========================================================================== */

/* Auth Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 440px;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.auth-modal-overlay.active .auth-modal-box {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-tabs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    padding-bottom: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: var(--accent);
}

/* ==========================================================================
   Article UI Polish (Editoryal Detaylar)
   ========================================================================== */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 1;
    padding: 0.5rem 0.75rem 0 0;
    color: var(--accent);
    font-weight: 800;
}

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--text-primary);
    border-radius: 0 12px 12px 0;
}

/* Button Active Effect */
.btn:active {
    transform: scale(0.98);
}

/* Article Card Hover Polish */
.article-card:hover .image-placeholder img {
    transform: scale(1.05);
}

.article-card .image-placeholder {
    overflow: hidden;
}

.article-card .image-placeholder img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-footer {
    background-color: #08120e; /* Deep night green */
    color: #e2e8f0;
    padding: 0;
    margin-top: 10rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-glass-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    width: 100%;
}

body.light-mode .premium-footer {
    background-color: #F8FAF9;
    color: #1E293B;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col.branding .footer-logo-premium {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-logo-premium img {
    max-width: 120px;
    height: auto;
}

.footer-motto {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-about-text {
    font-size: 0.95rem;
    color: #8a9a92;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a9a92;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #8a9a92; /* Soluk gri-yeşil */
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover::after {
    width: 100%;
}

.newsletter-col .newsletter-desc {
    font-size: 0.95rem;
    color: #8a9a92;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input-group input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.8rem 0;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input-group input:focus {
    border-color: var(--accent);
}

.newsletter-input-group button {
    background: var(--accent);
    color: #08120e;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.newsletter-input-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5c7065;
    font-size: 13px;
}

.footer-signature {
    font-style: italic;
    color: #8a9a92;
}

/* responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-col.branding {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col.branding, .footer-col.newsletter-col {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form.active {
    display: flex;
}

.auth-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-error-msg {
    font-size: 0.85rem;
    color: #ffb8b8;
    background: rgba(255, 184, 184, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
    text-align: center;
}

.auth-error-msg.active {
    display: block;
}

/* Premium Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #08120e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #08120e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.25);
}

/* Specific Header Login Button */
.premium-auth-btn {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: var(--accent);
    padding: 0.6rem 1.4rem;
    border-radius: 50px; /* Modern pill shape */
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-auth-btn:hover {
    background: var(--accent);
    color: #08120e;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.25);
}

.premium-auth-btn svg {
    transition: transform 0.3s ease;
}

.premium-auth-btn:hover svg {
    transform: scale(1.1);
}

/* User Profile Navbar UI */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.user-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.user-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-menu:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a, 
.user-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.user-dropdown a:hover, 
.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    transform: translateX(5px);
}

.user-dropdown .divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.6rem 0;
}

#nav-logout-btn {
    color: #ff7675;
}

#nav-logout-btn:hover {
    background: rgba(255, 118, 117, 0.1);
}

/* Bookmark Buttons */
.bookmark-btn {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.bookmark-btn:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.5);
    color: #ffd700;
}

.bookmark-btn.saved {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.bookmark-btn svg {
    width: 18px;
    height: 18px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #1e272e;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 5px solid var(--accent);
    display: flex;
    align-items: center;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) scale(0.8); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

.toast.fade-out {
    animation: toastFadeOut 0.4s ease forwards;
}

@keyframes toastFadeOut {
    to { transform: translateX(50px); opacity: 0; }
}

/* Light Mode Overrides */
.light-mode .auth-modal-box {
    background: #fff;
}

.light-mode .auth-form input {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #2d3436;
}

.light-mode .user-menu:hover {
    background: #f8f9fa;
}

.light-mode .user-dropdown {
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.light-mode .user-dropdown a:hover, 
.light-mode .user-dropdown button:hover {
    background: #f1f2f6;
}

.light-mode .toast {
    background: #fff;
    color: #2d3436;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.light-mode .bookmark-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #2d3436;
}

.light-mode .bookmark-btn:hover {
    background: #fff;
    color: #ffd700;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent);
}

/* Article Page Layout with Sticky ToC */
.article-content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.toc-sidebar {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.8rem;
}

.toc-link {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-link:hover {
    color: var(--text-primary);
    padding-left: 16px;
}

.toc-link.active {
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
    padding-left: 16px;
}

.toc-link.h3 {
    padding-left: 24px;
    font-size: 0.85rem;
}

.toc-link.h3.active {
    padding-left: 28px;
}

/* Mobile Responsiveness for ToC */
@media (max-width: 1024px) {
    .article-content-layout {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        display: none;
    }
}

/* Light Mode Overrides */
.light-mode .reading-progress-bar {
    box-shadow: 0 0 5px var(--accent);
}

.light-mode .toc-sidebar {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.light-mode .toc-link:hover {
    color: #000;
}

.light-mode .toc-link.active {
    color: var(--accent);
}

/* --- USER DASHBOARD (DASHBOARD) STYLES --- */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 5rem;
}

.dashboard-sidebar {
    position: sticky;
    top: 100px;
}

.profile-hero-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.dashboard-avatar-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    padding: 3px;
    background: var(--bg-color);
}

.avatar-edit-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--card-bg);
    transition: transform 0.2s;
}

.avatar-edit-badge:hover {
    transform: scale(1.1);
}

.user-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.dashboard-nav {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.db-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.db-nav-item svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.db-nav-item:hover {
    background: rgba(74, 222, 128, 0.05);
    color: var(--text-primary);
}

.db-nav-item.active {
    background: var(--accent);
    color: #000;
}

.db-nav-item.active svg {
    opacity: 1;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tab Panels */
.dashboard-tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.dashboard-tab-panel.active {
    display: block;
}

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

/* Interest Pills */
.interest-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.interest-pill {
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    user-select: none;
}

.interest-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.interest-pill.selected {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Settings Form */
.settings-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.05);
}

/* Profile Upload */
.avatar-upload-zone {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.avatar-upload-zone:hover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.05);
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .db-nav-item {
        white-space: nowrap;
        padding: 0.8rem 1.2rem;
    }
}
