/* v0.4.3 | 2025-11-09 10:14:00 UTC | contain+blur from >=768px (mobile sees single image), fluid height clamp */
/* SH Timeline - matches members-list palette and UX */
    a:hover, a:focus, a:active {
      text-decoration: none;
      color: #fff!;
    }

/* ===== Timeline utilities & badge variants (scoped here, removed from global) ===== */
.is-hidden{display:none}
.sh-type-badge-header{border:1px solid transparent}
.sh-badge-default{background-color:rgba(107,114,128,.08);color:#6b7280;border-color:rgba(107,114,128,.2)}
.sh-badge-news{background-color:rgba(59,130,246,.08);color:#3b82f6;border-color:rgba(59,130,246,.2)}
.sh-badge-article{background-color:rgba(139,92,246,.08);color:#8b5cf6;border-color:rgba(139,92,246,.2)}
.sh-badge-activity{background-color:rgba(16,185,129,.08);color:#10b981;border-color:rgba(16,185,129,.2)}
.sh-badge-trainer{background-color:rgba(245,158,11,.08);color:#f59e0b;border-color:rgba(245,158,11,.2)}
.sh-badge-company{background-color:rgba(102,126,234,.08);color:#667eea;border-color:rgba(102,126,234,.2)}
.sh-badge-user{background-color:rgba(6,182,212,.08);color:#06b6d4;border-color:rgba(6,182,212,.2)}
.sh-badge-update{background-color:rgba(16,185,129,.08);color:#10b981;border-color:rgba(16,185,129,.2)}
.sh-badge-achievement{background-color:rgba(245,158,11,.08);color:#f59e0b;border-color:rgba(245,158,11,.2)}
.sh-card-tags-line{color:rgba(255,255,255,0.65);font-size:12px;padding:0 5px 15px 15px}   
:root {
    --sh-primary: #3A91CD;
    --sh-secondary: #667eea;
    --sh-accent: #0073aa;
    --sh-success: #2196F3;
    --sh-dark: #0a0a0a;
    --sh-card-bg: rgba(58, 145, 205, 0.05);
    --sh-border: rgba(58, 145, 205, 0.15);
    --sh-gradient: rgba(33, 150, 243, 0.3);
}

/* Page container */
.sh-timeline-page {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    padding: 0 0 60px;
}

.sh-timeline-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.timeline-header {
    text-align: center;
    margin: 24px;
}
.timeline-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #3A91CD;
    margin: 0 0 8px 0;
}
.timeline-header p { color: rgba(255,255,255,0.85); margin: 0; }

/* Filters - sticky bar (desktop/tablet) */
.timeline-filters {
    position: sticky;
    top: 70px;
    z-index: 50;
    margin-bottom: 24px;
}

.filters-section {
    background: var(--sh-card-bg);
    border: 1px solid var(--sh-border);
    border-radius: 16px;
    padding: 14px 16px;
    backdrop-filter: blur(10px);
}

.filters-form { display: grid; gap: 12px; align-items: end; }
.filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 6px; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.filter-group select,
.filter-group input[type="text"] {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    height: 42px;
}
.filter-group select:focus,
.filter-group input[type="text"]:focus { outline: none; border-color: var(--sh-primary); background: rgba(255,255,255,0.08); }
.filter-group select option { background: #1a1a1a; color: white; }

/* Municipality Search Dropdown */
.sh-municipality-search-wrapper {
    position: relative;
}

.sh-municipality-search {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    height: 42px;
    width: 100%;
}

.sh-municipality-search:focus {
    outline: none;
    border-color: var(--sh-primary);
    background: rgba(255,255,255,0.08);
}

.sh-municipality-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.sh-municipality-item {
    padding: 10px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sh-municipality-item:last-child {
    border-bottom: none;
}

.sh-municipality-item:hover {
    background: rgba(58, 145, 205, 0.15);
    color: #3A91CD;
}

.sh-municipality-item.sh-no-results {
    cursor: default;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.sh-municipality-item.sh-no-results:hover {
    background: transparent;
    color: rgba(255,255,255,0.5);
}

.filters-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-filter { padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; border: none; height: 48px; min-width: 140px; cursor: pointer; text-decoration: none; }
.btn-filter-apply { background: rgba(33, 150, 243, 0.3); border: 1px solid rgba(33, 150, 243, 0.5); color: white; }
.btn-filter-apply:hover { transform: translateY(-2px); background: rgba(33, 150, 243, 0.4); box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3); }
.btn-filter-reset { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); }
.btn-filter-reset:hover { background: rgba(255,255,255,0.1); }

/* Vertical Timeline with connecting line */
.timeline-feed { position: relative; padding-left: 50px; padding-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.timeline-feed::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, rgba(58,145,205,0.4), rgba(102,126,234,0.4)); border-radius: 2px; }

.sh-timeline-card { position: relative; background: var(--sh-card-bg); border: 1px solid var(--sh-border); border-radius: 16px; overflow: visible; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
/* Keep images contained with border radius */
.sh-card-image { border-radius: 0; overflow: hidden; }
.sh-card-image img { border-radius: 0; }
.sh-timeline-card:hover { border-color: rgba(58,145,205,0.35); box-shadow: 0 8px 28px rgba(58,145,205,0.25); }
.sh-card-description{padding: 5px 16px 20px 16px; color: #fff;font-size: 16px;font-weight: 300;line-height: 1.5;}
/* Dot connecting to vertical line with horizontal connector */
.sh-timeline-card::before { 
    content: ''; 
    position: absolute; 
    left: -38px; 
    top: 30px; 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: var(--sh-primary); 
    box-shadow: 0 0 0 5px rgba(58,145,205,0.25), 0 0 12px rgba(58,145,205,0.4); 
    z-index: 2;
}

/* Horizontal line from vertical timeline to card */
.sh-timeline-card::after { 
    content: ''; 
    position: absolute; 
    left: -32px; 
    top: 36px; 
    width: 32px; 
    height: 2px; 
    background: linear-gradient(90deg, rgba(58,145,205,0.4), rgba(58,145,205,0.15)); 
    z-index: 1;
}

/* Card structure (adapted to members-list look) */
.sh-timeline-card .sh-card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sh-border); }
.sh-card-user { display: flex; align-items: flex-start; gap: 12px; flex: 1; }
.sh-user-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--sh-primary); background: rgba(255,255,255,0.08); flex-shrink: 0; }
.sh-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sh-user-info { flex: 1; min-width: 0; }
.sh-user-name { color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.sh-user-name:hover { color: var(--sh-primary); }
.sh-event-meta { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.65); font-size: 13px; }

/* Type Badge in Header - Elegant with text (like SH members badges) */
.sh-type-badge-header { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 12px; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 600; 
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.sh-type-badge-header .badge-icon { font-size: 14px; }
.sh-type-badge-header .badge-label { font-weight: 600; }

.sh-timeline-card .sh-card-body { padding: 0; }
.sh-timeline-card .sh-card-title { padding: 14px 16px 14px 16px; color: #fff; font-size: 16px; line-height: 1.5; }
.sh-timeline-card .sh-card-title a { color: #fff; text-decoration: none; }
.sh-timeline-card .sh-card-title a:hover { color: var(--sh-primary); }

.sh-card-image { width: 100%; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.sh-card-image img { width: 100%; height: auto; display: block;  max-height: 560px; object-fit: cover; }

/* Tablet & up: show blurred backdrop and contain the foreground image to avoid cropping of vertical photos */
@media (min-width: 768px) {
  .sh-card-image.has-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image: var(--sh-img);
    background-size: cover; background-position: center;
    filter: blur(22px);
    transform: scale(1.1);
  }
  .sh-card-image.has-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
  }
  .sh-card-image .sh-card-img {
    position: relative; z-index: 1;
    width: 100%; height: clamp(380px, 50vw, 560px); /* fluid height with safe bounds */
    object-fit: contain; object-position: center;
    background: transparent;
  }
}

.sh-timeline-card .sh-card-badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px 14px; min-height: 0px; }
.sh-card-badges:empty { padding: 0; height: 0; min-height: 0; }
.sh-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; font-size: 12px; font-weight: 700; color: #fff; }
.sh-badge-activity { background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%); display:none; }
.sh-badge-featured { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.sh-badge-promoted { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

.sh-timeline-card .sh-card-footer { display: flex; flex-direction: column; border-top: 1px solid var(--sh-border); }

/* Stats Bar - Facebook style (above action buttons) */
.sh-timeline-card .sh-stats-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--sh-border); }
.sh-timeline-card .sh-stats-left { display: flex; align-items: center; gap: 8px; }
.sh-timeline-card .sh-stats-right { display: flex; align-items: center; gap: 12px; }
.sh-timeline-card .sh-stat-item { color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer; }
.sh-timeline-card .sh-stat-item:hover { text-decoration: none; color: rgba(255,255,255,0.8); }

/* Comment Prompt Bar - Enticing users to comment */
.sh-comment-prompt-bar { padding: 12px 16px; background: rgba(58, 145, 205, 0.05); border-bottom: 1px solid var(--sh-border); cursor: pointer; transition: all 0.2s; }
.sh-comment-prompt-bar:hover { background: rgba(58, 145, 205, 0.1); }
.sh-comment-prompt-text { color: rgba(255,255,255,0.7); font-size: 12x; font-weight: 500; }

.sh-footer-actions { display: flex; align-items: center; gap: 8px; padding: 8px 12px; width:100% }
.sh-timeline-card .sh-action-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 10px; border: 1px solid var(--sh-border); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.85); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; }
.sh-timeline-card .sh-action-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Make view button subtle like members-list profile button */
.sh-timeline-card .sh-action-view { background: rgba(33, 150, 243, 0.3); border: 1px solid rgba(33, 150, 243, 0.5); color: #fff; }
.sh-timeline-card .sh-action-view:hover { background: rgba(33, 150, 243, 0.4); border-color: rgba(33, 150, 243, 0.6); }
.sh-action-label:hover { color: #fff; }

/* Type Badge - Bottom Right (elegant like SH members badges) */
.sh-type-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 6px 12px; 
    border-radius: 12px; 
    font-size: 12px; 
    font-weight: 600; 
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.sh-type-badge .badge-icon { font-size: 14px; }
.sh-type-badge .badge-label { font-weight: 600; }

/* Empty state */
.no-events { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.8); background: var(--sh-card-bg); border: 1px solid var(--sh-border); border-radius: 16px; }

/* Mobile FAB bubble for filters */
.timeline-fab { display: none; position: fixed; left: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(33, 150, 243, 0.3); color: #fff; border: 1px solid rgba(33, 150, 243, 0.5); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.timeline-fab i { width: 22px; height: 22px; color: #fff; }

/* Reactions & Comments */
.sh-reactions-summary { display: flex; align-items: center; gap: 6px; padding: 0 8px; color: rgba(255,255,255,1); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.sh-reactions-summary:hover { color: rgba(255,255,255,0.9); }
.sh-reactions-icons-stack { display: flex; align-items: center; position: relative; height: 20px; }
.sh-reaction-emoji-item { font-size: 16px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: rgba(26, 26, 46, 0.9); border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); margin-left: -6px; }
.sh-reaction-emoji-item:first-child { margin-left: 0; }
.sh-action-btn.active { background: transparent; border: 2px solid var(--sh-primary); color: var(--sh-primary); }
.sh-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sh-action-count { font-size: 12px; opacity: 0.8; }

/* Comments Section */
.sh-comments-section { background: rgba(0,0,0,0.2); border-top: 1px solid var(--sh-border); padding: 16px; }
.sh-comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; max-height: 400px; overflow-y: auto; }
.sh-comment { display: flex; gap: 12px; }
.sh-comment-avatar { flex-shrink: 0; }
.sh-comment-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sh-border); }
.sh-comment-content { flex: 1; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 10px 14px; }
.sh-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sh-comment-author { font-weight: 700; color: var(--sh-primary); font-size: 14px; }
.sh-comment-time { font-size: 12px; color: rgba(255,255,255,0.5); }
.sh-comment-text { color: rgba(255,255,255,0.9); font-size: 14px; line-height: 1.5; }
.sh-no-comments { text-align: center; color: rgba(255,255,255,0.5); font-size: 14px; padding: 20px; }

/* Comment Form */
.sh-comment-form { display: flex; gap: 10px; align-items: flex-end; }
.sh-comment-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--sh-border); border-radius: 12px; padding: 10px 14px; color: white; font-size: 14px; resize: vertical; min-height: 44px; max-height: 120px; font-family: inherit; }
.sh-comment-input:focus { outline: none; border-color: var(--sh-primary); background: rgba(255,255,255,0.08); }
.sh-comment-input[readonly] { cursor: pointer; opacity: 0.7; }
.sh-comment-input[readonly]:hover { opacity: 0.9; }

/* Button-like comment input for non-logged/non-activated users */
.sh-comment-input-button { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--sh-border); border-radius: 12px; padding: 12px 14px; color: rgba(255,255,255,0.6); font-size: 14px; cursor: pointer; min-height: 44px; display: flex; align-items: center; transition: all 0.3s ease; }
.sh-comment-input-button:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }

