/* =================================================================
 *  PrismFrame_Gallery — Dark Photography Portfolio Theme
 *  CSS prefix: pr-
 *  Palette: True black (#080808) → white accent → orange (#ff5e00)
 * ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --pr-bg: #080808; --pr-surface: #141414; --pr-surface2: #1f1f1f;
  --pr-line: #2a2a2a; --pr-line2: #333;
  --pr-text: #e0e0e0; --pr-text-dim: #f0f0f0; --pr-muted: #777;
  --pr-accent: #ff5e00; --pr-accent2: #ff7a2e; --pr-white: #fff;
  --pr-font: 'IBM Plex Sans', -apple-system, sans-serif;
  --pr-font-mono: 'IBM Plex Mono', monospace;
  --pr-radius: 0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--pr-font); background: var(--pr-bg); color: var(--pr-text); line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }

a { color: var(--pr-accent); text-decoration: none; transition: .2s; }
a:hover { color: var(--pr-accent2); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { color: var(--pr-text-dim); font-weight: 600; }
blockquote { margin: 20px 0; padding: 16px 20px; border-left: 3px solid var(--pr-accent); background: var(--pr-surface); color: var(--pr-muted); font-style: italic; }
code { background: var(--pr-surface2); padding: 2px 6px; font-family: var(--pr-font-mono); font-size: .9em; }
pre { background: var(--pr-surface); padding: 16px; overflow-x: auto; font-size: 13px; }

/* =================================================================
 *  LAYOUT
 * ================================================================= */
.pr-wrap { width: min(100% - 32px, 1200px); margin: 0 auto; }
.pr-main { min-height: 70vh; padding-top: 16px; padding-bottom: 40px; }

/* =================================================================
 *  HEADER — Minimal bottom border
 * ================================================================= */
.pr-header { border-bottom: 1px solid var(--pr-line); padding: 0; position: sticky; top: 0; z-index: 100; background: rgba(8,8,8,.92); backdrop-filter: blur(12px); }
.pr-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 16px; }
.pr-brand { display: flex; align-items: center; gap: 8px; }
.pr-brand-dot { width: 8px; height: 8px; background: var(--pr-accent); }
.pr-brand-name { font-size: 17px; font-weight: 600; color: var(--pr-text-dim); letter-spacing: -.01em; text-transform: uppercase; }
.pr-header-actions { display: flex; align-items: center; gap: 8px; }
.pr-header-search { display: flex; gap: 0; }
.pr-header-search input { height: 32px; border: 1px solid var(--pr-line); border-right: none; background: var(--pr-surface); padding: 0 12px; color: var(--pr-text); font-size: 13px; outline: none; }
.pr-header-search input:focus { border-color: var(--pr-accent); }
.pr-header-search button { height: 32px; border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-muted); padding: 0 12px; cursor: pointer; font-size: 14px; }
.pr-menu-toggle { display: none; width: 32px; height: 32px; border: 1px solid var(--pr-line); background: var(--pr-surface); color: var(--pr-text); font-size: 16px; cursor: pointer; align-items: center; justify-content: center; }
.pr-nav { display: flex; gap: 0; padding: 6px 0; }
.pr-nav a { display: inline-flex; align-items: center; padding: 6px 16px; color: var(--pr-muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.pr-nav a:hover { color: var(--pr-text); }
.pr-nav a.active { color: var(--pr-accent); }

/* =================================================================
 *  HERO — Full-bleed image
 * ================================================================= */
.pr-hero { margin-bottom: 28px; position: relative; overflow: hidden; }
.pr-hero-track { display: flex; transition: transform .5s ease; }
.pr-hero-slide { min-width: 100%; flex-shrink: 0; position: relative; height: 480px; }
.pr-hero-bg { position: absolute; inset: 0; }
.pr-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.2) 50%, rgba(8,8,8,.3) 100%); }
.pr-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.pr-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; max-width: 700px; }
.pr-hero-content h1 { font-size: 38px; font-weight: 700; margin: 0 0 8px; line-height: 1.15; }
.pr-hero-content h1 a { color: #fff; }
.pr-hero-content h1 a:hover { color: var(--pr-accent); }
.pr-hero-content p { color: rgba(255,255,255,.6); font-size: 15px; margin: 0 0 14px; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.pr-hero-actions { display: flex; align-items: center; gap: 16px; }
.pr-hero-label { font-family: var(--pr-font-mono); font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }
.pr-hero-prev,.pr-hero-next { position: absolute; top: 50%; width: 40px; height: 40px; border: none; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.pr-hero:hover .pr-hero-prev,.pr-hero:hover .pr-hero-next { opacity: 1; }
.pr-hero-prev:hover,.pr-hero-next:hover { background: var(--pr-accent); }
.pr-hero-prev { left: 0; } .pr-hero-next { right: 0; }
.pr-hero-dots { position: absolute; bottom: 20px; right: 40px; display: flex; gap: 6px; z-index: 5; }
.pr-hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: .2s; }
.pr-hero-dots span.active,.pr-hero-dots span:hover { background: var(--pr-accent); }

/* =================================================================
 *  BUTTONS & BADGES
 * ================================================================= */
.pr-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 18px; border: 1px solid var(--pr-line); font-size: 13px; font-weight: 500; color: var(--pr-muted); background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; transition: .2s; }
.pr-btn:hover { border-color: var(--pr-text); color: var(--pr-text); }
.pr-btn-accent { border-color: var(--pr-accent); color: var(--pr-accent); }
.pr-btn-accent:hover { background: var(--pr-accent); color: #fff; }
.pr-badge { display: inline-flex; align-items: center; padding: 3px 10px; font-family: var(--pr-font-mono); font-size: 10px; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--pr-line); }

/* =================================================================
 *  SECTION HEAD
 * ================================================================= */
.pr-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.pr-section-head h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--pr-muted); margin: 0; }

