/* ==========================================================================
   MANTAR DEPOSU PREMIUM CORE & GRID SYSTEM STYLE SHEET
   ========================================================================== */

:root {
    --primary-forest: #0b240b;
    --main-green: #144214;
    --accent-orange: #ff6622;
    --accent-yellow: #ffcc00;
    --slate-dark: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--slate-dark);
    margin: 0; padding: 0;
}

/* --- HEADER & TOP BAR --- */
.header-top-bar {
    background-color: var(--primary-forest);
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-top-bar a { color: #cbd5e1; text-decoration: none; }
.header-top-bar a:hover { color: var(--accent-yellow); }

.main-navigation {
    background-color: #ffffff;
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
}
.nav-wrapper {
    display: flex; justify-content: space-between; align-items: center;
}
.brand-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.logo-box {
    background-color: var(--main-green); color: #fff;
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.logo-text-group { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-weight: 800; color: var(--primary-forest); font-size: 18px; letter-spacing: -0.5px; }
.logo-sub { font-weight: 700; color: #64748b; font-size: 10px; letter-spacing: 2px; }

/* Menü Butonları */
.nav-buttons-group { display: flex; align-items: center; gap: 12px; }
.btn-nav {
    padding: 8px 18px; font-size: 13.5px; font-weight: 700; border-radius: 6px;
    text-decoration: none; display: inline-block; transition: all 0.2s ease;
}
.btn-mantar-sat { background-color: #16a34a !important; color: #fff !important; }
.btn-mantar-sat:hover { background-color: #15803d !important; }
.btn-mantar-al { background-color: #2563eb !important; color: #fff !important; }
.btn-mantar-al:hover { background-color: #1d4ed8 !important; }
.user-profile-link { text-decoration: none; font-weight: 600; color: var(--slate-dark); font-size: 14px; }

/* --- CANLI BORSA MARQUEE BAND --- */
.ticker-marquee-band {
    background-color: #020617; color: #fff; height: 42px; border-bottom: 2px solid var(--main-green);
}
.ticker-content-wrapper { display: flex; align-items: center; height: 100%; }
.ticker-title-badge {
    background-color: var(--accent-orange); font-weight: 800; font-size: 12px;
    padding: 0 15px; height: 100%; display: flex; align-items: center; white-space: nowrap; z-index: 10;
}
.ticker-data-item { margin-right: 40px; font-size: 13.5px; display: inline-block; }

/* --- HERO ARAMA MOTORU ALANI --- */
.hero-search-area {
    background: linear-gradient(135deg, #0b240b 0%, #1e3f1e 100%);
    color: #fff; padding: 50px 0 60px 0; border-bottom: 4px solid var(--accent-orange);
}
.hero-title { font-weight: 800; font-size: 32px; margin-bottom: 8px; }
.hero-desc { opacity: 0.8; font-size: 15px; margin-bottom: 30px; }

.premium-search-container {
    background-color: #fff; padding: 10px; border-radius: 8px;
    max-width: 850px; margin: 0 auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.form-icon-group { position: relative; display: flex; align-items: center; }
.form-icon-group .main-icon { position: absolute; left: 14px; z-index: 5; color: #94a3b8; }
.form-icon-group .form-control, .form-icon-group .form-select {
    height: 48px; padding-left: 40px !important; border: 1px solid var(--border-color); border-radius: 6px;
    font-size: 14px; color: var(--slate-dark); font-weight: 500;
}
.form-icon-group .form-control:focus, .form-icon-group .form-select:focus { box-shadow: none; border-color: var(--main-green); }

.btn-search-execute {
    background-color: var(--accent-orange); color: #fff; font-weight: 700; height: 48px;
    border: none; border-radius: 6px; font-size: 15px; transition: background 0.2s;
}
.btn-search-execute:hover { background-color: #d94e14; color: #fff; }

/* --- PİYASA ENDEKSİ ÇIZELGESİ --- */
.market-index-card {
    background-color: #3b2314; border-radius: 8px; padding: 14px 20px;
    display: flex; align-items: center; gap: 20px; color: #fff;
}
.index-bar-title { font-weight: 700; font-size: 13px; color: var(--accent-yellow); white-space: nowrap; }
.index-bar-scroller { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; }
.index-badge-item .m-type { font-weight: 600; }
.index-badge-item .m-price { font-weight: 700; color: var(--accent-yellow); margin-left: 4px; }

/* --- PREMIUM MANTAR İLAN KARTLARI --- */
.premium-mushroom-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.premium-mushroom-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }

.card-img-frame { height: 165px; background-position: center; background-size: cover; position: relative; }
.class-tag-badge {
    position: absolute; top: 10px; left: 10px; background-color: rgba(11,36,11,0.9);
    color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.soldout-ribbon {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); color: #fff; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
}

.card-body-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.m-title { font-size: 15px; font-weight: 700; color: var(--primary-forest); margin-bottom: 8px; }
.m-meta-info { font-size: 12.5px; margin-bottom: 6px; color: #475569; }
.m-location i { color: #ef4444; margin-right: 3px; }
.m-schedule { background-color: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-size: 11.5px; margin-top: 5px; }

.m-price-tag { font-size: 18px; font-weight: 800; color: #dc2626; margin-top: auto; padding-top: 10px; }
.m-price-tag small { font-size: 11px; color: #64748b; font-weight: 500; }

.btn-card {
    height: 36px; font-size: 13px; font-weight: 700; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; text-decoration: none; border: none;
}
.active-action-btn { background-color: #fff; color: #16a34a; border: 1.5px solid #16a34a; transition: all 0.2s; }
.active-action-btn:hover { background-color: #16a34a; color: #fff; }

/* Pasif Mod (Tükendi) Sınıfları */
.card-disabled-soldout { opacity: 0.78; }
.disabled-action-btn { background-color: #64748b; color: #fff; cursor: not-allowed; }

/* --- FOOTER --- */
.premium-footer { background-color: var(--primary-forest); color: #94a3b8; padding: 45px 0 20px 0; font-size: 13.5px; }
.footer-block-title { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 15px; }
.footer-about-text { line-height: 1.6; }
.footer-legal-badge { background-color: rgba(255,255,255,0.04); padding: 8px; border-radius: 6px; font-size: 11.5px; margin-top: 10px; }
.footer-list-links { list-style: none; padding: 0; margin: 0; }
.footer-list-links li { margin-bottom: 8px; }
.footer-list-links a { color: #94a3b8; text-decoration: none; }
.footer-list-links a:hover { color: #fff; }
.footer-warning-box { background-color: rgba(255,102,34,0.06); border: 1px dashed var(--accent-orange); padding: 12px; border-radius: 6px; font-size: 12px; line-height: 1.5; }

/* RESPONSIVE FLUID GRIDS */
@media (max-width: 992px) {
    .nav-wrapper { flex-direction: column; gap: 15px; text-align: center; }
    .market-index-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}
/* ==========================================================================
   KURUMSAL CANLI BORSA TICKER STİLLERİ
   ========================================================================== */
.corporate-ticker-bar {
    background: #0f172a;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid #1e3a1e;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.ticker-label {
    background: linear-gradient(135deg, #1e3a1e 0%, #0f2e0f 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    position: relative;
    letter-spacing: 0.5px;
}

/* Canlı Sinyal Noktası */
.pulse-icon {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ticker-track-container {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.ticker-infinite-track {
    display: flex;
    width: max-content;
    animation: ticker-slide 25s linear infinite;
}

.ticker-infinite-track:hover {
    animation-play-state: paused; /* Fare üzerine gelince kurumsal bilgi okunsun diye durur */
    cursor: pointer;
}

.ticker-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-right: 20px;
}

.ticker-item {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    padding: 0 35px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-item strong {
    color: #ffffff;
    font-weight: 700;
}

.trend-up {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

@keyframes ticker-slide {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}