.sh-comment-submit { background: rgba(33, 150, 243, 0.2); color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(33, 150, 243, 0.3); border-radius: 12px; padding: 10px 20px; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; height: 44px; }
.sh-comment-submit:hover { transform: translateY(-2px); background: rgba(33, 150, 243, 0.3); box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3); }
.sh-comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Action buttons - Cancel/Close */
.btn-cancel, .btn-close { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; cursor: pointer; }
.btn-cancel:hover, .btn-close:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); }

/* Action buttons - Delete/Disable/Danger */
.btn-delete, .btn-disable, .btn-danger, .btn-remove { background: rgba(220, 53, 69, 0.3); color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(220, 53, 69, 0.6); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; cursor: pointer; }
.btn-delete:hover, .btn-disable:hover, .btn-danger:hover, .btn-remove:hover { background: rgba(220, 53, 69, 0.4); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4); }

/* Action buttons - Success/Confirm */
.btn-success, .btn-confirm, .btn-save { background: rgba(33, 150, 243, 0.2); color: rgba(255, 255, 255, 0.9); border: 1px solid rgba(33, 150, 243, 0.3); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; cursor: pointer; }
.btn-success:hover, .btn-confirm:hover, .btn-save:hover { background: rgba(33, 150, 243, 0.3); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3); }

