/* ===== Borsa Bilgiyle Kazanılır — Stylesheet ===== */
:root{
  --bg:#F9F9F6;
  --bg-2:#F0F0EA;
  --dark:#0D1B2A;
  --dark-2:#1B263B;
  --text:#111110;
  --text-2:#4A4A45;
  --muted:#7A7A72;
  --border:#E2E2DC;
  --accent:#059669;
  --danger:#B91C1C;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:'IBM Plex Sans',sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.container{max-width:1400px;margin:0 auto;padding:0 1.5rem}
@media (min-width:1024px){.container{padding:0 3rem}}

.font-serif,.serif{font-family:'Playfair Display',Georgia,serif}
.mono{font-family:'IBM Plex Mono',monospace}
.overline{font-family:'IBM Plex Sans',sans-serif;font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:#555550}
::selection{background:#0D1B2A;color:#F9F9F6}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--border)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;height:80px}
.brand{display:flex;align-items:center;gap:.75rem}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-family:'Playfair Display',serif;font-weight:700;font-size:1.25rem}
.brand-text .overline{margin-top:.25rem}
.main-nav{display:none;align-items:center;gap:2rem}
.main-nav a{font-size:.875rem;font-weight:500;transition:color .2s ease}
.main-nav a:hover,.main-nav a.active{color:var(--accent)}
.btn-outline{border:1px solid var(--dark);color:var(--dark);padding:.5rem 1rem;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;transition:background .25s,color .25s}
.btn-outline:hover{background:var(--dark);color:var(--bg)}
.nav-toggle{display:block;background:none;border:none;font-size:1.5rem;cursor:pointer}
.mobile-menu{display:flex;flex-direction:column;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border)}
.mobile-menu a{padding:.25rem 0}
@media (min-width:1024px){.main-nav{display:flex}.nav-toggle{display:none}.mobile-menu{display:none!important}}

/* ===== Buttons ===== */
.btn-primary{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.4rem;background:var(--dark);color:var(--bg);font-weight:600;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;border:1px solid var(--dark);cursor:pointer;transition:all .3s ease}
.btn-primary:hover{background:var(--accent);border-color:var(--accent)}
.btn-ghost{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.4rem;background:transparent;color:var(--dark);font-weight:600;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;border:1px solid var(--dark);cursor:pointer;transition:all .3s ease}
.btn-ghost:hover{background:var(--dark);color:var(--bg)}

/* ===== Inputs ===== */
.input,select.input,textarea.input{width:100%;padding:.85rem 1rem;background:#fff;border:1px solid var(--border);color:var(--text);font-family:inherit;font-size:.95rem;border-radius:0}
.input:focus{outline:none;border-color:var(--dark)}
label{display:block;margin-bottom:.5rem}

/* ===== Hero ===== */
.hero{border-bottom:1px solid var(--border)}
.hero-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:4rem 0 5rem;align-items:end}
@media (min-width:1024px){.hero-grid{grid-template-columns:7fr 5fr;gap:3rem;padding:6rem 0 5rem}}
.hero h1{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(3rem,8vw,7rem);line-height:.95;letter-spacing:-.02em;margin:1.5rem 0 0}
.hero h1 em{font-style:italic;font-weight:500;color:var(--accent)}
.hero p.lead{font-size:1.125rem;color:var(--text-2);max-width:42rem;line-height:1.65;margin:2rem 0}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap}
.hero-image{position:relative}
.hero-image img{width:100%;aspect-ratio:4/5;object-fit:cover;border:1px solid var(--border)}
.hero-callout{position:absolute;left:-1.5rem;bottom:-1.5rem;background:var(--bg);border:1px solid var(--border);padding:1.25rem;max-width:280px;display:none}
@media (min-width:768px){.hero-callout{display:block}}

