/* ==========================================================================
   CLANS REPORT — FIGMA 1:1 REPRODUCTION
   Source: Frame 1:20: Clans Report / Home (1920x1393)
   Canvas: #131315 | Text: #fafafa | Accent: #f2e296
   Exact Figma prototype reactions: Smart Animate 0.10s - 0.15s ease-out
   ========================================================================== */

:root {
  /* Canvas & Colors */
  --bg-canvas: #131315;
  --bg-header: rgba(255, 255, 255, 0.05);
  --bg-banner: rgba(255, 255, 255, 0.10);
  
  /* Tag & Button Fills (from Figma component sets) */
  --chip-bg-default: rgba(250, 250, 250, 0.10);
  --chip-bg-hover: rgba(250, 250, 250, 0.20);
  --chip-bg-selected: rgba(242, 226, 150, 0.20);
  --chip-bg-selected-hover: rgba(242, 226, 150, 0.50);

  --btn-bg-default: rgba(250, 250, 250, 0.10);
  --btn-bg-hover: rgba(250, 250, 250, 0.20);
  --btn-bg-pressed: rgba(250, 250, 250, 0.50);

  /* Borders & Dividers */
  --border-header: rgba(255, 255, 255, 0.20);
  --border-cover: rgba(255, 255, 255, 0.20);
  --border-divider: rgba(255, 255, 255, 0.10);
  --border-footer: rgba(255, 255, 255, 0.10);

  --stroke-chip: rgba(250, 250, 250, 0.20);
  --stroke-input: rgba(250, 250, 250, 0.20);
  --stroke-btn: rgba(250, 250, 250, 0.20);

  /* Typography Colors */
  --text-primary: #fafafa;
  --text-secondary: rgba(250, 250, 250, 0.80);
  --text-accent: #f2e296;

  /* Fonts */
  --font-serif: 'Vollkorn', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Figma Prototype Transitions: SMART_ANIMATE 0.10s - 0.15s ease-out */
  --anim-fast: 0.10s cubic-bezier(0, 0, 0.2, 1);
  --anim-normal: 0.15s cubic-bezier(0, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & CANVAS (Figma 1:20 | 1920x1393 | Fill: #131315)
   ========================================================================== */

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  background-image: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-canvas);
}

/* ==========================================================================
   1. STICKY HEADER (Figma 104:3795 | Full width, height: 40px)
   Fill: rgba(255, 255, 255, 0.05) | Stroke-bottom: rgba(255, 255, 255, 0.20)
   Sticky at top: 0 with blur backdrop
   ========================================================================== */

.top-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 40px;
  background-color: rgba(19, 19, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-header);
}

.header-inner {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 98px;
}

/* Logo Place (Figma 137:1176 | 32x40) */
.logo-place {
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.logo-place img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Menu Tabs (Figma 133:1095 | 271x40) */
.nav-menu-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 40px;
}

/* Menu Tab Component (Figma 134:1101 & 135:1110)
   Default: fills: none, strokes: none
   Hover (Variant2): fill: rgba(255,255,255,0.10), stroke: #fafafa 1px
   Reaction: ON_HOVER -> SMART_ANIMATE 0.15s ease-out
   ========================================================================== */
.menu-tab {
  height: 40px;
  padding: 9.5px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  transition: background-color var(--anim-normal), border-color var(--anim-normal);
}

.menu-tab:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: #fafafa;
}

/* Add My Clan Tab (Figma 139:1189 | 109x40) */
.btn-tab-add-clan {
  height: 40px;
  padding: 9.5px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: background-color var(--anim-normal), border-color var(--anim-normal);
}

.btn-tab-add-clan:hover {
  background-color: rgba(255, 255, 255, 0.10);
  border-color: #fafafa;
}

/* ==========================================================================
   2. PAGE COVER (Figma 104:3794 | Full width, height: 283px)
   Stroke-bottom: rgba(255, 255, 255, 0.20)
   ========================================================================== */

.page-cover {
  width: 100%;
  height: 283px;
  border-bottom: 1px solid var(--border-cover);
  position: relative;
  overflow: hidden;
}

.cover-inner {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 100px;
  position: relative;
  display: flex;
  align-items: center;
}

/* CTA Container (Figma 127:973 | x=100, y=108, w=1470, h=174) */
.cover-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1470px;
  z-index: 2;
}

.cover-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: var(--text-primary);
}

.cover-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-secondary);
}

/* Button Component (Figma 104:3808, 104:3810, 104:3816)
   Default: fill: rgba(250,250,250,0.10), stroke: rgba(250,250,250,0.20)
   Hover (104:3810): fill: rgba(250,250,250,0.20), Rectangle 1 stroke #fafafa at -4px offset
   Pressed (104:3816): fill: rgba(250,250,250,0.50), stroke: #fafafa at -2px offset
   Reactions: ON_HOVER 0.15s ease-out, ON_PRESS 0.15s ease-out
   ========================================================================== */