/* Action buttons - Primary/Info */
.btn-primary, .btn-info, .btn-edit { background: rgba(33, 150, 243, 0.3); border: 1px solid rgba(33, 150, 243, 0.5); color: #ffffff; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; cursor: pointer; }
.btn-primary:hover, .btn-info:hover, .btn-edit:hover { background: rgba(33, 150, 243, 0.4); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3); }

/* Reaction Picker Modal - Matching "Σύνδεση Απαιτείται" Style */
.sh-reaction-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; }
.sh-reaction-modal { background: rgba(15, 15, 15, 0.98); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; padding: 0; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.8); backdrop-filter: blur(20px); animation: slideUp 0.3s ease; }
.sh-reaction-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sh-reaction-modal-header h3 { margin: 0; color: white; font-size: 20px; font-weight: 600; }
.sh-reaction-modal-close { background: transparent; border: none; color: rgba(255,255,255,0.6); font-size: 28px; cursor: pointer; line-height: 1; padding: 0; width: 32px; height: 32px; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.sh-reaction-modal-close:hover { color: white; transform: scale(1.1); }
.sh-reaction-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 24px; max-height: 60vh; overflow-y: auto; }
.sh-reaction-option { background: rgba(255,255,255,0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s ease; }
.sh-reaction-option:hover { background: rgba(33, 150, 243, 0.15); border-color: rgba(33, 150, 243, 0.5); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(33, 150, 243, 0.2); }
.sh-reaction-option.active { background: rgba(58, 145, 205, 0.15); border-color: var(--sh-primary); }
.sh-reaction-emoji { font-size: 32px; }
.sh-reaction-label { color: white; font-size: 13px; font-weight: 600; text-align: center; }

.sh-close-activation-modal { font-size: 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); padding: 12px 24px; border-radius: 12px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; }
.sh-close-activation-modal:hover { background: rgba(255,255,255,0.15); }

