/* ============================================================
   OG GALERİ SİSTEMİ — MASTER CSS (Vertical Flow V2.7 - HUB Update)
   wwwroot/css/og-gallery.css
   ============================================================ */

/* ── GLOBALS & THEME ── */
.og-gallery-scroller-v2 {
    background-color: #0b111a;
    color: #eee;
    min-height: 100vh;
    padding-bottom: 60px;
    font-family: 'Outfit', sans-serif !important;
}

.og-gallery-scroller-v2 *:not(i):not([class*="fa-"]) {
    font-family: 'Outfit', sans-serif !important;
}

.og-gallery-scroller-v2, 
.og-gallery-scroller-v2 main,
.og-gallery-scroller-v2 .container {
    background-color: #0b111a !important;
}

/* ── LIGHT MODE SUPPORT ── */
[data-theme="light"] .og-gallery-scroller-v2,
[data-theme="light"] .og-gallery-scroller-v2 main,
[data-theme="light"] .og-gallery-scroller-v2 .container {
    background-color: #ffffff !important;
    color: #1a1a1a;
}

[data-theme="light"] .og-gallery-sticky-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .og-header-title { color: #111 !important; }
[data-theme="light"] .og-header-meta { color: #777 !important; }
[data-theme="light"] .og-header-dot { background: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .og-header-close { color: #333; }

[data-theme="light"] .og-v2-title { color: #111; }
[data-theme="light"] .og-v2-spot { color: #555; }
[data-theme="light"] .og-v2-slide-title { color: #111; }
[data-theme="light"] .og-v2-slide-text { color: #444; }
[data-theme="light"] .og-v2-image-wrap { background: #f8f9fa; border-color: rgba(0, 0, 0, 0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
[data-theme="light"] .og-v2-divider .line, [data-theme="light"] .og-v2-divider .dot { background: #333; }
[data-theme="light"] .og-v2-end-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .og-v2-end-subtitle { color: #777; }
[data-theme="light"] .og-end-btn-v2 { background: #fff; border-color: rgba(0,0,0,0.1); color: #6c5ce7; }
[data-theme="light"] .og-end-btn-v2:hover { border-color: #6c5ce7; background: #fcfbff; }
[data-theme="light"] .og-v2-slide-card { background: #ffffff; color: #333; }
[data-theme="light"] .og-v2-image-wrap { background: #fdfdfd !important; }
[data-theme="light"] .og-reaction-btn.v2 { background: rgba(0,0,0,0.03) !important; border-color: rgba(0,0,0,0.08) !important; color: #555 !important; }
[data-theme="light"] .og-reaction-btn.v2:hover { background: rgba(0,0,0,0.06) !important; color: #000 !important; }

/* ── STICKY HEADER ── */
.og-gallery-sticky-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px;
    background: rgba(11, 17, 26, 0.95); backdrop-filter: blur(15px);
    z-index: 1000; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.og-header-page-badge {
    background: #f39c12; color: #000; font-weight: 800; width: 54px; height: 54px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 16px; border: 2px solid rgba(255,255,255,0.1);
    font-family: 'Outfit', sans-serif !important;
}
.og-header-page-badge .total { opacity: 0.6; font-size: 11px; margin-left: 2px; }
.og-header-title { font-family: 'Outfit', sans-serif !important; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.2px; line-height: 1.2; }
.og-header-meta { font-family: 'Outfit', sans-serif !important; font-size: 10px; color: #666; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.og-header-dots { display: flex; gap: 5px; }
.og-header-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.15); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.og-header-dot.active { background: #f39c12; box-shadow: 0 0 12px rgba(243, 156, 18, 0.6); transform: scale(1.1); }
.og-scroll-progress-bar-v2 { height: 100%; width: 0; background: #f39c12; }

/* ── OG STANDARD HEADER ── */
.og-v2-main-header { padding: 100px 20px 40px; max-width: 650px !important; }

/* Hub Header Overrides for Site Standards */
.og-hub-v2 .og-main-header-title { color: #fff !important; margin-top: 80px; }
.og-hub-v2 .og-main-header-sub { color: #aaa !important; margin-bottom: 40px; }

.og-v2-meta-badge { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 11px; font-weight: 700; color: #666; }
.og-v2-meta-badge .badge-type { background: #f39c12; color: #000; padding: 2px 10px; border-radius: 4px; }
.og-v2-title { font-family: 'Outfit', sans-serif; font-size: 42px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; }
.og-v2-spot { font-size: 19px; color: #999; line-height: 1.6; margin-bottom: 30px; border-left: 3px solid #f39c12; padding-left: 20px; }
.og-v2-cover-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); }
.og-v2-cover-wrap img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 500px; }

.og-v2-divider { display: flex; align-items: center; justify-content: center; gap: 15px; opacity: 0.2; }
.og-v2-divider .line { height: 1px; width: 100px; background: #fff; }
.og-v2-divider .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* ── SLIDE CARD V2 ── */
.og-v2-slides-container { max-width: 650px !important; }
.og-v2-slide-item { margin-bottom: 80px; scroll-margin-top: 80px; }
.og-v2-image-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #161c27; box-shadow: 0 30px 60px rgba(0,0,0,0.5); margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.03); }
.og-v2-img { width: 100%; height: auto; display: block; max-height: 85vh; object-fit: contain; cursor: zoom-in; }
.og-v2-float-num { position: absolute; top: 15px; left: 15px; background: rgba(243, 156, 18, 0.9); color: #000; padding: 3px 8px; border-radius: 4px; font-weight: 800; font-size: 10px; }
.og-v2-img-share { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(0,0,0,0.6); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: 0.2s; backdrop-filter: blur(5px); }
.og-v2-img-share:hover { background: #f39c12; transform: scale(1.1); color: #000; }

.og-v2-slide-title { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.01em; }
.og-v2-slide-text { font-size: 16px; color: #aaa; line-height: 1.8; margin-bottom: 20px; }

/* Reactions */
.og-v2-reactions { display: flex; gap: 8px; }
.og-reaction-btn.v2 { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 30px !important; padding: 6px 18px !important; color: #777 !important; display: flex; align-items: center; gap: 8px; font-size: 14px; transition: 0.2s; }
.og-reaction-btn.v2:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; transform: translateY(-2px); }

/* ── HUB V2 (Index Page) ── */
.og-hub-v2 .og-v2-main-header { max-width: 1000px !important; }

.og-hub-hero-card {
    display: block; position: relative; border-radius: 20px; overflow: hidden;
    height: 450px; margin-bottom: 40px; box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.og-hub-hero-img { width: 100%; height: 100%; }
.og-hub-hero-img img { width: 100%; height: 100%; object-fit: cover; transition: 1s; }
.og-hub-hero-card:hover img { transform: scale(1.05); }

.og-hub-hero-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px;
    background: linear-gradient(transparent, rgba(11, 17, 26, 0.95));
    display: flex; flex-direction: column; justify-content: flex-end;
}
.og-hub-meta { font-size: 13px; font-weight: 700; color: #888; }
.og-hub-meta i { color: #f39c12; margin-right: 5px; }

.og-hub-hero-overlay .badge {
    align-self: flex-start;
    border-radius: 4px;
    padding: 6px 16px;
    letter-spacing: 1px;
    font-size: 11px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Grid Cards */
.og-hub-card {
    display: block; text-decoration: none; border-radius: 16px; overflow: hidden;
    background: #161c27; border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); height: 100%;
}
.og-hub-card:hover { transform: translateY(-10px); border-color: rgba(243, 156, 18, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

.og-hub-card-img { position: relative; height: 200px; overflow: hidden; }
.og-hub-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.og-hub-card:hover .og-hub-card-img img { transform: scale(1.1); }

.og-hub-card-badge {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7);
    color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800;
}

.og-hub-card-content { padding: 20px; }
.og-hub-card-title { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; transition: 0.2s; }
.og-hub-card:hover .og-hub-card-title { color: #f39c12; }

.og-hub-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: #666; }
.og-hub-card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #333; }

/* ── LIGHT MODE OVERRIDES FOR HUB ── */
[data-theme="light"] .og-gallery-scroller-v2.og-hub-v2 {
    background-color: #f4f7f6 !important;
    color: #333;
}
[data-theme="light"] .og-hub-v2 .og-main-header-title { color: #1a1a1a !important; }
[data-theme="light"] .og-hub-v2 .og-main-header-sub { color: #555 !important; }
[data-theme="light"] .og-hub-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
[data-theme="light"] .og-hub-card-title { color: #111; }
[data-theme="light"] .og-hub-card-meta { color: #888; }
[data-theme="light"] .og-hub-card:hover { 
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #f39c12;
}

/* ── FOOTER & BRIDGE ── */
.og-v2-end-card { background: rgba(11, 17, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); }
.og-v2-end-title { font-size: 32px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; font-family: 'Oswald', sans-serif; }
.og-v2-end-subtitle { font-size: 14px; color: #555; font-weight: 600; }

.og-end-btn-v2 {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    color: #00a2ff; padding: 12px 24px; border-radius: 12px; text-decoration: none;
    font-size: 14px; font-weight: 700; transition: 0.3s; display: flex; align-items: center;
}
.og-end-btn-v2:hover { background: rgba(255, 255, 255, 0.08); border-color: #00a2ff; transform: translateY(-2px); }

.og-bridge-next-pill {
    display: block; max-width: 650px; margin: 30px auto; padding: 20px 24px;
    background: rgba(243, 156, 18, 0.05); border: 1px solid rgba(243, 156, 18, 0.1);
    border-radius: 12px; color: #f39c12; text-decoration: none; font-weight: 700; font-size: 16px; transition: 0.3s;
}
.og-bridge-next-pill:hover { background: rgba(243, 156, 18, 0.1); border-color: rgba(243, 156, 18, 0.3); }

.og-v2-bridge-v3 { max-width: 650px !important; margin: 40px auto 60px; }
.bridge-line { width: 1px; height: 50px; background: rgba(255,255,255,0.1); margin: 0 auto; }
.bridge-label { font-size: 11px; font-weight: 800; color: #f39c12; letter-spacing: 3px; margin: 20px 0; }
.bridge-title { font-size: 36px; font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -1px; }
.bridge-meta { font-size: 14px; color: #444; margin-top: 12px; font-weight: 700; }

/* ── LIGHTBOX ── */
.og-lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); align-items: center; justify-content: center;
}
.og-lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; animation: zoomIn 0.3s ease; }
.og-lightbox-close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .og-v2-title { font-size: 32px; }
    .og-v2-divider .line { width: 50px; }
    .og-header-title { max-width: 180px !important; }
    .og-hub-hero-card { height: 300px; }
    .og-hub-hero-overlay { padding: 20px; }
}

/* ── SAFETY OVERRIDES (Prevent "Exploded" Layouts) ── */
.article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 12px;
}

/* ── MINIMAL RELATED GALLERY CARD (News Detail Integration) ── */
.minimal-gallery-card {
    display: block;
    text-decoration: none !important;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,0.1));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

[data-theme="dark"] .minimal-gallery-card {
    background: rgba(22, 28, 39, 0.7);
    backdrop-filter: blur(10px);
    border-color: rgba(255,255,255,0.08);
}

.minimal-gallery-card:hover {
    transform: translateY(-4px);
    border-color: #f39c12;
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.15);
}

[data-theme="dark"] .minimal-gallery-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(243, 156, 18, 0.1);
}

.mg-card-inner {
    display: flex;
    align-items: center;
    height: 100px;
    max-height: 100px;
    overflow: hidden;
}

.mg-img-area {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.mg-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
}

.mg-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: 0.3s;
}

.mg-img-overlay i {
    color: #fff;
    font-size: 28px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minimal-gallery-card:hover .mg-img-area img {
    transform: scale(1.1);
    opacity: 1;
}

.minimal-gallery-card:hover .mg-img-overlay {
    opacity: 1;
}

.minimal-gallery-card:hover .mg-img-overlay i {
    transform: scale(1.1);
    color: #f39c12;
}

.mg-content-area {
    padding: 0 24px;
    flex-grow: 1;
    overflow: hidden;
}

.mg-badge {
    display: inline-block;
    background: #f39c12;
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.mg-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--bs-body-color, #111);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.3s;
}

.minimal-gallery-card:hover .mg-title {
    color: #f39c12;
}

.mg-meta {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-top: 4px;
}

.mg-arrow {
    padding-right: 24px;
    color: #f39c12;
    font-size: 20px;
    opacity: 0.3;
    transition: 0.4s;
}

.minimal-gallery-card:hover .mg-arrow {
    opacity: 1;
    transform: translateX(8px);
}

@media (max-width: 576px) {
    .mg-card-inner { height: 90px; max-height: 90px; }
    .mg-img-area { width: 120px; }
    .mg-content-area { padding: 0 15px; }
    .mg-title { font-size: 14px; }
    .mg-arrow { display: none; }
}

/* ── MINIMAL RELATED NEWS CARD (News Detail Integration) ── */
.minimal-news-card {
    display: block;
    text-decoration: none !important;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,0.1));
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin: 2.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

[data-theme="dark"] .minimal-news-card {
    background: rgba(22, 28, 39, 0.7);
    backdrop-filter: blur(10px);
    border-color: rgba(255,255,255,0.08);
}

.minimal-news-card:hover {
    transform: translateY(-4px);
    border-color: #6c5ce7;
    box-shadow: 0 12px 30px rgba(108, 92, 231, 0.15);
}

[data-theme="dark"] .minimal-news-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(108, 92, 231, 0.1);
}

.mn-card-inner {
    display: flex;
    align-items: center;
    height: 100px;
    max-height: 100px;
    overflow: hidden;
}

.mn-img-area {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}

.mn-img-area img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    opacity: 0.9;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
}

.mn-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: 0.3s;
}

.mn-img-overlay i {
    color: #fff;
    font-size: 28px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: scale(0.8);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.minimal-news-card:hover .mn-img-area img {
    transform: scale(1.1);
    opacity: 1;
}

.minimal-news-card:hover .mn-img-overlay {
    opacity: 1;
}

.minimal-news-card:hover .mn-img-overlay i {
    transform: scale(1.1);
    color: #6c5ce7;
}

.mn-content-area {
    padding: 0 24px;
    flex-grow: 1;
    overflow: hidden;
}

.mn-badge {
    display: inline-block;
    background: #6c5ce7;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.mn-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--bs-body-color, #111);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    transition: color 0.3s;
}

.minimal-news-card:hover .mn-title {
    color: #6c5ce7;
}

.mn-meta {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    margin-top: 4px;
}

.mn-arrow {
    padding-right: 24px;
    color: #6c5ce7;
    font-size: 20px;
    opacity: 0.3;
    transition: 0.4s;
}

.minimal-news-card:hover .mn-arrow {
    opacity: 1;
    transform: translateX(8px);
}

@media (max-width: 576px) {
    .mn-card-inner { height: 90px; max-height: 90px; }
    .mn-img-area { width: 120px; }
    .mn-content-area { padding: 0 15px; }
    .mn-title { font-size: 14px; }
    .mn-arrow { display: none; }
}
