/*
Theme Name: roppi.io
Theme URI: https://roppi.io
Author: Amber
Description: Custom portfolio theme for roppi.io — art, crochet, commissions.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: roppiio
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAF8FF;
  --bg2:       #F1ECFF;
  --ink:       #211A3E;
  --violet:    #7B4FFF;
  --blue:      #4A6CFF;
  --magenta:   #FF4FA3;
  --gold:      #FFC861;
  --mid:       #EFE8FF;
  --skyblue:   #D6E4FF;
  --ink-soft:  rgba(33,26,62,0.55);
  --ink-faint: rgba(33,26,62,0.32);
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

/* ── CUSTOM CURSOR ── */
#roppi-cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--violet);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s ease, background 0.3s ease;
  mix-blend-mode: multiply;
}
#roppi-cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(123,79,255,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.18s ease, border-color 0.3s ease;
}
#roppi-stars {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── STICKY NAV ── */
.roppi-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: none;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.roppi-nav.scrolled {
  background: rgba(250,248,255,0.97);
  box-shadow: 0 2px 20px rgba(123,79,255,0.1);
  padding: 0.85rem 3rem;
  backdrop-filter: blur(12px);
}
.roppi-nav-logo { text-decoration: none; display: flex; align-items: center; }
.roppi-nav-logo img { height: 32px; width: auto; display: block; }

/* nav link list */
.roppi-nav-links { display: flex; gap: 0; list-style: none; }
.roppi-nav-links > li { position: relative; }
.roppi-nav-links > li > a {
  position: relative;
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.roppi-nav-links > li > a:hover,
.roppi-nav-links > li.nav-open > a { color: var(--violet); }
.roppi-nav-links > li > a .chev { font-size: 0.55rem; opacity: 0.5; transition: transform 0.25s; }
.roppi-nav-links > li.nav-open > a .chev { transform: rotate(180deg); opacity: 1; }

/* invisible hover bridge */
.roppi-nav-links > li > a::after {
  content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 8px; background: transparent;
}

/* dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(123,79,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(33,26,62,0.14);
  padding: 1.75rem 1.5rem 1.5rem;
  z-index: 600; min-width: 220px;
  flex-direction: column; gap: 0;
}
.nav-dropdown.wide { min-width: 520px; flex-direction: row; gap: 2rem; }
.roppi-nav-links > li:hover .nav-dropdown,
.roppi-nav-links > li.nav-open .nav-dropdown { display: flex; }

.drop-col { display: flex; flex-direction: column; gap: 0; flex: 1; }
.drop-col-title {
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--magenta); font-weight: 600;
  padding: 0 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(123,79,255,0.08); margin-bottom: 0.5rem;
}
.drop-col a, .nav-dropdown > a {
  display: block; padding: 0.5rem 0.5rem;
  font-size: 0.8rem; color: rgba(33,26,62,0.7);
  text-decoration: none; border-radius: 8px;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.drop-col a:hover, .nav-dropdown > a:hover { background: rgba(123,79,255,0.07); color: var(--violet); }
.drop-divider { width: 1px; background: rgba(123,79,255,0.1); margin: 0; flex-shrink: 0; }
.drop-highlight {
  margin-top: 0.75rem !important; padding: 0.55rem 0.8rem !important;
  background: linear-gradient(135deg, rgba(123,79,255,0.08), rgba(255,79,163,0.06)) !important;
  border: 1px solid rgba(123,79,255,0.15) !important; border-radius: 10px !important;
  font-weight: 500 !important; color: var(--violet) !important;
}

.roppi-nav-cta {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta));
  padding: 0.6rem 1.4rem; border-radius: 100px; text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(123,79,255,0.25);
  white-space: nowrap; flex-shrink: 0;
}
.roppi-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(123,79,255,0.4); }

/* ── ARTWORK PAGE NAV (non-homepage) ── */
.roppi-page-nav {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(250,248,255,0.97);
  border-bottom: 1px solid rgba(123,79,255,0.1);
  backdrop-filter: blur(12px);
  font-family: 'DM Sans', sans-serif;
}
.roppi-page-nav .roppi-nav-logo img { height: 28px; }
.roppi-page-nav .roppi-nav-links > li > a { font-size: 0.72rem; padding: 0.45rem 0.9rem; }

/* ── MAIN CONTENT WRAPPER ── */
.roppi-content {
  position: relative; z-index: 1;
  padding-top: 0;
}

/* ── SECTION BASE ── */
section { position: relative; z-index: 1; padding: 7rem 2rem; }
.section-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--magenta); opacity: 0.85; font-weight: 500; margin-bottom: 1rem; text-align: center; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; text-align: center; margin-bottom: 1rem; color: var(--ink); }
.section-title em { font-style: italic; color: var(--violet); }
.section-sub { text-align: center; color: var(--ink-faint); font-size: 0.92rem; max-width: 480px; margin: 0 auto 4rem; line-height: 1.7; }

