/* ============================================
   BLOG POST - MOBILE-FIRST DYNAMIC DESIGN
   Disco Tucholsky Kiel
   ============================================ */

/* === DIVIDER MENU → CONTENT === */
.bp-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff3cac, #784ba0, #ff3cac, transparent);
    margin-top: 60px;
    opacity: 0.6;
}

/* === BASE === */
html, body {
    background: #0a0a0a !important;
    overflow-x: hidden !important;
}

/* Dark scrollbar */
::-webkit-scrollbar { width: 6px; background: #0a0a0a; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
html { scrollbar-color: #333 #0a0a0a; scrollbar-width: thin; }

.bp-main {
    min-height: 100vh;
    padding-top: 70px;
    background: #0a0a0a;
}

/* === READING PROGRESS === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5);
    z-index: 9999;
    transition: width 0.08s linear;
}

/* === FEATURED BANNER === */
.bp-banner {
    position: relative;
    width: 100%;
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
}
.bp-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.bp-banner-overlay {
    display: none;
}
.bp-banner-info {
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 5px 6px;
    margin: 12px 0 0 16px;
    width: fit-content;
}
.bp-cat {
    background: #ff3cac;
    color: #fff;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.bp-readtime {
    color: #ccc;
    padding: 4px 12px;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* === WRAP === */
.bp-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* === ARTICLE === */
.bp-article {
    padding-top: 24px;
}

/* === HEADER === */
.bp-header {
    margin-bottom: 28px;
}
.bp-title {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.65em;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}
.bp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #888;
    font-size: 0.82em;
}
.bp-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.bp-meta i { color: #ff3cac; }

/* === CONTENT === */
.bp-content {
    color: #d4d4d4;
    font-size: 1.05em;
    line-height: 1.8;
}
.bp-content p {
    margin: 0 0 18px;
    color: #d4d4d4;
}
.bp-content p:last-child { margin-bottom: 0; }

/* Section titles detected from content */
.bp-section-title {
    margin: 36px 0 16px;
    padding-left: 14px;
    border-left: 3px solid #ff3cac;
    position: relative;
}
.bp-section-title span {
    font-family: 'Inter', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1.35;
}

/* Bullet-like lines (Main Floor:, Black Floor:) */
.bp-content p:has(+ .bp-section-title),
.bp-content p + p {
    /* natural spacing */
}

/* ## Sub-headings */
.bp-sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05em;
    font-weight: 700;
    color: #e0e0e0;
    margin: 28px 0 12px;
    padding-left: 14px;
    border-left: 2px solid #784ba0;
    line-height: 1.35;
}

/* > Blockquotes */
.bp-quote {
    margin: 24px 0;
    padding: 16px 20px;
    background: rgba(255,60,172,0.04);
    border-left: 3px solid #ff3cac;
    border-radius: 0 10px 10px 0;
}
.bp-quote p {
    color: #c8b8d8 !important;
    font-style: italic;
    margin: 0 0 8px !important;
    font-size: 1em;
    line-height: 1.7;
}
.bp-quote p:last-child { margin-bottom: 0 !important; }

/* - Bullet lists */
.bp-list {
    margin: 16px 0 20px;
    padding: 0 0 0 8px;
    list-style: none;
}
.bp-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #d4d4d4;
    line-height: 1.7;
}
.bp-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3cac, #784ba0);
}

/* --- Dividers */
.bp-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,60,172,0.3), transparent);
    margin: 32px 0;
}

/* Inline links */
.bp-content a {
    color: #ff3cac;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,60,172,0.3);
    transition: border-color 0.2s;
}
.bp-content a:hover {
    border-bottom-color: #ff3cac;
}

