@charset "utf-8";
/* ==========================================================================
   Roar Projects - Dedicated Blog-Style Portfolio Page Stylesheet
   File: css/portfolio.css
   Design System: Dark Luxury-Industrial Gold (#F3B21B) + Light Glass Crimson (#961b2b)
   Layout: 35% Sticky Left Project Directory | 65% Scrollable Right Blog Feed
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Header Banner ("PORTFOLIO AND PROJECTS" + Dual CTAs)
   -------------------------------------------------------------------------- */
.portfolio-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(243, 178, 27, 0.14) 0%, var(--bg-surface) 58%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 58px 0 42px;
  position: relative;
}

.portfolio-hero-inner {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.portfolio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold-primary);
  background: var(--gold-muted);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.portfolio-main-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-heading);
  margin: 0 0 14px;
  line-height: 1.18;
  text-transform: uppercase;
}

.portfolio-main-title strong {
  color: var(--gold-primary);
  font-weight: 800;
}

.portfolio-hero-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 auto 28px;
  max-width: 680px;
}

.portfolio-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.portfolio-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.portfolio-cta-btn.btn-primary {
  background: var(--gold-primary);
  color: #0E1013;
  border: 1px solid var(--gold-primary);
  box-shadow: var(--gold-box-shadow);
}

.portfolio-cta-btn.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #0E1013;
  transform: translateY(-2px);
}

.portfolio-cta-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver-light);
  border: 1px solid var(--silver-primary);
}

.portfolio-cta-btn.btn-secondary:hover {
  background: rgba(243, 178, 27, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

/* Filter Chips Bar */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-body);
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.filter-chip.is-active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0E1013;
  font-weight: 700;
  box-shadow: var(--gold-box-shadow);
}

.filter-chip .chip-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(14, 16, 19, 0.22);
}

/* --------------------------------------------------------------------------
   2. Split Blog Layout Workspace (35% Left | 65% Right)
   -------------------------------------------------------------------------- */
.portfolio-workspace-section {
  padding: 40px 0 80px;
  min-height: 70vh;
}

/* Slightly wider comfortable blog canvas while aligning visually with site margins */
.portfolio-wide-container {
  width: 92%;
  max-width: 1320px !important;
}

.portfolio-split-layout {
  display: flex;
  align-items: stretch;
  gap: 28px;
}

/* Left 35% Div Box (Stretches full height so inner sticky panel floats seamlessly) */
.portfolio-left-col {
  flex: 0 0 35%;
  width: 35%;
  min-width: 0;
  position: relative;
}

/* Right 65% Flexible Div Box */
.portfolio-right-col {
  flex: 1 1 65%;
  width: 65%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   3. Left 35% Floating Sticky Sidebar Panel & Compact Project Cards
   -------------------------------------------------------------------------- */
.sidebar-sticky-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 94px;
  z-index: 20;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 114px);
  max-height: calc(100vh - 114px);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sidebar-sticky-panel.is-floating {
  border-color: var(--border-accent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 22px var(--gold-glow);
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-feed-close-btn,
.mobile-feed-float-btn,
.mobile-feed-backdrop {
  display: none;
}

.sidebar-panel-header {
  flex-shrink: 0;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.sidebar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sidebar-panel-desc {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.sidebar-header-top h3 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header-top h3 i {
  color: var(--gold-primary);
}

.sidebar-sort-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-primary);
  background: var(--gold-muted);
  border: 1px solid var(--border-accent);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.sidebar-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-wrap i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.sidebar-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-muted);
}

/* Scrollable Left Cards List (Independent Vertical Scrolling Inside Floating Panel) */
.sidebar-cards-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-base);
}

.sidebar-cards-list::-webkit-scrollbar {
  width: 6px;
}
.sidebar-cards-list::-webkit-scrollbar-track {
  background: var(--bg-base);
}
.sidebar-cards-list::-webkit-scrollbar-thumb {
  background: rgba(243, 178, 27, 0.55);
  border-radius: 4px;
}