.sh-activation-btn { font-size: 16px; background: rgba(33,150,243,0.3); border: 1px solid rgba(33,150,243,0.5); color: white; padding: 12px 24px; border-radius: 12px; text-decoration: none; font-weight: 600; display: inline-block; transition: all 0.3s ease; }
.sh-activation-btn:hover { background: rgba(33,150,243,0.4); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(33,150,243,0.3); }

/* Login modal - matching activation modal style */
.sh-close-login-modal { transition: all 0.3s ease; }
.sh-close-login-modal:hover { background: rgba(255,255,255,0.15) !important; }


/* Mobile responsive for reactions */
@media (max-width: 480px) {
    .sh-reaction-modal { max-width: 95%; }
    .sh-reaction-options { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
    .sh-reaction-option { padding: 14px 10px; }
    .sh-reaction-emoji { font-size: 28px; }
    .sh-reaction-label { font-size: 12px; }
}

/* SH Modal System - Matching "Σύνδεση Απαιτείται" Style */
.sh-modal-fav-activity { display:none; position: fixed; inset: 0; z-index: 9999; }
.sh-modal-fav-activity .sh-modal-overlay { position:absolute; inset:0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); display:flex; align-items:center; justify-content:center; animation: fadeIn 0.2s ease; }
.sh-modal-fav-activity .sh-modal-content { max-height: 680px;height: 75vh;width: 480px; max-width: 92vw; background: rgba(15, 15, 15, 0.98); color:#fff; border:1px solid rgba(255,255,255,0.15); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); overflow:hidden; animation: slideUp 0.3s ease; }
.sh-modal-fav-activity .sh-modal-header { padding: 10px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display:flex; align-items:center; justify-content: space-between; }
.sh-modal-fav-activity .sh-modal-header h3 { margin:0; font-size: 20px; font-weight:600; color: white; }
.sh-modal-fav-activity .sh-modal-close { background:none; border:none; color:rgba(255,255,255,0.6); font-size: 28px; cursor:pointer; transition: all 0.2s ease; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; }
.sh-modal-fav-activity .sh-modal-close:hover { color: white; transform: scale(1.1); }
.sh-modal-fav-activity .sh-modal-body { padding: 20px 24px; font-size: 15px; color:#e2e8f0; }
.sh-modal-fav-activity .sh-modal-header {margin-bottom:0px}
.sh-modal-fav-activity .sh-modal-footer { padding: 20px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); display:flex; gap:10px; justify-content:flex-end; }
.sh-btn { font-size:16px; border:none; border-radius:10px; padding:10px 14px; cursor:pointer; font-weight:600; }
.sh-btn.primary { font-size:14px;background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;}
.sh-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(58, 145, 205, 0.3); }
.sh-btn.secondary {     background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff; }