.btn-cover-cta {
  width: 128px;
  height: 42px;
  background-color: var(--btn-bg-default);
  border: 1px solid var(--stroke-btn);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px 16px;
  outline: none;
  position: relative;
  transition: background-color var(--anim-normal), outline var(--anim-normal), outline-offset var(--anim-normal), border-color var(--anim-normal);
}

.btn-cover-cta:hover {
  background-color: var(--btn-bg-hover);
  outline: 1px solid #fafafa;
  outline-offset: 4px;
}

.btn-cover-cta:active {
  background-color: var(--btn-bg-pressed);
  border-color: #fafafa;
  outline: 1px solid #fafafa;
  outline-offset: 2px;
}

.btn-cover-cta.btn-share {
  width: 179px;
  justify-content: center;
  text-align: center;
}

/* Banner Watermark SVG (Figma 104:3797 | x=1570, y=32, 250x250 px)
   The SVG already contains fill-opacity="0.05" on paths
   ========================================================================== */
.cover-watermark {
  position: absolute;
  right: 100px;
  top: 32px;
  width: 250px;
  height: 250px;
  pointer-events: none;
  z-index: 1;
}
.cover-watermark img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   3. BODY (Figma 127:874 | 1920x970 px)
   ========================================================================== */

.page-body {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 48px 100px 80px 100px;
  display: flex;
  gap: 64px;
  position: relative;
}

/* ==========================================================================
   LEFT: FILTER SECTION (Figma 127:870 | w=445, h=858)
   Includes vertical title 'Filters' (21px) + filters column (400px)
   ========================================================================== */

.filters-column-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 445px;
  flex-shrink: 0;
}

/* Vertical section titles (FILTERS, CLAN LIST) */
.vertical-section-title {
  writing-mode: vertical-lr;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  line-height: 21px;
  width: 21px;
  user-select: none;
  flex-shrink: 0;
  padding-top: 8px;
}

.filters-column {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Filter Group Component (Figma 104:3839 & 139:1473) */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 400px;
}

.filter-group-header {
  height: 38px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--text-primary);
}

.btn-filter-reset {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-accent);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  cursor: pointer;
  outline: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--anim-fast), visibility var(--anim-fast);
}

.btn-filter-reset.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btn-filter-reset:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.filter-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 400px;
}

/* Tag Component Sets (Figma 24:940, 36:1654, 36:1656, 119:683)
   - Default: fill rgba(250,250,250,0.10), stroke rgba(250,250,250,0.20)
   - Hover: fill rgba(250,250,250,0.20), stroke #fafafa at -3px offset
   - Selected: fill rgba(242,226,150,0.20), text #f2e296
   - Selected-Hover: fill rgba(242,226,150,0.50), text #ffffff, stroke #f2e296 at -3px offset
   Reactions: ON_HOVER 0.10s - 0.15s ease-out, ON_CLICK -> Toggle Selected
   ========================================================================== */
.tag-chip {
  height: 32px;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--chip-bg-default);
  border: 1px solid var(--stroke-chip);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: background-color var(--anim-fast), 
              color var(--anim-fast), 
              outline var(--anim-fast), 
              outline-offset var(--anim-fast);
}

/* Tag State=Hover (36:1654) */
.tag-chip:hover {
  background-color: var(--chip-bg-hover);
  color: var(--text-secondary);
  outline: 1px solid #fafafa;
  outline-offset: 3px;
}

/* Tag State=Selected (36:1656) */
.tag-chip.is-selected {
  background-color: var(--chip-bg-selected);
  border: 1px solid var(--stroke-chip);
  color: var(--text-accent);
  outline: none;
  transition: background-color var(--anim-normal), color var(--anim-normal), outline var(--anim-normal);
}

/* Tag State=Selected-Hover (119:683) */
.tag-chip.is-selected:hover {
  background-color: var(--chip-bg-selected-hover);
  color: #ffffff;
  outline: 1px solid var(--text-accent);
  outline-offset: 3px;
}

/* Filter Column Search Button (Figma 142:1559 | 400x42 px) */
.btn-filter-search {
  width: 400px;
  height: 42px;
  margin-top: 8px;
  background-color: var(--btn-bg-default);
  border: 1px solid var(--stroke-btn);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: background-color var(--anim-normal), outline var(--anim-normal), outline-offset var(--anim-normal), border-color var(--anim-normal);
}

.btn-filter-search:hover {
  background-color: var(--btn-bg-hover);
  outline: 1px solid #fafafa;
  outline-offset: 4px;
}

.btn-filter-search:active {
  background-color: var(--btn-bg-pressed);
  border-color: #fafafa;
  outline: 1px solid #fafafa;
  outline-offset: 2px;
}

/* ==========================================================================
   RIGHT: CLAN LIST (Figma 127:873 | x=609, y=48, w=1211, h=858)
   Includes vertical title 'Clan list' (21px) + clan list column (800px)
   ========================================================================== */

.clan-list-column-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 845px;
}