.sidebar-project-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sidebar-project-card:hover,
.sidebar-project-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  border-left-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  outline: none;
}

.sidebar-project-card.is-active {
  background: var(--bg-card-elevated);
  border-color: var(--gold-primary);
  border-left: 4px solid var(--gold-primary);
  box-shadow: 0 0 18px var(--gold-glow);
}

.sidebar-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #090B0E;
}

.sidebar-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sidebar-project-card:hover .sidebar-card-img-wrap img {
  transform: scale(1.06);
}

/* Hover Pop-Up Title Overlay Inside Thumbnail */
.sidebar-hover-title-popup {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(14, 16, 19, 0.88) 0%, rgba(14, 16, 19, 0.72) 60%, rgba(14, 16, 19, 0.92) 100%);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 2;
}

.sidebar-project-card:hover .sidebar-hover-title-popup,
.sidebar-project-card:focus-visible .sidebar-hover-title-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-title-text {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.popup-cta-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0E1013;
  background: var(--gold-primary);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Floating Desktop Hover Pop-Up Card (Zero-Clip Beside Sidebar) */
.feed-hover-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9980;
  width: 310px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(20, 23, 29, 0.96);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.65), 0 0 22px var(--gold-glow);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
  visibility: hidden;
}

.feed-hover-popover.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  visibility: visible;
}

.feed-hover-popover .popover-arrow {
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: rgba(20, 23, 29, 0.96);
  border-left: 1.5px solid var(--gold-primary);
  border-bottom: 1.5px solid var(--gold-primary);
  transform: rotate(45deg);
}

.popover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.popover-title {
  margin: 0 0 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.popover-desc {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #CFD6DF;
}

.popover-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

body[data-theme="light"] .feed-hover-popover,
body[data-theme="light"] .feed-hover-popover .popover-arrow {
  background: rgba(255, 255, 255, 0.97);
}

body[data-theme="light"] .popover-title {
  color: #121417;
}

body[data-theme="light"] .popover-desc {
  color: #343a40;
}

body[data-theme="light"] .popup-cta-hint {
  color: #ffffff;
}

.sidebar-date-pill,
.sidebar-photos-pill {
  position: absolute;
  bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(14, 16, 19, 0.84);
  backdrop-filter: blur(6px);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-date-pill {
  left: 8px;
}

.sidebar-photos-pill {
  right: 8px;
  color: var(--gold-primary);
}

.sidebar-card-body {
  padding: 12px 14px 14px;
}

.sidebar-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}

.sidebar-card-tags .tech-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-muted);
  color: var(--gold-primary);
  border: 1px solid var(--border-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sidebar-card-title {
  margin: 0 0 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.sidebar-card-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-panel-footer {
  padding: 11px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--border-accent);
  transition: all 0.2s ease;
}

.sidebar-admin-link:hover {
  background: var(--gold-primary);
  color: #0E1013;
}

/* --------------------------------------------------------------------------
   4. Right 65% Blog Feed Post Cards
   -------------------------------------------------------------------------- */
.portfolio-blog-post {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: var(--card-shadow);
  scroll-margin-top: 96px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-blog-post.is-highlighted {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 1px var(--gold-primary), 0 12px 36px rgba(0, 0, 0, 0.45);
}

.post-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.post-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.post-date-badge i {
  color: var(--gold-primary);
}

.post-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-tags-wrap .tech-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-muted);
  color: var(--gold-primary);
  border: 1px solid var(--border-accent);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.post-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-title {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--text-heading);
  text-align: left;
  line-height: 1.25;
}

.post-video-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 0, 0, 0.14);
  border: 1px solid rgba(255, 68, 68, 0.55);
  color: #ff6b6b;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-video-pill:hover {
  background: #e52d27;
  border-color: #e52d27;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 3-Column Image Gallery Grid (Matches PROJECT IMAGE 1..9 Wireframe) */
.post-gallery-wrapper {
  margin-bottom: 22px;
}

.post-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.post-gallery-grid.single-img-grid {
  grid-template-columns: 1fr;
}