/* Bold & italic */
.bp-content strong { color: #fff; font-weight: 700; }
.bp-content em { color: #c8b8d8; }

/* === VIDEO === */
.bp-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 24px 0;
    background: #111;
}
.bp-video iframe, .bp-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* === GALLERY === */
.bp-gallery {
    margin: 28px 0;
}
.bp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.bp-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.bp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.bp-gallery-item:active img { transform: scale(1.05); }

/* === TAGS === */
.bp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bp-tags a {
    color: #ff3cac;
    background: rgba(255,60,172,0.08);
    border: 1px solid rgba(255,60,172,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.bp-tags a:active {
    background: rgba(255,60,172,0.2);
}

/* === SHARE === */
.bp-share {
    display: flex;
    gap: 10px;
    margin: 20px 0 32px;
}
.bp-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}
.bp-share-btn:active { transform: scale(0.9); }
.bp-wa { background: #25d366; }
.bp-fb { background: #1877f2; }
.bp-tw { background: #1da1f2; }
.bp-copy { background: rgba(255,255,255,0.1); }

/* === COMMENTS === */
.bp-comments {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 28px;
}
.bp-comments > h3 {
    color: #fff;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bp-comments > h3 i { color: #ff3cac; }
.bp-comment-count { color: #666; font-weight: 400; font-size: 0.9em; }

.bp-no-comments {
    text-align: center;
    padding: 30px 0;
    color: #555;
}
.bp-no-comments i { font-size: 2em; display: block; margin-bottom: 10px; color: #333; }

.bp-comment {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.bp-comment:last-of-type { border-bottom: none; }
.bp-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3cac, #784ba0);
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bp-comment-body { flex: 1; min-width: 0; }
.bp-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.bp-comment-head strong { color: #fff; font-size: 0.9em; }
.bp-comment-head time { color: #666; font-size: 0.75em; }
.bp-comment-body p { color: #bbb; font-size: 0.9em; line-height: 1.6; margin: 0; }

.bp-admin-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255,60,172,0.06);
    border-left: 2px solid #ff3cac;
    border-radius: 0 8px 8px 0;
}
.bp-admin-reply strong { color: #ff3cac; font-size: 0.8em; display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.bp-admin-reply p { color: #bbb; font-size: 0.85em; margin: 0; }

/* === COMMENT FORM === */
.bp-comment-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bp-comment-form h4 {
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    margin: 0 0 16px;
}
.bp-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.bp-comment-form input,
.bp-comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9em;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.bp-comment-form input:focus,
.bp-comment-form textarea:focus {
    outline: none;
    border-color: #ff3cac;
}
.bp-comment-form textarea {
    resize: vertical;
    min-height: 90px;
    margin-bottom: 12px;
}
.bp-comment-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff3cac, #784ba0);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
    -webkit-appearance: none;
}
.bp-comment-form button:active { opacity: 0.8; }

/* Messages */
.bp-msg {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bp-msg-ok { background: rgba(0,200,80,0.1); border: 1px solid rgba(0,200,80,0.3); color: #4caf50; }
.bp-msg-err { background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.3); color: #ff6b6b; }

/* === BACK TO TOP === */
.bp-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20,20,20,0.9);
    border: 1px solid rgba(255,60,172,0.3);
    color: #ff3cac;
    font-size: 1em;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s;
}
.bp-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.bp-top:active {
    background: #ff3cac;
    color: #fff;
}

/* === SCROLL ANIMATIONS === */
.anim-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* === LIGHTBOX (kept) === */
.blog-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.blog-lightbox.active { display: flex; }
.blog-lightbox img {
    max-width: 92%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100000;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255,60,172,0.3);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.5);
    padding: 4px 14px;
    border-radius: 20px;
}

/* === SIDEBAR (hidden on mobile/tablet, shown on desktop) === */
.bp-sidebar { display: none; }
.bp-left { min-width: 0; }

.bp-sidebar-sticky {
    position: sticky;
    top: 130px;
}
.bp-sidebar-title {
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bp-sidebar-title i { color: #ff3cac; }

.bp-ev-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
    margin-bottom: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.bp-ev-card:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,60,172,0.1); }
.bp-ev-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}
.bp-ev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-ev-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px 12px;
}
.bp-ev-date {
    font-size: 0.72em;
    color: #ff3cac;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.bp-ev-name {
    font-size: 0.85em;
    color: #ddd;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bp-ev-card:hover .bp-ev-name { color: #fff; }

.bp-ev-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255,60,172,0.08);
    border: 1px solid rgba(255,60,172,0.2);
    color: #ff3cac;
    font-size: 0.82em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.bp-ev-all:hover {
    background: rgba(255,60,172,0.15);
    transform: translateY(-1px);
}

/* ============================================
   TABLET+ (min-width: 640px)
   ============================================ */
@media (min-width: 640px) {
    .bp-main { padding-top: 80px; }
    .bp-wrap { padding: 0 24px 50px; }
    .bp-title { font-size: 2em; }
    .bp-content { font-size: 1.1em; }
    .bp-section-title { margin: 42px 0 18px; }
    .bp-section-title span { font-size: 1.25em; }
    .bp-gallery-grid { gap: 10px; }
    .bp-share-btn { width: 48px; height: 48px; }
    .bp-tags a:hover { background: rgba(255,60,172,0.15); transform: translateY(-1px); }
    .bp-share-btn:hover { transform: scale(1.1); }
}

/* ============================================
   DESKTOP (min-width: 900px)
   ============================================ */
@media (min-width: 900px) {
    .bp-main { padding-top: 120px; }
    .bp-banner { /* full image, no crop */ }
    .bp-banner-info { margin: 14px 0 0 24px; }
    .bp-wrap { max-width: 780px; padding: 0 32px 60px; }
    .bp-article { padding-top: 36px; }
    .bp-title { font-size: 2.4em; letter-spacing: -0.5px; }
    .bp-meta { gap: 20px; font-size: 0.88em; }
    .bp-content { font-size: 1.15em; line-height: 1.85; }
    .bp-content p { margin-bottom: 22px; }
    .bp-section-title { margin: 48px 0 20px; padding-left: 18px; }
    .bp-section-title span { font-size: 1.35em; }
    .bp-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
    .bp-gallery-item:hover img { transform: scale(1.06); }
    .bp-tags { margin: 36px 0 24px; }
    .bp-share { margin: 24px 0 40px; gap: 12px; }
    .bp-comments { padding-top: 36px; }
    .bp-comment-form button { width: auto; padding: 14px 36px; }
    .bp-form-row { gap: 14px; }
    .bp-top { bottom: 30px; right: 30px; width: 48px; height: 48px; }
    .bp-top:hover { background: #ff3cac; color: #fff; border-color: #ff3cac; transform: translateY(-3px); }
}

/* ============================================
   WIDE DESKTOP + SIDEBAR (min-width: 1100px)
   ============================================ */
@media (min-width: 1100px) {
    .bp-wrap {
        max-width: 1140px;
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }
    .bp-left { flex: 1; min-width: 0; max-width: 720px; }
    .bp-sidebar {
        display: block;
        width: 320px;
        flex-shrink: 0;
        padding-top: 36px;
    }
}