/* =================================================================
 *  PHOTO GRID — Image-heavy layout
 * ================================================================= */
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 32px; }
.pr-grid-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--pr-surface); }
.pr-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .5s; }
.pr-grid-item:hover img { transform: scale(1.05); opacity: .7; }
.pr-grid-overlay { position: absolute; inset: 0; background: rgba(8,8,8,.75); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; opacity: 0; transition: .3s; }
.pr-grid-item:hover .pr-grid-overlay { opacity: 1; }
.pr-grid-overlay h3 { font-size: 16px; font-weight: 600; color: #fff; margin: 0 0 4px; }
.pr-grid-overlay h3 a { color: #fff; }
.pr-grid-overlay p { font-size: 12px; color: rgba(255,255,255,.6); margin: 0; }

/* =================================================================
 *  STREAM
 * ================================================================= */
.pr-stream { display: grid; gap: 2px; margin-bottom: 32px; }
.pr-stream-item { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 20px; padding: 20px; background: var(--pr-surface); transition: .2s; }
.pr-stream-item:hover { background: var(--pr-surface2); }
.pr-stream-thumb { display: block; overflow: hidden; aspect-ratio: 16/10; }
.pr-stream-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pr-stream-item:hover .pr-stream-thumb img { transform: scale(1.03); }
.pr-stream-body { display: flex; flex-direction: column; justify-content: center; }
.pr-stream-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pr-stream-body h4 { font-size: 18px; margin: 0 0 6px; font-weight: 600; line-height: 1.3; }
.pr-stream-body h4 a { color: var(--pr-text-dim); }
.pr-stream-body h4 a:hover { color: var(--pr-accent); }
.pr-stream-excerpt { color: var(--pr-muted); font-size: 13px; margin: 0; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }

/* =================================================================
 *  TWO-COLUMN + SIDEBAR
 * ================================================================= */
.pr-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 4px; }
.pr-sidebar { display: grid; gap: 4px; align-content: start; }
.pr-side-panel { padding: 20px; background: var(--pr-surface); }
.pr-side-title { font-family: var(--pr-font-mono); font-size: 11px; font-weight: 600; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.pr-side-list { list-style: none; padding: 0; margin: 0; }
.pr-side-list li { padding: 8px 0; border-bottom: 1px solid var(--pr-line); font-size: 13px; }
.pr-side-list li:last-child { border-bottom: none; }
.pr-side-list a { color: var(--pr-text); }
.pr-side-list a:hover { color: var(--pr-accent); }
.pr-tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-tag-cloud a { display: inline-flex; padding: 4px 10px; border: 1px solid var(--pr-line); font-family: var(--pr-font-mono); font-size: 10px; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .04em; }
.pr-tag-cloud a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }

/* =================================================================
 *  LIST & BREADCRUMB
 * ================================================================= */
.pr-breadcrumb { margin-bottom: 16px; font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .04em; }
.pr-breadcrumb a { color: var(--pr-muted); }
.pr-list-head { padding: 28px 0; margin-bottom: 20px; border-bottom: 1px solid var(--pr-line); }
.pr-list-head h1 { font-size: 28px; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.pr-list-head p { color: var(--pr-muted); font-size: 14px; margin: 4px 0 0; }
.pr-list-count { font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-accent); margin-top: 6px; }

/* =================================================================
 *  PAGINATION
 * ================================================================= */
.pr-pagination,.pagination { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pagination a,.pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid var(--pr-line); font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); transition: .2s; }
.pagination a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }
.pagination .current,.pagination .active { background: var(--pr-accent); color: #fff; border-color: var(--pr-accent); }

/* =================================================================
 *  ARTICLE DETAIL
 * ================================================================= */
.pr-detail { max-width: 800px; margin-bottom: 32px; }
.pr-detail-header h1 { font-size: 34px; line-height: 1.2; font-weight: 700; margin: 10px 0; }
.pr-detail-meta { font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; text-transform: uppercase; letter-spacing: .04em; }
.pr-detail-cover { margin-bottom: 24px; }
.pr-detail-cover img { width: 100%; }
.pr-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.pr-detail-tags a { padding: 3px 10px; border: 1px solid var(--pr-line); font-family: var(--pr-font-mono); font-size: 10px; color: var(--pr-muted); text-transform: uppercase; }
.pr-detail-tags a:hover { border-color: var(--pr-accent); color: var(--pr-accent); }
.pr-article-content { color: var(--pr-text); font-size: 16px; line-height: 1.9; }
.pr-article-content p { margin: 1em 0; }
.pr-article-content h1,.pr-article-content h2,.pr-article-content h3 { margin: 1.6em 0 .6em; font-weight: 600; }
.pr-article-content h1 { font-size: 26px; } .pr-article-content h2 { font-size: 22px; } .pr-article-content h3 { font-size: 18px; }
.pr-article-content img { margin: 20px 0; width: 100%; }
.pr-article-content a { color: var(--pr-accent); border-bottom: 1px solid transparent; }
.pr-article-content a:hover { border-bottom-color: var(--pr-accent); }

/* =================================================================
 *  TAGS
 * ================================================================= */
.pr-tag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pr-tag-card { padding: 28px 20px; background: var(--pr-surface); text-align: center; transition: .2s; }
.pr-tag-card:hover { background: var(--pr-surface2); }
.pr-tag-card h3 { font-size: 14px; font-weight: 600; color: var(--pr-text-dim); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.pr-tag-card p { font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); margin: 0; }

/* =================================================================
 *  SO / SEARCH / EMPTY / DIY / FOOTER
 * ================================================================= */
.pr-so-wrap { width: min(100% - 32px, 600px); margin: 0 auto; padding: 100px 0; text-align: center; }
.pr-so-title { font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pr-text-dim); margin: 0 0 8px; }
.pr-so-subtitle { font-family: var(--pr-font-mono); font-size: 13px; color: var(--pr-muted); margin-bottom: 28px; }
.pr-so-form { display: flex; max-width: 460px; margin: 0 auto; }
.pr-so-form input { flex: 1; height: 48px; border: 1px solid var(--pr-line); border-right: none; background: var(--pr-surface); padding: 0 16px; color: var(--pr-text); font-size: 15px; outline: none; }
.pr-so-form input:focus { border-color: var(--pr-accent); }
.pr-so-form button { height: 48px; padding: 0 24px; border: 1px solid var(--pr-accent); background: var(--pr-accent); color: #fff; font-family: var(--pr-font-mono); font-size: 12px; text-transform: uppercase; cursor: pointer; }
.pr-so-form button:hover { background: var(--pr-accent2); }
.pr-so-hot { margin-top: 32px; }
.pr-so-hot h3 { font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pr-search-panel { padding: 20px 0; border-bottom: 1px solid var(--pr-line); margin-bottom: 4px; }
.pr-search-panel h1 { font-size: 20px; margin: 0; }
.pr-search-panel p { font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); margin: 4px 0 0; }
.pr-search-item { padding: 16px 0; border-bottom: 1px solid var(--pr-line); }
.pr-search-item:last-child { border-bottom: none; }
.pr-search-item h3 { font-size: 18px; margin: 0 0 6px; }
.pr-search-item h3 a { color: var(--pr-text-dim); }
.pr-search-item p { font-size: 13px; color: var(--pr-muted); }
.pr-diy-panel { padding: 28px 0; }
.pr-empty { text-align: center; padding: 100px 20px; }
.pr-empty h1 { font-size: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pr-footer { margin-top: 40px; border-top: 1px solid var(--pr-line); padding: 20px 0; }
.pr-footer-inner { display: flex; align-items: center; justify-content: space-between; font-family: var(--pr-font-mono); font-size: 11px; color: var(--pr-muted); text-transform: uppercase; letter-spacing: .04em; }
.pr-footer-links { display: flex; gap: 16px; }
.pr-footer-links a { color: var(--pr-muted); }

/* =================================================================
 *  RESPONSIVE
 * ================================================================= */
@media (max-width: 1100px) {
  .pr-hero-slide { height: 360px; } .pr-hero-content h1 { font-size: 28px; }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-tag-grid { grid-template-columns: repeat(3, 1fr); }
  .pr-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991px) { .pr-menu-toggle { display: inline-flex; } .pr-nav { display: none; } .pr-nav.open { display: flex; flex-direction: column; } }
@media (max-width: 768px) {
  .pr-wrap { width: min(100% - 16px, 1200px); }
  .pr-hero-slide { height: 280px; } .pr-hero-content { padding: 20px; } .pr-hero-content h1 { font-size: 22px; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr-tag-grid { grid-template-columns: repeat(2, 1fr); }
  .pr-stream-item { grid-template-columns: 1fr; }
  .pr-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .pr-detail-header h1 { font-size: 24px; }
  .pr-article-content { font-size: 14px; }
}