.post-gallery-grid.two-img-grid {
  grid-template-columns: repeat(2, 1fr);
}

.post-gallery-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #090B0E;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-gallery-tile.is-extra-tile {
  display: none;
}

.post-gallery-grid.is-expanded .post-gallery-tile.is-extra-tile {
  display: block;
}

.post-gallery-grid.is-expanded .tile-more-overlay {
  display: none;
}

.post-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-gallery-tile:hover,
.post-gallery-tile:focus-visible {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  outline: none;
}

.post-gallery-tile:hover img {
  transform: scale(1.06);
}

.tile-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 19, 0.15) 0%, rgba(14, 16, 19, 0.65) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: var(--gold-primary);
  font-size: 20px;
}

.post-gallery-tile:hover .tile-hover-overlay {
  opacity: 1;
}

.tile-index-tag {
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(14, 16, 19, 0.85);
  color: var(--gold-primary);
  padding: 2px 7px;
  border-radius: 4px;
}

.tile-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 19, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.post-gallery-tile:hover .tile-more-overlay {
  background: rgba(243, 178, 27, 0.86);
  color: #0E1013;
}

.post-gallery-expand-bar {
  margin-top: 12px;
  text-align: right;
}

.btn-toggle-gallery {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--gold-primary);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-gallery:hover {
  background: var(--gold-primary);
  color: #0E1013;
}

/* Description Box */
.post-description-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.post-section-label {
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--gold-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.post-description-content p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-body);
  margin: 0 0 12px;
}

.post-description-content p:last-child {
  margin-bottom: 0;
}

.post-desc-subheading {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 14px 0 8px;
}

.post-feature-list {
  margin: 6px 0 12px;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 7px 16px;
}

.post-feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.post-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Interactive Action Bar: LIKE | SHARE | INQUIRE */
.post-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none !important;
  background: var(--bg-surface);
  color: var(--text-heading);
  border: 1px solid var(--border-card);
  transition: all 0.22s ease;
}

.post-action-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-1px);
}

.post-action-btn.btn-like.is-liked {
  background: rgba(243, 178, 27, 0.16);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.post-action-btn.btn-like.is-liked i {
  color: #ff4d6d;
}

.like-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.post-action-btn.btn-share.is-copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.post-action-btn.btn-inquire {
  margin-left: auto;
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0E1013;
}

.post-action-btn.btn-inquire:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #0E1013;
}

/* --------------------------------------------------------------------------
   5. Comment Section Inside Each Project Post
   -------------------------------------------------------------------------- */
.post-comments-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 18px;
}

.comments-header {
  margin-bottom: 12px;
}

.comments-header h4 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.comments-header h4 i {
  color: var(--gold-primary);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.comments-empty-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.comment-item {
  display: flex;
  gap: 11px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-muted);
  border: 1px solid var(--border-accent);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 14px;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-size: 13px;
  color: var(--text-heading);
}

.comment-date {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-body);
  word-break: break-word;
}

