/* /assets/blog.css */

.blog-hero { 
    position: relative;
    background: var(--hero-gradient); 
    border-radius: 15px; color: white; padding: 40px 20px; text-align: center; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); overflow: hidden; border: 2px solid var(--primary-gold); 
}

.blog-hero-inner {
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start; 
    gap: 40px; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 5;
}

.hero-text-box {
    flex: 1;
    min-width: 300px;
    max-width: 600px; 
    background: rgba(0,0,0,0.5); 
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -2;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: var(--hero-gradient);
}

.profile-container { position: relative; display: inline-block; flex-shrink: 0; }
.profile-pic { 
    width: 240px; 
    height: 240px; 
    border-radius: 12px; 
    border: 4px solid white; 
    object-fit: cover; 
    margin-bottom: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    background: #fff; 
    position: relative; 
    z-index: 2; 
    cursor: pointer;
    background-clip: padding-box;
}
        
.status-ring {
    position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    border-radius: 16px; 
    background: var(--hero-gradient);
    background-size: 300% 300%;
    z-index: 1;
    animation: gradientSpin 4s ease infinite;
    cursor: pointer;
}

@keyframes gradientSpin { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.blog-post-card { background: white; border: 1px solid #ddd; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; cursor: pointer; display: flex; flex-direction: column; }
.blog-post-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--primary-gold); }
.post-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 3px solid var(--primary-gold); }
.post-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-title { color: var(--primary-blue); font-size: 1.25rem; margin: 0 0 10px 0; line-height: 1.3; }
.post-excerpt { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; flex: 1; }

/* LISTEN-ANSICHT STYLES */
.blog-grid.list-view { display: flex; flex-direction: column; gap: 20px; }
.blog-grid.list-view .blog-post-card { flex-direction: row; align-items: stretch; }
.blog-grid.list-view .post-image { width: 220px; aspect-ratio: 1/1; border-bottom: none; border-right: 3px solid var(--primary-gold); }

@media (max-width: 600px) { 
    .blog-grid.list-view .blog-post-card { flex-direction: row; align-items: flex-start; }
    .blog-grid.list-view .post-image { width: 100px; height: 100px; aspect-ratio: auto; border-right: 2px solid var(--primary-gold); border-bottom: none; }
    .blog-grid.list-view .post-content { padding: 12px; }
    .blog-grid.list-view .post-title { font-size: 1.1rem; margin-bottom: 5px; }
    .blog-grid.list-view .post-excerpt { font-size: 0.85rem; margin-bottom: 8px; }
    .blog-grid.list-view .post-meta { font-size: 0.8rem; flex-direction: column; align-items: flex-start; gap: 2px; }
    .blog-grid.list-view .post-tags { display: none; } 
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 5px;}
.post-tag { background: white; color: var(--primary-blue); font-size: 0.85rem; padding: 5px 12px; border-radius: 20px; font-weight: bold; border: 2px solid var(--primary-blue); font-family: inherit; }