/* ── HERO ── */
.roppi-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem; position: relative; z-index: 1;
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,79,255,0.12) 0%, rgba(255,79,163,0.08) 45%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--magenta); margin-bottom: 1.5rem; opacity: 0.85; font-weight: 500; }
.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 300; line-height: 1; letter-spacing: -0.01em;
  background-image: linear-gradient(135deg, #7B4FFF 0%, #4A6CFF 35%, #FF4FA3 75%, #FFC861 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent; margin-bottom: 1.5rem;
}
.hero-h1 em { font-style: italic; font-weight: 300; }
.hero-sub { font-size: 1rem; color: var(--ink-soft); max-width: 420px; margin: 0 auto 3rem; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.hero-tag { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 1.05rem; border-radius: 100px; border: 1px solid rgba(123,79,255,0.22); background: rgba(255,255,255,0.6); color: var(--violet); }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink-faint); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(123,79,255,0.5), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── GALLERY GRID ── */
.gallery-wrap { max-width: 1100px; margin: 0 auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  font-family: 'DM Sans', sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border-radius: 100px; border: 1px solid rgba(123,79,255,0.22);
  background: rgba(255,255,255,0.6); color: var(--violet); cursor: pointer; transition: all 0.25s;
}
.filter-btn:hover { background: #fff; border-color: var(--violet); }
.filter-btn.active { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(123,79,255,0.3); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-card {
  position: relative; display: block; text-decoration: none; border-radius: 18px; overflow: hidden;
  background: var(--mid); border: 1px solid rgba(123,79,255,0.08); aspect-ratio: 3/4;
  cursor: none; box-shadow: 0 8px 30px rgba(123,79,255,0.08);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), border-color 0.3s, box-shadow 0.4s;
}
.gallery-card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(123,79,255,0.25); box-shadow: 0 16px 40px rgba(123,79,255,0.18); }
.gallery-card.wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-card.hidden { display: none; }
.card-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(33,26,62,0.78) 0%, transparent 55%); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; transition: opacity 0.35s; }
.gallery-card:hover .card-overlay { opacity: 1; }
.card-cat { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--skyblue); margin-bottom: 0.3rem; }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 300; color: #fff; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-portraits  { background: linear-gradient(135deg, #C9B8FF, #7B4FFF); }
.cat-realism    { background: linear-gradient(135deg, #B8D4FF, #4A6CFF); }
.cat-fanart     { background: linear-gradient(135deg, #FFC4E5, #FF4FA3); }
.cat-surrealism { background: linear-gradient(135deg, #D8C4FF, #9B4FFF); }
.cat-crochet    { background: linear-gradient(135deg, #FFE0B8, #FFC861); }
.cat-sticker    { background: linear-gradient(135deg, #C4F0FF, #4FC9FF); }

/* ── ABOUT ── */
.about-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.about-orb { width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(123,79,255,0.22), rgba(255,79,163,0.14) 50%, transparent 75%); border: 1px solid rgba(123,79,255,0.18); display: flex; align-items: center; justify-content: center; font-size: 6rem; box-shadow: 0 20px 60px rgba(123,79,255,0.12); }
.about-content h3 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 300; margin-bottom: 1.2rem; }
.about-content h3 em { font-style: italic; color: var(--magenta); }
.about-content p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 1.2rem; font-size: 0.93rem; }
.about-skills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.skill-pill { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 100px; background: rgba(123,79,255,0.08); color: var(--violet); border: 1px solid rgba(123,79,255,0.18); }

/* ── COMMISSIONS ── */
.commission-section { background: linear-gradient(135deg, rgba(123,79,255,0.06) 0%, rgba(255,79,163,0.05) 100%); border-top: 1px solid rgba(123,79,255,0.1); border-bottom: 1px solid rgba(123,79,255,0.1); }
.commission-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.commission-card { background: #fff; border: 1px solid rgba(123,79,255,0.14); border-radius: 22px; padding: 2.2rem 1.8rem; text-align: center; box-shadow: 0 8px 30px rgba(123,79,255,0.07); transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.commission-card:hover { border-color: rgba(123,79,255,0.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(123,79,255,0.15); }
.commission-card.featured { border-color: rgba(123,79,255,0.35); background: linear-gradient(160deg, #fff 0%, rgba(228,217,255,0.4) 100%); }
.commission-emoji { font-size: 2rem; margin-bottom: 1rem; }
.commission-type { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; margin-bottom: 0.5rem; }
.commission-price { font-size: 1.6rem; font-weight: 500; color: var(--violet); margin-bottom: 0.8rem; }
.commission-desc { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.65; margin-bottom: 1.5rem; }
.btn { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 0.65rem 1.5rem; border-radius: 100px; transition: all 0.3s; cursor: none; }
.btn-ghost { border: 1.5px solid rgba(123,79,255,0.35); color: var(--violet); }
.btn-ghost:hover { background: rgba(123,79,255,0.08); }
.btn-solid { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; font-weight: 500; box-shadow: 0 4px 16px rgba(123,79,255,0.3); }
.btn-solid:hover { box-shadow: 0 6px 22px rgba(123,79,255,0.4); transform: translateY(-1px); }

/* ── ARTWORK DETAIL PAGE ── */
.artwork-page { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 6rem; font-family: 'DM Sans', sans-serif; color: var(--ink); }
.artwork-breadcrumb { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 1.5rem; }
.artwork-breadcrumb a { color: var(--violet); text-decoration: none; }
.artwork-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.artwork-images { display: flex; flex-direction: column; gap: 1.25rem; }
.artwork-images img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 20px 60px rgba(123,79,255,0.12); border: 1px solid rgba(123,79,255,0.08); }
.artwork-cat-badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; background: rgba(123,79,255,0.08); color: var(--violet); border: 1px solid rgba(123,79,255,0.2); margin-bottom: 1.25rem; }
.artwork-title { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 300; font-style: italic; line-height: 1.1; margin-bottom: 0.75rem; }
.artwork-medium { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.75rem; }
.artwork-desc { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 2rem; }
.artwork-buy-box { background: #fff; border: 1px solid rgba(123,79,255,0.14); border-radius: 18px; padding: 1.75rem; box-shadow: 0 8px 30px rgba(123,79,255,0.08); margin-bottom: 2rem; }
.artwork-buy-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.artwork-buy-etsy { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.95rem 1.5rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; margin-bottom: 0.75rem; background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; box-shadow: 0 4px 16px rgba(123,79,255,0.3); }
.artwork-buy-soon { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.95rem 1.5rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; background: #fff; color: var(--ink-faint); border: 1.5px dashed rgba(123,79,255,0.3); }
.artwork-meta { font-size: 0.82rem; color: var(--ink-soft); line-height: 2; }
.artwork-meta strong { color: var(--ink); font-weight: 500; }
.artwork-notice { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.6; padding: 1rem 1.25rem; background: rgba(255,200,97,0.08); border: 1px solid rgba(255,200,97,0.25); border-radius: 12px; margin-top: 1.5rem; }
.artwork-back { text-align: center; padding-top: 3rem; }
.artwork-back a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); text-decoration: none; border: 1px solid rgba(123,79,255,0.3); padding: 0.7rem 1.8rem; border-radius: 100px; transition: background 0.25s; }
.artwork-back a:hover { background: rgba(123,79,255,0.06); }

/* ── FOOTER ── */
.roppi-footer {
  position: relative; z-index: 1;
  padding: 4rem 3rem 3rem; border-top: 1px solid rgba(123,79,255,0.1);
  display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center;
  background: var(--bg);
}
.footer-logo img { height: 40px; width: auto; }
.footer-nav { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--violet); }
.footer-links-cta { font-size: 0.8rem; color: var(--ink-soft); }
.footer-links-cta a { color: var(--magenta); text-decoration: none; font-weight: 500; }
.footer-copy { font-size: 0.72rem; color: var(--ink-faint); }

/* ── FADE-UP ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .roppi-nav, .roppi-page-nav { padding: 1rem 1.5rem; }
  .roppi-nav-links { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .gallery-card.wide { grid-column: span 2; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-orb { max-width: 220px; margin: 0 auto; }
  .commission-cards { grid-template-columns: 1fr; max-width: 380px; }
  .artwork-layout { grid-template-columns: 1fr; }
}
