/* ============================================================
   Café de Jetson — Custom Styles
   Consolidated from inline styles across all PHP modules.
   ============================================================ */

/* --- Base --- */
img { max-width: 100%; height: auto; }
body { padding-top: 43px; }
.w3-bar-item { text-decoration: none; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #795548;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* --- Excerpt Card --- */
.excerpt-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.excerpt-content, .excerpt-content p {
    font-style: italic !important;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
}

/* --- Article View --- */
.blog-body {
    font-size: 1.15em;
    line-height: 1.7;
    color: #333;
}
.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 16px;
    display: block;
}
.blog-body iframe {
    display: block;
    margin: 24px -24px !important;
    width: calc(100% + 48px) !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
    background: #000;
}

/* --- Card Preview (YouTube) --- */
.blog-card-body iframe {
    display: block;
    margin: 16px -16px !important;
    width: calc(100% + 32px) !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border: none;
}

/* --- Share Icons --- */
.share-icon {
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    color: #fff !important;
    margin-left: 6px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}
.share-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.share-icon.wa { background-color: #25D366; }
.share-icon.masto { background-color: #6364ff; }
.share-icon.bsky { background-color: #0085ff; }
.share-icon.pdf { background-color: #e74c33; }
.share-icon.delete-btn {
    background-color: #f44336;
}

/* --- Admin Bar --- */
.admin-bar {
    margin: 10px 0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
}

/* --- Search Box --- */
.search-box {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
}
.search-box input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
}
.search-box button {
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
}
.search-box button:hover {
    color: #795548;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 16px 0;
}
.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}
.pagination a {
    background: #fff;
    border: 1px solid #ddd;
    color: #795548;
}
.pagination a:hover {
    background: #f5f5f5;
}
.pagination .current {
    background: #795548;
    color: #fff;
    border: 2px solid #5D4037;
    font-weight: bold;
}

/* ============================================================
   Mobile Layout — Panel + Responsive Sidebar
   ============================================================ */

/* Desktop-only: zijbalken zichtbaar */
.desktop-sidebar { display: block; }

/* Mobile overlay */
#mobile-panel-overlay {
    display: none;
    position: fixed;
    top: 43px; left: 0;
    width: 100%; height: calc(100vh - 43px);
    background: rgba(0,0,0,0.3);
    z-index: 3;
}
#mobile-panel-overlay.open { display: block; }

/* Mobile panel (slide-in van links) */
#mobile-panel {
    display: none;
    position: fixed;
    top: 43px; left: 0;
    width: 300px; max-width: 85vw;
    height: calc(100vh - 43px);
    background: #f5f5f5;
    z-index: 4;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
#mobile-panel.open {
    display: block;
    transform: translateX(0);
}

/* Mobile panel accordion spacing */
#mobile-panel .w3-card {
    border-radius: 0 !important;
    margin-bottom: 2px;
}
#mobile-panel .w3-bar {
    border-radius: 0 !important;
}

/* Desktop-only: RSS + Home knoppen bovenaan */
.desktop-only { display: inline-block; }

/* Responsive */
@media (max-width: 992px) {
    .w3-main {
        margin-left: 0 !important;
        margin-top: 43px !important;
    }
    .desktop-sidebar { display: none !important; }
    .desktop-only { display: none !important; }
}

@media (min-width: 993px) {
    #mobile-panel-btn { display: none !important; }
    #topbar-search-btn { display: none !important; }
    #topbar-search { display: none !important; }
    #mobile-panel, #mobile-panel-overlay { display: none !important; }
}

/* ============================================
   Font Awesome local fallback
   Override EasyMDE's @import from maxcdn
   ============================================ */
@font-face {
  font-family: "FontAwesome";
  src: local("FontAwesome"),
       url("/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),
       url("/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"),
       url("/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype");
  font-weight: normal;
  font-style: normal;
}
.heading-permalink { display: none !important; }