.insta-gallery { display:flex; gap:10px; overflow-x:auto; padding-bottom:10px; margin-bottom:20px; }
.insta-gallery img { height: 400px; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border:1px solid #eee; background: #fafafa; cursor: pointer; }
@media (max-width: 600px) { .insta-gallery img { height: 300px; } }

.review-meta-box { margin-top: 10px; margin-bottom: 25px; padding: 20px; background: linear-gradient(135deg, rgba(0,51,78,0.8), rgba(212,175,55,0.65)); border-radius: 12px; border: 2px solid var(--primary-gold); display: none; flex-direction: column; font-size: 0.95rem; color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.rating-segment { flex: 1; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; }
.rating-segment.filled { background: var(--primary-gold); border-color: var(--primary-gold); box-shadow: 0 0 8px rgba(212,175,55,0.6); }

/* BÜCHER & REZENSIONEN GALERIE */
.book-preview-list { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; }
.book-item { cursor: pointer; transition: transform 0.2s; width: 120px; flex-shrink: 0; }
.book-item:hover { transform: translateY(-5px); }
.book-cover-small { width: 100%; height: 180px; background-size: cover; background-position: center; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; }

body.dark-mode .blog-post-card { background: rgba(26, 26, 58, 0.85); border-color: rgba(97, 218, 251, 0.3); }
body.dark-mode .post-title { color: #61dafb; }
body.dark-mode .post-excerpt { color: #ccc; }
body.dark-mode .post-tag { background: transparent; color: #61dafb; border-color: rgba(97, 218, 251, 0.5); }
body.dark-mode .book-item { color: #61dafb; }

.blog-tools { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; flex-wrap: wrap; background: rgba(255,255,255,0.7); padding: 15px; border-radius: 15px; border: 1px solid var(--stroke); }
body.dark-mode .blog-tools { background: rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.1); }

.filter-scroll-container {
    display: flex; gap: 10px; margin-bottom: 35px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 5px; 
}
.filter-scroll-container::-webkit-scrollbar { display: none; }
.filter-scroll-container .filter-btn { flex-shrink: 0; width: auto; max-width: none; white-space: nowrap; }

.view-toggle { display: flex; background: rgba(0,51,78,0.1); border-radius: 8px; padding: 3px; }
.view-toggle button { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; border-radius: 5px; padding: 5px 15px; color: var(--primary-blue); transition: 0.2s;}
.view-toggle button.active { background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
body.dark-mode .view-toggle { background: rgba(255,255,255,0.1); }
body.dark-mode .view-toggle button { color: white; }
body.dark-mode .view-toggle button.active { background: rgba(0,0,0,0.5); }

.hero-social-btn {
    display: inline-flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.2); border-radius: 50%; color: white; 
    text-decoration: none; border: 1px solid rgba(255,255,255,0.4);
    transition: 0.2s;
}
.hero-social-btn:hover { background: var(--primary-gold); border-color: var(--primary-gold); transform: scale(1.1); }

.btn-gradient {
    background: linear-gradient(135deg, rgba(0,51,78,1), rgba(212,175,55,1));
    color: white !important; border: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

#modalPostLinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
#modalPostLinks a { display: inline-block; padding: 6px 18px; font-size: 0.9rem; border-radius: 20px; text-decoration: none; width: auto; }

body.dark-mode .btn-gradient {
    background: linear-gradient(135deg, #0a1128, #d4af37);
    color: #fff !important; border: 1px solid rgba(255,255,255,0.1) !important;
}
body.dark-mode #modalPostLinks a { color: #fff !important; }

/* LOGOS WECHSELN IM DARK MODE */
body.dark-mode #mainBrandLogo,
body.dark-mode .brand-logo {
  content: url('/data/truedark.webp') !important; 
}

.status-ring + .profile-pic {
    cursor: pointer; 
    border-color: transparent; 
    background-clip: padding-box;
}

/* --- Card-Design für den Text im Blog-Beitrag --- */
.post-content-card {
    background: #fdfdfc; 
    border: 1px solid #e8e6df;
    border-radius: 12px;
    padding: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
body.dark-mode .post-content-card {
    background: rgba(26, 26, 58, 0.5); 
    border: 1px solid rgba(97, 218, 251, 0.2);
    color: #ddd;
}

/* ==========================================================================
   INSTAGRAM STYLE MODAL
   ========================================================================== */
.insta-modal {
    position: relative;
    max-width: 1100px !important;
    width: 95%;
    margin: auto;
}

.insta-modal-layout {
    display: flex;
    flex-direction: row;
    height: 85vh;
    max-height: 850px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

body.dark-mode .insta-modal-layout {
    background: #1a1a2e;
}

/* Linke Seite (Medien) */
.insta-modal-media {
    flex: 1.3;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Rechte Seite (Sidebar) */
.insta-modal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    border-left: 1px solid #eee;
}

body.dark-mode .insta-modal-sidebar {
    border-color: rgba(255,255,255,0.1);
}

.insta-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

body.dark-mode .insta-modal-header {
    border-color: rgba(255,255,255,0.1);
}

.insta-modal-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch; /* Weiches Scrollen auf Mobile */
}

.insta-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

body.dark-mode .insta-modal-footer {
    background: rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.1);
}

/* Action Buttons & Stats */
.insta-action-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.icon-action-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    color: var(--primary-blue);
    transition: transform 0.2s;
}

.icon-action-btn:hover {
    transform: scale(1.1);
}

.insta-stats {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
    color: #555;
}

body.dark-mode .insta-stats { color: #aaa; }

/* Slider & Controls */
.insta-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.insta-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.insta-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.slider-btn:hover { background: var(--primary-gold); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.insta-slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.insta-slider-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.insta-slider-dots .dot.active { background: white; transform: scale(1.2); }

/* Styling für den Schließen-Button (Desktop) */
.insta-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1000;
}

/* ==========================================================================
   MOBILE ANPASSUNG (ECHTE VOLLBILD-CARD)
   ========================================================================== */
@media (max-width: 800px) {
    /* Overlay zwingen, kein Padding mehr zu haben */
    #postModalOverlay {
        padding: 0 !important;
        align-items: flex-start !important; 
    }

    .insta-modal {
        width: 100% !important;
        height: calc(100vh - 60px) !important; /* Volle Höhe abzüglich deiner Menüleiste */
        height: calc(100dvh - 60px) !important; /* Besser für moderne Mobile-Browser */
        max-width: none !important;
        margin: 0 !important;
    }
    
    .insta-modal-layout {
        display: flex;
        flex-direction: column; 
        height: 100%;
        border-radius: 0 !important;
        overflow-y: auto; /* WICHTIG: Erlaubt es, die gesamte Karte natürlich zu scrollen */
        -webkit-overflow-scrolling: touch;
    }
    
    .insta-modal-media {
        flex: none;
        height: 45vh; /* Bild nimmt ca. die halbe Höhe ein */
        min-height: 300px;
        width: 100%;
    }
    
    .insta-modal-sidebar {
        flex: 1;
        border-left: none;
        max-width: 100%;
        height: auto;
        overflow: visible; /* Scrollbalken innerhalb der Sidebar auf Mobile deaktivieren */
    }
    
    .insta-modal-content-scroll {
        overflow-y: visible; /* Internes Scrollen deaktivieren, wir scrollen das ganze Layout */
        padding: 15px;
    }
    
    /* Schließen-Button wandert über das Bild in die Ecke und bleibt fixiert */
    .insta-close-btn {
        position: fixed;
        top: 15px;
        right: 15px;
        background: rgba(0,0,0,0.6);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        line-height: 1;
        z-index: 2000; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}
.top-nav-brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-nav-brand-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}