.comment-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-input-name {
  flex: 0 0 175px;
  padding: 9px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.comment-input-text {
  flex: 1 1 220px;
  padding: 9px 12px;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.comment-input-name:focus,
.comment-input-text:focus {
  border-color: var(--gold-primary);
}

.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--gold-primary);
  color: #0E1013;
  border: 1px solid var(--gold-primary);
  border-radius: 7px;
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-submit-btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Empty & Alert States */
.portfolio-alert-error,
.portfolio-empty-state,
.no-filter-matches {
  text-align: center;
  padding: 46px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  color: var(--text-body);
}

.portfolio-empty-state i,
.no-filter-matches i {
  font-size: 38px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   6. Fullscreen Image Lightbox Modal
   -------------------------------------------------------------------------- */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(8, 10, 14, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.portfolio-lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 10px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.lightbox-caption-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 23, 29, 0.9);
  border: 1px solid var(--border-card);
  padding: 10px 18px;
  border-radius: 999px;
  max-width: 820px;
}

.lightbox-counter {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #0E1013;
  background: var(--gold-primary);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.lightbox-caption-text {
  margin: 0;
  font-size: 13.5px;
  color: #E6EDF5;
}

.lightbox-close-btn,
.lightbox-nav-btn {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(26, 29, 35, 0.9);
  border: 1px solid var(--border-accent);
  color: var(--gold-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover,
.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  color: #0E1013;
}

.lightbox-close-btn {
  top: 22px;
  right: 26px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   7. Light Theme Overrides (Glassy #f2f2f2 + Crimson #961b2b)
   -------------------------------------------------------------------------- */
body[data-theme="light"] .portfolio-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(150, 27, 43, 0.12) 0%, rgba(242, 242, 242, 0.85) 60%, rgba(242, 242, 242, 0.96) 100%);
  border-bottom: 2px solid rgba(150, 27, 43, 0.45);
}

body[data-theme="light"] .portfolio-cta-btn.btn-primary,
body[data-theme="light"] .filter-chip.is-active,
body[data-theme="light"] .post-action-btn.btn-inquire,
body[data-theme="light"] .comment-submit-btn,
body[data-theme="light"] .sidebar-admin-link:hover,
body[data-theme="light"] .btn-toggle-gallery:hover {
  color: #ffffff;
}

body[data-theme="light"] .sidebar-sticky-panel,
body[data-theme="light"] .portfolio-blog-post {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

body[data-theme="light"] .sidebar-search-input,
body[data-theme="light"] .comment-input-name,
body[data-theme="light"] .comment-input-text {
  background: #ffffff;
  color: #121417;
}

body[data-theme="light"] .like-count-badge {
  background: rgba(150, 27, 43, 0.12);
}

/* --------------------------------------------------------------------------
   8. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .portfolio-wide-container {
    width: 95%;
  }
  .portfolio-split-layout {
    gap: 20px;
  }
  .portfolio-blog-post {
    padding: 20px;
  }
}

@media (max-width: 900px) {
  .portfolio-split-layout {
    flex-direction: column;
  }

  .portfolio-right-col {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Floating Slide-Over Projects Feed Drawer on Mobile/Tablet */
  .mobile-feed-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(8, 10, 14, 0.72);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .mobile-feed-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .portfolio-left-col {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 390px);
    max-width: 100%;
    z-index: 10020;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 12px;
    pointer-events: none;
  }

  .portfolio-left-col.is-drawer-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .sidebar-sticky-panel {
    position: relative;
    top: 0;
    height: 100%;
    max-height: 100%;
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  }

  .mobile-feed-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 1px solid var(--border-accent);
    color: var(--gold-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-feed-close-btn:hover {
    background: var(--gold-primary);
    color: #0E1013;
  }

  /* Floating Bottom-Left Trigger Button (Stays Floating While Scrolling on Mobile) */
  .mobile-feed-float-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 9990;
    max-width: calc(100vw - 104px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(20, 23, 29, 0.94);
    backdrop-filter: blur(12px);
    border: 1.5px solid var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 18px var(--gold-glow);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-feed-float-btn:hover {
    transform: translateY(-2px);
  }

  .mobile-feed-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gold-primary);
    color: #0E1013;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }

  .mobile-feed-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-feed-text strong {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gold-primary);
    line-height: 1.15;
  }

  .mobile-feed-text small {
    font-size: 11.5px;
    color: #E6EDF5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .mobile-feed-count {
    flex-shrink: 0;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gold-muted);
    border: 1px solid var(--border-accent);
    color: var(--gold-primary);
    font-family: 'Raleway', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body[data-theme="light"] .mobile-feed-float-btn {
    background: rgba(255, 255, 255, 0.94);
    color: #121417;
  }

  body[data-theme="light"] .mobile-feed-icon {
    color: #ffffff;
  }

  body[data-theme="light"] .mobile-feed-text small {
    color: #343a40;
  }

  .post-action-btn.btn-inquire {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .post-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .comment-input-name {
    flex: 1 1 100%;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
  .lightbox-close-btn {
    top: 12px;
    right: 12px;
  }
}