/* ===== Ticker ===== */
.ticker{overflow:hidden;background:var(--dark);color:var(--bg);border-top:1px solid var(--dark-2);border-bottom:1px solid var(--dark-2)}
.ticker-track{display:inline-flex;gap:3rem;white-space:nowrap;padding:.75rem 0;font-family:'IBM Plex Mono',monospace;font-size:.75rem;animation:ticker 60s linear infinite}
.ticker-item{display:inline-flex;align-items:center;gap:.5rem}
.ticker-item .pos{color:var(--accent)}
.ticker-item .neg{color:#f87171}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-33%)}}

/* ===== Live Stream ===== */
.live{background:var(--dark);color:var(--bg);position:relative}
.live-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:5rem 0}
@media (min-width:1024px){.live-grid{grid-template-columns:4fr 8fr;padding:5rem 0}}
.live-pulse{display:inline-flex;align-items:center;gap:.6rem;margin-bottom:1.25rem}
.live-pulse-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);position:relative}
.live-pulse-dot::after{content:'';position:absolute;inset:-3px;border-radius:50%;background:var(--accent);opacity:.4;animation:ping 1.5s ease-out infinite}
@keyframes ping{0%{transform:scale(1);opacity:.6}100%{transform:scale(2);opacity:0}}
.live h2{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3rem);line-height:1;margin:0 0 1.5rem}
.live h2 em{color:var(--accent);font-style:italic}
.live p{color:#a8b3c1;line-height:1.7;font-size:.95rem;max-width:32rem}
.live-meta{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid var(--dark-2);font-family:'IBM Plex Mono',monospace;font-size:.7rem;color:#7a8696}
.live-meta span{color:var(--bg)}
.live-video{aspect-ratio:16/9;border:1px solid var(--dark-2);background:#000;position:relative;width:100%}
.live-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.live-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#7a8696;font-family:'IBM Plex Mono',monospace;font-size:.85rem}

/* ===== Categories grid ===== */
.section{padding:5rem 0;border-bottom:1px solid var(--border)}
.section-head{display:flex;flex-direction:column;gap:1rem;margin-bottom:3rem}
@media (min-width:768px){.section-head{flex-direction:row;align-items:flex-end;justify-content:space-between}}
.section-head h2{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:.5rem 0 0}
.cat-grid{display:grid;grid-template-columns:1fr;border:1px solid var(--border)}
@media (min-width:768px){.cat-grid{grid-template-columns:repeat(3,1fr)}}
.cat-card{padding:2.5rem;border-bottom:1px solid var(--border);transition:background .3s ease,color .3s ease;display:block}
.cat-card:last-child{border-bottom:none}
@media (min-width:768px){.cat-card{border-bottom:0;border-right:1px solid var(--border)}.cat-card:last-child{border-right:0}}
.cat-card:hover{background:var(--dark);color:var(--bg)}
.cat-card:hover .overline{color:#a8b3c1}
.cat-card h3{font-family:'Playfair Display',serif;font-size:1.875rem;margin:.5rem 0 .75rem}
.cat-card svg{color:var(--accent)}
.cat-card p{font-size:.9rem;line-height:1.65;margin:0}
.cat-card .read-more{margin-top:2rem;color:inherit}
.cat-card:hover .read-more{color:var(--accent)}

/* ===== Article cards ===== */
.articles-grid{display:grid;grid-template-columns:1fr;gap:2rem}
@media (min-width:768px){.articles-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.articles-grid{grid-template-columns:repeat(3,1fr)}}
.article-card{background:#fff;border:1px solid var(--border);display:flex;flex-direction:column;transition:border-color .25s ease}
.article-card:hover{border-color:var(--dark)}
.article-card .thumb{aspect-ratio:16/10;overflow:hidden;border-bottom:1px solid var(--border)}
.article-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .8s ease}
.article-card:hover .thumb img{transform:scale(1.05)}
.article-card .body{padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;flex:1}
.article-card h3{font-family:'Playfair Display',serif;font-size:1.25rem;line-height:1.3;margin:0}
.article-card:hover h3{color:var(--accent)}
.article-card p{font-size:.875rem;color:var(--text-2);line-height:1.65;margin:0}
.article-meta{display:flex;align-items:center;gap:1rem;font-family:'IBM Plex Mono',monospace;font-size:.7rem;color:var(--muted)}

.article-wide{display:grid;grid-template-columns:1fr;gap:1.5rem;border-top:1px solid var(--border);padding-top:2rem;transition:border-color .2s ease}
@media (min-width:768px){.article-wide{grid-template-columns:1fr 2fr;gap:2rem}}
.article-wide:hover{border-top-color:var(--dark)}
.article-wide h3{font-family:'Playfair Display',serif;font-size:1.75rem;line-height:1.25;margin:.75rem 0 .5rem}
.article-wide:hover h3{color:var(--accent)}
.article-wide img{aspect-ratio:4/3;object-fit:cover;border:1px solid var(--border)}

/* ===== Article detail ===== */
.article-page{border-bottom:1px solid var(--border)}
.article-hero{max-width:860px;margin:0 auto;padding:4rem 1.5rem 3rem}
.article-hero h1{font-family:'Playfair Display',serif;font-size:clamp(2.25rem,5vw,4rem);line-height:1.05;margin:1.5rem 0 0}
.article-hero .lead{font-size:1.125rem;color:var(--text-2);line-height:1.7;margin:1.5rem 0}
.article-hero .meta{display:flex;gap:1.5rem;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:1rem 0;font-family:'IBM Plex Mono',monospace;font-size:.7rem;color:var(--muted)}
.article-cover{max-width:1100px;margin:0 auto;padding:0 1.5rem}
.article-cover img{aspect-ratio:16/9;object-fit:cover;border:1px solid var(--border);width:100%}
.article-body{max-width:760px;margin:0 auto;padding:4rem 1.5rem}
.article-body p{margin-bottom:1.1rem;line-height:1.85;color:#2a2a25;font-size:1.05rem}

/* ===== Newsletter ===== */
.join{background:var(--bg-2);border-bottom:1px solid var(--border)}
.join-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:5rem 0;align-items:center;max-width:1100px;margin:0 auto}
@media (min-width:768px){.join-grid{grid-template-columns:1fr 1fr}}
.join h2{font-family:'Playfair Display',serif;font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:.5rem 0 0}
.join-form{display:flex;flex-direction:column;gap:.75rem}

/* ===== Footer ===== */
.site-footer{background:var(--dark);color:var(--bg);margin-top:6rem}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;padding:4rem 0}
@media (min-width:768px){.footer-grid{grid-template-columns:2fr 1fr 1fr}}
.footer-brand p{margin-top:1.25rem;font-size:.875rem;color:#a8b3c1;max-width:30rem;line-height:1.7}
.site-footer ul{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-direction:column;gap:.5rem;font-size:.875rem}
.site-footer a:hover{color:var(--accent)}
.site-footer .overline{color:#a8b3c1}
.footer-bottom{border-top:1px solid var(--dark-2);padding:1.5rem;display:flex;flex-direction:column;gap:.5rem;font-size:.75rem;color:#a8b3c1}
@media (min-width:768px){.footer-bottom{flex-direction:row;justify-content:space-between}}

/* ===== About / Cert ===== */
.about-hero{display:grid;grid-template-columns:1fr;gap:3rem;padding:5rem 0;border-bottom:1px solid var(--border)}
@media (min-width:1024px){.about-hero{grid-template-columns:7fr 5fr}}
.about-hero h1{font-family:'Playfair Display',serif;font-size:clamp(2.5rem,6vw,5rem);line-height:.95;margin:1.5rem 0 0}
.about-hero .body{margin-top:2.5rem;max-width:42rem;font-size:1.05rem;line-height:1.7;color:#2a2a25}
.about-hero .body p{margin:1rem 0}
.about-hero img{aspect-ratio:4/5;object-fit:cover;border:1px solid var(--border)}

.values{background:var(--dark);color:var(--bg);padding:5rem 0;border-bottom:1px solid var(--border)}
.values-grid{display:grid;grid-template-columns:1fr;gap:2.5rem}
@media (min-width:768px){.values-grid{grid-template-columns:repeat(3,1fr)}}
.value{border-top:1px solid var(--dark-2);padding-top:2rem}
.value h3{font-family:'Playfair Display',serif;font-size:1.75rem;margin:1rem 0}
.value p{color:#a8b3c1;font-size:.9rem;line-height:1.7}

.cert-grid{display:grid;grid-template-columns:1fr;border:1px solid var(--border)}
@media (min-width:768px){.cert-grid{grid-template-columns:1fr 1fr}}
.cert-card{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;border-bottom:1px solid var(--border)}
@media (min-width:768px){.cert-card:nth-child(odd){border-right:1px solid var(--border)}}
.cert-card .thumb{position:relative}
.cert-card img{aspect-ratio:4/3;object-fit:cover;border:1px solid var(--border)}
.cert-card .year-badge{position:absolute;top:.75rem;right:.75rem;background:var(--bg);border:1px solid var(--border);padding:.25rem .75rem;font-family:'IBM Plex Mono',monospace;font-size:.7rem}
.cert-card h3{font-family:'Playfair Display',serif;font-size:1.5rem;margin:.75rem 0 0}

/* ===== Admin ===== */
.admin-shell{display:flex;min-height:100vh;background:var(--bg)}
.admin-sidebar{display:none;flex-direction:column;width:260px;background:var(--dark);color:var(--bg);border-right:1px solid var(--dark-2)}
@media (min-width:768px){.admin-sidebar{display:flex}}
.admin-sidebar .top{padding:1.5rem;border-bottom:1px solid var(--dark-2)}
.admin-sidebar nav{flex:1;padding:1rem;display:flex;flex-direction:column;gap:.25rem}
.admin-sidebar nav a{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;font-size:.875rem;color:#a8b3c1;font-weight:500;transition:background .2s,color .2s}
.admin-sidebar nav a:hover,.admin-sidebar nav a.active{background:var(--dark-2);color:var(--bg)}
.admin-sidebar .bottom{padding:1rem;border-top:1px solid var(--dark-2);font-size:.85rem}
.admin-sidebar .bottom .mono{color:var(--bg);word-break:break-all;display:block;margin:.5rem 0}
.admin-sidebar .bottom a{color:#a8b3c1;font-size:.75rem}
.admin-sidebar .bottom a:hover{color:var(--accent)}
.admin-main{flex:1;padding:2rem;overflow-x:auto}
@media (min-width:1024px){.admin-main{padding:3rem}}

.admin-header-mobile{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border);background:var(--bg)}
@media (min-width:768px){.admin-header-mobile{display:none}}

.admin-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border)}
.admin-table th,.admin-table td{padding:1rem;text-align:left;border-bottom:1px solid var(--border);font-size:.875rem}
.admin-table th{background:var(--bg-2);font-family:'IBM Plex Sans',sans-serif;font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:#555550}
.admin-table tbody tr:hover{background:var(--bg-2)}
.admin-table .actions{text-align:right;white-space:nowrap}
.admin-table .actions a,.admin-table .actions button{color:var(--dark);background:none;border:none;cursor:pointer;font-size:.875rem;margin-left:1rem;text-decoration:none;font-family:inherit}
.admin-table .actions a:hover{color:var(--accent)}
.admin-table .actions .danger:hover{color:var(--danger)}
.cat-badge{background:var(--bg-2);padding:.25rem .5rem;font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600}
.status-pub{color:var(--accent);font-family:'IBM Plex Mono',monospace;font-size:.75rem}
.status-draft{color:var(--muted);font-family:'IBM Plex Mono',monospace;font-size:.75rem}

/* ===== Admin Login ===== */
.admin-login{display:flex;min-height:100vh;background:var(--bg)}
.admin-login-art{display:none;flex:1;background:var(--dark);color:var(--bg);padding:4rem;flex-direction:column;justify-content:space-between}
@media (min-width:1024px){.admin-login-art{display:flex}}
.admin-login-art h1{font-family:'Playfair Display',serif;font-size:clamp(2.5rem,5vw,4rem);line-height:.95;margin:1.5rem 0 0}
.admin-login-art h1 em{color:var(--accent);font-style:italic}
.admin-login-art p{color:#a8b3c1;line-height:1.7;font-size:.95rem;max-width:32rem;margin-top:1.5rem}
.admin-login-art .mono{color:#7a8696;font-size:.75rem}
.admin-login-form-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}
.admin-login-form{width:100%;max-width:420px}
.admin-login-form h2{font-family:'Playfair Display',serif;font-size:2rem;margin:.75rem 0 2.5rem}

/* ===== Flash ===== */
.flash{padding:1rem 1.5rem;border-bottom:1px solid var(--border);font-size:.875rem;text-align:center}
.flash.success{background:#ECFDF5;color:#065F46;border-color:#A7F3D0}
.flash.error{background:#FEE2E2;color:#7F1D1D;border-color:#FCA5A5}

/* ===== Misc helpers ===== */
.text-accent{color:var(--accent)}
.italic{font-style:italic}
.empty-state{padding:2rem;color:var(--text-2);font-size:.95rem}
.grain{position:relative}
.grain::after{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.4;mix-blend-mode:overlay;pointer-events:none}