.clan-list-column {
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Search Bar (Figma 119:690 | 800x42 px) */
.search-container {
  width: 800px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Input Fields (Figma 123:836, 123:815, 123:818 | 450x42 px)
   Default (123:813): fill: transparent, stroke: rgba(250,250,250,0.20)
   Hover (123:815): fill: rgba(255,255,255,0.10), outline: #fafafa at -4px
   Active/Focus (123:818): fill: rgba(255,255,255,0.20), stroke #fafafa, outline #fafafa at -2px
   Reaction: ON_HOVER / ON_PRESS 0.15s ease-out
   ========================================================================== */
.search-input {
  width: 450px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--stroke-input);
  border-radius: 0;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  outline: none;
  transition: background-color var(--anim-normal), outline var(--anim-normal), outline-offset var(--anim-normal), border-color var(--anim-normal);
}
.search-input::placeholder {
  color: var(--text-secondary);
  opacity: 1;
}
.search-input:hover {
  background-color: rgba(255, 255, 255, 0.10);
  outline: 1px solid #fafafa;
  outline-offset: 4px;
}
.search-input:focus {
  background-color: rgba(255, 255, 255, 0.20);
  border-color: #fafafa;
  outline: 1px solid #fafafa;
  outline-offset: 2px;
}

/* Search Button (Figma 104:3821 | 87x42 px | Button Component) */
.btn-search {
  width: 87px;
  height: 42px;
  background-color: var(--btn-bg-default);
  border: 1px solid var(--stroke-btn);
  border-radius: 0;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  position: relative;
  transition: background-color var(--anim-normal), outline var(--anim-normal), outline-offset var(--anim-normal), border-color var(--anim-normal);
}

.btn-search:hover {
  background-color: var(--btn-bg-hover);
  outline: 1px solid #fafafa;
  outline-offset: 4px;
}

.btn-search:active {
  background-color: var(--btn-bg-pressed);
  border-color: #fafafa;
  outline: 1px solid #fafafa;
  outline-offset: 2px;
}

/* Clan Cards List (Figma 127:871 | 800 px wide, 32px gap) */
.clan-cards-list {
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Clan Card (Figma 119:711 & 119:712 | 800x172 px)
   Card body itself is transparent — only the banner container has the 0.10 fill!
   ========================================================================== */
.clan-card {
  width: 800px;
  height: 172px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Banner Container (Figma 119:692 | 172x172 px)
   Fill: rgba(255, 255, 255, 0.10) | Stroke: none | Overflow: hidden
   ========================================================================== */
.clan-card-banner {
  width: 172px;
  height: 172px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

/* Background Circle Element (Figma 127:913 'Rectangle 5' | 172x172 px at x=1, y=-86)
   Forms the subtle translucent circular arc behind the banner crossbar
   ========================================================================== */
.banner-circle {
  position: absolute;
  left: 1px;
  top: -86px;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

/* Banner Graphic Image (Figma 119:693 | 127x172 px at x=23, y=0) */
.clan-card-banner .banner-graphic-img {
  position: absolute;
  left: 23px;
  top: 0;
  width: 127px;
  height: 172px;
  display: block;
}

.clan-card-banner .banner-cell-img {
  width: 172px;
  height: 172px;
  display: block;
}

/* Data Container (Figma 119:694 | 628x172 px, Padding: 16px 32px) */
.clan-card-data {
  width: 628px;
  height: 172px;
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Clan Info (Figma 119:695 | 564x92 px) */
.clan-info-group {
  width: 564px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Frame 98: Name + Motto (Figma 127:885 | 564x59 px) */
.clan-name-motto {
  width: 564px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clan-name-text {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  color: var(--text-primary);
}

.clan-motto-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--text-primary);
}

.clan-desc-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--text-primary);
  margin-top: 4px;
}

/* Card Tags Row (Figma 119:698 | 564x32 px) */
.clan-card-tags {
  width: 564px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clan-card-tag {
  height: 32px;
  padding: 2px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--chip-bg-default);
  border: 1px solid var(--stroke-chip);
  border-radius: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
  transition: background-color var(--anim-fast), color var(--anim-fast), outline var(--anim-fast), outline-offset var(--anim-fast);
}

.clan-card-tag:hover {
  background-color: var(--chip-bg-hover);
  color: var(--text-secondary);
  outline: 1px solid #fafafa;
  outline-offset: 3px;
}

.clan-card-tag.is-selected {
  background-color: var(--chip-bg-selected);
  border: 1px solid var(--stroke-chip);
  color: var(--text-accent);
  outline: none;
}

.clan-card-tag.is-selected:hover {
  background-color: var(--chip-bg-selected-hover);
  color: #ffffff;
  outline: 1px solid var(--text-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   4. FOOTER (Figma 139:1196 | Full width, height: 140px)
   Fill: #131315 | Stroke-top: rgba(255, 255, 255, 0.10)
   ========================================================================== */

.page-footer {
  width: 100%;
  height: 140px;
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-footer);
  position: relative;
}

.footer-inner {
  width: 100%;
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  color: var(--text-primary);
}

.footer-motto {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: var(--text-secondary);
}