.sh-btn.secondary:hover {     background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px); }
.sh-btn.danger { background:#ef4444; color:white; }
.sh-btn.danger:hover { background:#dc2626; }

/* Mobile Responsive - Complete Overhaul */
@media (max-width: 768px) {
 .sh-modal-fav-activity .sh-modal-content { max-height: 600px; }

  /* Container adjustments */
  .sh-timeline-page .container {
    padding: 20px 5px;
  }
  
  /* Header - smaller on mobile */
  .timeline-header h1 {
    font-size: 28px;
  }
  .timeline-header p {
    font-size: 14px;
  }
  
  /* Filters */
  .filters-grid { grid-template-columns: 1fr; gap: 12px; }
  .filters-actions { flex-direction: column; height: auto; min-height: 108px; }
  .btn-filter { width: 100%; justify-content: center; height: 48px; min-height: 48px; }
  .filters-section { display: none; }
  .timeline-fab { display: flex; }
  .timeline-filters.is-open .filters-section { display: block; position: fixed; left: 12px; right: 12px; bottom: 84px; top: auto; padding: 16px; z-index: 70; }
  
  /* Timeline Feed - Move line to left edge */
  .timeline-feed {
    padding-left: 20px; /* Reduced from 50px */
  }
  
  /* Vertical line - Move to left edge (5px from left) */
  .timeline-feed::before {
    left: 5px; /* Was 18px */
    width: 2px; /* Slightly thinner */
    background: linear-gradient(180deg, rgba(58,145,205,0.4), rgba(102,126,234,0.4));
  }
  
  /* Timeline Cards - Much wider, closer to screen edges */
  .sh-timeline-card {
    margin-right: 5px; /* Almost touch right edge */
  }
  
  /* Dot - Adjust position to match new line position */
  .sh-timeline-card::before {
    left: -21px; /* Adjusted from -32px */
    width: 12px; /* Slightly smaller */
    height: 12px;
    top: 24px; /* Adjusted */
  }
  
  /* Horizontal connector line - Shorter */
  .sh-timeline-card::after {
    left: -15px; /* Match dot position */
    width: 15px; /* Shorter line */
    top: 29px; /* Adjusted to center with dot */
  }
  
  /* Card Header - Compact */
  .sh-timeline-card .sh-card-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  
  /* User Avatar - Smaller */
  .sh-user-avatar {
    width: 44px;
    height: 44px;
  }
  
  /* User Info - Smaller fonts */
  .sh-user-name {
    font-size: 14px;
    font-weight: 600;
  }
  
  /* Event Meta - Stack vertically with tooltips */
  .sh-event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11px;
    width: 100%;
    margin-top: 4px;
  }
  
  /* Meta items - Show only icons with tooltip on tap */
  .sh-event-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
  }
  
  /* Hide text on very small screens, show only icons */
  .sh-event-meta .meta-item .meta-text {
    display: inline; /* Keep visible for now */
    font-size: 11px;
  }
  
  /* Type Badge - Smaller */
  .sh-type-badge-header {
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
    display: none;
  }
  .sh-type-badge-header .badge-icon {
    font-size: 12px;
    display: none;
  }
  
  /* Card Title - Smaller */
  .sh-timeline-card .sh-card-title {
    padding: 10px 12px 10px 12px;
    font-size: 14px;
    line-height: 1.4;
  }


  /* Card Description - Smaller */
  .sh-card-description {
    padding: 5px 12px 16px 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Business Badge - Smaller */
  .sh-business-badge {
    padding: 6px 10px;
    font-size: 12px;
    margin: 0 12px 12px 12px;
  }
  .sh-business-badge i {
    font-size: 14px;
  }
  
  /* Action Buttons - Smaller, better spacing */
  .sh-action-buttons {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .sh-action-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 4px;
  }
  
  .sh-action-icon {
    font-size: 16px;
  }
  
  .sh-action-label {
    font-size: 12px;
  }
  
  /* Stats Bar - Compact */
  .sh-stats-bar {
    padding: 8px 12px;
    font-size: 11px;
  }
  
  /* Reactions Summary - Smaller */
  .sh-reactions-summary {
    gap: 4px;
  }
  
  .sh-reactions-icons-stack {
    height: 18px;
  }
  
  .sh-reaction-emoji-item {
    font-size: 14px;
    width: 20px;
    height: 20px;
    margin-left: -4px;
  }
  
  .sh-reaction-emoji-item:first-child {
    margin-left: 0;
  }
  
  .sh-reactions-count {
    font-size: 11px;
  }
  
  /* Comments Count - Smaller */
  .sh-comments-count {
    font-size: 11px;
  }
  
  /* Comment Prompt Bar - Smaller */
  .sh-comment-prompt-bar {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .sh-comment-prompt-avatar {
    width: 32px;
    height: 32px;
  }
}

/* Extra Small Screens - Stack meta items, icon-only mode */
@media (max-width: 480px) {
  /* Even more compact */
  .sh-timeline-page .container {
    padding: 16px 3px;
  }
  
  /* Stack activity and location vertically */
  .sh-event-meta {
   flex-direction: row;
    align-items: flex-start;
    gap: 3px;
    justify-content: start;
  }
  
  /* Smaller fonts everywhere */
  .sh-user-name {
    font-size: 13px;
  }
  
  .sh-card-title {
    font-size: 13px;
  }
  
  .sh-card-description {
    font-size: 12px;
  }
  
  /* Action buttons - Icon + minimal text */
  .sh-action-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .sh-action-icon {
    font-size: 14px;
    display: none;
  }
}

/* ===== Timeline Floating Filters and Utility Styles (moved from inline) ===== */
/* Default hidden utility (used for initial floating bar state) */
.is-hidden-init { display: none; }

/* Infinite scroll trigger block */
.infinite-scroll-trigger { height: 1px; margin: 40px 0; }

/* Loading indicator container */
.sh-loading-indicator { display: none; text-align: center; padding: 20px; }

/* Shared spinner */
.sh-spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #E63946; border-radius: 50%; animation: sh-spin 1s linear infinite; }
.sh-loading-text { margin-top: 10px; color: #666; }
@keyframes sh-spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* Hide pill count by default – JS shows it when there are selections */
.sh-pill-count { display: none; }

/* Floating Filters Bar (Timeline) */
#tl-float-filters.tl-float {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 8px 12px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}
#tl-float-filters.tl-float.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
#tl-float-filters .sh-smart-filters { margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; }
#tl-float-filters .filter-group { margin-top: 6px; }

/* ===== Mobile-first bottom filters bar ===== */
@media (max-width: 768px) {
  /* Reserve space at bottom so το bar δεν σκεπάζει περιεχόμενο */
  .sh-timeline-page { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Move floating to bottom, minimal look */
  #tl-float-filters.tl-float {
    top: auto;
    bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    border: none;
    box-shadow: 0 -6px 14px rgba(0,0,0,0.25);
    transform: translateY(110%); /* start off screen for slide-in */
    opacity: 1; /* we manage visibility via translate on mobile */
    background: rgba(10,10,10,0.92);
  }
  #tl-float-filters.tl-float.visible { transform: translateY(0); }

  /* Pills become full-width grid with small gaps */
  #tl-float-filters .sh-smart-filters { padding: 0; margin: 0; }
  #tl-float-filters .sh-filter-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0;
    overflow-x: auto;
  }
  #tl-float-filters .sh-filter-pill {
    width: 100%;
    border: none;
    font-weight: 100; /* thin */
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    min-height: 44px;
    
  }
  #tl-float-filters .sh-filter-pill i { width: 18px; height: 18px; }
  #tl-float-filters .sh-filter-pill .sh-pill-label { font-size: 12px; }
  #tl-float-filters .sh-filter-pill .sh-pill-count { display: none; }
}
