/* =========================================================
   My Google Journey — Custom Photo Blog Styles
   Supports 3 themes: light (default), warm, dark
   ========================================================= */

:root {
  --g-blue: #1a73e8;
  --g-blue-hover: #1557b0;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #1e8e3e;

  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-soft: #f1f3f4;
  --border: #e0e3e7;
  --text: #202124;
  --text-muted: #5f6368;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --guide-bg: #e6f4ea;
  --guide-text: #137333;
  --product-bg: #e8f0fe;
  --product-text: #1967d2;
  --shadow-sm: 0 1px 3px rgba(32, 33, 36, 0.08);
  --shadow-md: 0 8px 24px rgba(32, 33, 36, 0.09);
  --shadow-lg: 0 20px 50px rgba(32, 33, 36, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="warm"] {
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --surface-soft: #f3ece1;
  --border: #e6dccb;
  --text: #2b241d;
  --text-muted: #6f6255;
  --accent: #c55a2c;
  --g-blue: #c55a2c;
  --g-blue-hover: #a7461d;
  --accent-soft: #faeae2;
  --guide-bg: #e8f3ea;
  --guide-text: #236339;
  --product-bg: #faeae2;
  --product-text: #a7461d;
  --font-display: Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --bg: #121316;
  --surface: #1c1e22;
  --surface-soft: #262930;
  --border: #31353f;
  --text: #f1f3f4;
  --text-muted: #9aa0a6;
  --accent: #8ab4f8;
  --g-blue: #669df6;
  --g-blue-hover: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, 0.14);
  --guide-bg: rgba(129, 201, 149, 0.14);
  --guide-text: #81c995;
  --product-bg: rgba(138, 180, 248, 0.14);
  --product-text: #8ab4f8;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 4-color top Google stripe */
.accent-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 4px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 60;
}
.accent-bar .g-blue { background: #4285f4; }
.accent-bar .g-red { background: #ea4335; }
.accent-bar .g-yellow { background: #fbbc04; }
.accent-bar .g-green { background: #34a853; }

/* Header */
.site-header {
  position: sticky;
  top: 4px;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.brand-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nav-pill:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-pill.active {
  background: var(--accent-soft);
  color: var(--accent);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--g-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--g-blue) 35%, transparent);
}
.btn-primary:hover {
  background: var(--g-blue-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--surface-soft);
}

.btn-soft {
  background: var(--surface-soft);
  color: var(--text);
}
.btn-soft:hover {
  filter: brightness(0.96);
}

.btn-danger-soft {
  background: rgba(234, 67, 53, 0.12);
  color: #d93025;
}
html[data-theme="dark"] .btn-danger-soft {
  color: #f28b82;
}
.btn-danger-soft:hover {
  background: rgba(234, 67, 53, 0.2);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s ease;
}
.icon-btn:hover {
  background: var(--surface-soft);
}

/* Main Content */
.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 56px;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.toolbar-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.toolbar-heading p {
  margin: 0;
  font-size: 0.98rem;
}

.search-wrap {
  position: relative;
  min-width: 240px;
  flex: 0 1 320px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
}

.search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-wrap input:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-guide {
  background: var(--guide-bg);
  color: var(--guide-text);
}

.badge-product {
  background: var(--product-bg);
  color: var(--product-text);
}

.badge-city {
  background: var(--surface-soft);
  color: var(--text-muted);
}

.stars {
  color: #f9ab00;
  letter-spacing: 1px;
  font-size: 0.92rem;
}

/* Featured Hero Card */
.featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.featured-media {
  position: relative;
  min-height: 300px;
  max-height: 410px;
  background: var(--surface-soft);
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-count-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18, 19, 22, 0.76);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.featured-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.24;
  margin: 0;
}

.card-excerpt {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  overflow: hidden;
}

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

.post-card:hover .card-media img {
  transform: scale(1.03);
}

.card-no-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-soft));
}

.card-content {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 0.76rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
}

/* Photo Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  color: #ffffff;
}

.gallery-overlay strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}

.gallery-overlay span {
  font-size: 0.76rem;
  opacity: 0.85;
}

/* About / Local Guide Profile */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}

.profile-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-intro {
  flex: 1;
  min-width: 200px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.profile-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.profile-blog-title {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.profile-bio {
  margin: 22px 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.fav-product-box {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fav-label {
  font-weight: 700;
  color: var(--accent);
}

.disclaimer-box {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.nda-notice {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-emoji {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0 24px;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 22, 0.62);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-reader {
  max-width: 860px;
}

.modal-composer {
  max-width: 760px;
}

.modal-profile {
  max-width: 620px;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-topbar h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-scroll {
  overflow-y: auto;
  padding: 24px 26px 28px;
}

/* Reader Article View */
.reader-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.22;
  margin: 0 0 10px;
}

.reader-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.reader-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.reader-hero-photo {
  margin: 0 0 24px;
}

.reader-hero-photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: zoom-in;
  display: block;
}

.reader-hero-photo figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.reader-body {
  font-size: 1.04rem;
  line-height: 1.75;
}

.reader-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 24px 0 8px;
}

.reader-body p {
  margin: 0 0 14px;
}

.reader-body blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--g-blue);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.reader-body ul {
  margin: 10px 0 16px;
  padding-left: 22px;
}

.reader-body li {
  margin-bottom: 6px;
}

.reader-gallery-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reader-gallery-section h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.reader-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.reader-photo-item {
  margin: 0;
  cursor: zoom-in;
}

.reader-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.reader-photo-item figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Composer Form */
.composer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.composer-form input[type="text"],
.composer-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.composer-form input[type="text"]:focus,
.composer-form textarea:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer-form textarea {
  resize: vertical;
  line-height: 1.6;
}

/* Category radio cards */
.category-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat-option {
  cursor: pointer;
}

.cat-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cat-card strong {
  display: block;
  font-size: 0.95rem;
}

.cat-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cat-icon {
  font-size: 1.45rem;
}

.cat-option input:checked + .cat-card {
  border-color: var(--g-blue);
  background: var(--accent-soft);
}

/* Star Picker */
.star-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 44px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--border);
  padding: 2px 3px;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star-btn.active {
  color: #f9ab00;
}

.star-btn:hover {
  transform: scale(1.15);
}

.star-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 6px;
}
.star-clear:hover {
  color: var(--text);
}

/* Photo Upload Dropzone */
.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.upload-dropzone.dragover,
.upload-dropzone:hover {
  border-color: var(--g-blue);
  background: var(--accent-soft);
}

.dropzone-icon {
  font-size: 1.9rem;
}

.dropzone-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.dropzone-text span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.upload-status {
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 600;
}

.composer-photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.composer-photo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.composer-photo-card.is-cover {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.composer-photo-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
}

.composer-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.composer-photo-controls {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.composer-photo-controls input {
  font-size: 0.82rem !important;
  padding: 7px 9px !important;
}

.composer-photo-btns {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.mini-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.mini-btn.active {
  background: var(--g-blue);
  border-color: var(--g-blue);
  color: #ffffff;
}

.mini-btn.remove {
  color: #d93025;
}

/* Format helper bar */
.format-bar {
  display: flex;
  gap: 6px;
}

.fmt-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
.fmt-btn:hover {
  background: var(--surface-soft);
}

.composer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.94);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.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: 12px;
  object-fit: contain;
}

.lightbox-caption-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f1f3f4;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-caption-bar p {
  margin: 0;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 20px; right: 20px; font-size: 1.1rem; }
.lightbox-nav.prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #202124;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

html[data-theme="dark"] .toast {
  background: #f1f3f4;
  color: #202124;
}

/* Responsive */
@media (max-width: 860px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 220px;
  }
  .form-row,
  .category-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    gap: 10px;
  }
  .modal-scroll {
    padding: 18px;
  }
  .profile-card {
    padding: 20px;
  }
}


/* ---------- Admin Mode, Travel Category, Drafts & Custom Credit ---------- */
.btn-sm {
  padding: 7px 12px;
  font-size: 0.85rem;
}

.admin-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.86rem;
}

.admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-travel {
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}

[data-theme="dark"] .badge-travel {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.badge-custom {
  background: rgba(139, 92, 246, 0.14);
  color: #6d28d9;
}

[data-theme="dark"] .badge-custom {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.badge-draft {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

[data-theme="dark"] .badge-draft {
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
}

.draft-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.custom-built-box {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
  font-size: 0.9rem;
  line-height: 1.55;
}

.category-picker-3 {
  grid-template-columns: repeat(3, 1fr);
}

.visibility-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cat-card-compact {
  padding: 10px 12px;
}

.img-loading {
  background: var(--surface-soft);
  min-height: 160px;
}

@media (max-width: 680px) {
  .category-picker-3,
  .visibility-picker {
    grid-template-columns: 1fr;
  }
}


/* ---------- Admin AI Assistant ---------- */
.ai-assistant-box {
  margin: 6px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(66, 133, 244, 0.24);
}

.ai-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.ai-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.ai-assistant-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-ai {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-ai:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.btn-ai:disabled {
  opacity: 0.55;
  cursor: wait;
}

.btn-ai-shield {
  border-color: rgba(16, 185, 129, 0.35);
}

.mini-btn.ai-caption-btn {
  border-color: rgba(66, 133, 244, 0.35);
  color: var(--accent);
}

.ai-nda-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ai-nda-result.is-safe {
  border-left: 4px solid #16a34a;
}

.ai-nda-result.is-warn {
  border-left: 4px solid #d97706;
}

.ai-nda-result ul {
  margin: 6px 0 8px 18px;
  padding: 0;
}

.ai-nda-result li {
  margin: 3px 0;
}
