/* =========================================================
   PowerFunds – pf.css
   Clean, mobile-first, production-ready
   ========================================================= */

/* -------------------------
   CSS Variables / Theme
   ------------------------- */
:root {
  --pf-bg: #1a1a1a;
  --pf-bg-card: #2a2a2a;
  --pf-bg-card-hover: #3a3a3a;

  --pf-text: #ffffff;
  --pf-text-muted: rgba(255, 255, 255, 0.82);

  --pf-accent: #f55c2d;
  --pf-accent-hover: #daa520;

  --pf-max-width: 480px;

  --pf-radius-sm: 8px;
  --pf-radius-md: 12px;
  --pf-radius-pill: 999px;

  --pf-shadow-btn: 0 6px 18px rgba(0, 0, 0, 0.25);
  --pf-focus-ring: 0 0 0 3px rgba(245, 92, 45, 0.35);
}

/* -------------------------
   Reset & Base
   ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background-color: var(--pf-bg);
  color: var(--pf-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: none;
  box-shadow: var(--pf-focus-ring);
  border-radius: var(--pf-radius-sm);
}

/* -------------------------
   Header / Logo
   ------------------------- */
.header {
  padding: 22px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.logo {
  height: 40px;
  width: auto;
  cursor: pointer;
}

/* -------------------------
   Floating Top-Right Button
   ------------------------- */
.top-right-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--pf-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--pf-shadow-btn);
  transition: background-color 0.15s ease, transform 0.08s ease;
}

.top-right-btn:hover {
  background-color: var(--pf-accent-hover);
}

.top-right-btn:active {
  transform: scale(0.96);
}

/* -------------------------
   Layout Wrapper
   ------------------------- */
.wrapper {
  max-width: var(--pf-max-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* -------------------------
   Titles & Text
   ------------------------- */
.title-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.orange {
  color: var(--pf-accent);
}

p {
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pf-text-muted);
}

/* -------------------------
   Fund List
   ------------------------- */
.fund-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.fund-item {
  background-color: var(--pf-bg-card);
  padding: 16px 20px;
  border-radius: var(--pf-radius-md);
  font-size: 18px;
  font-weight: 500;
  color: var(--pf-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.08s ease;
}

.fund-item:hover {
  background-color: var(--pf-bg-card-hover);
}

.fund-item:active {
  transform: scale(0.99);
}

/* -------------------------
   Arrow Button
   ------------------------- */
.arrow-btn {
  width: 36px;
  height: 36px;
  background-color: var(--pf-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.fund-item:hover .arrow-btn {
  background-color: var(--pf-accent-hover);
  transform: translateX(2px);
}

/* -------------------------
   Primary Button
   ------------------------- */
.btn {
  appearance: none;
  border: 0;
  background-color: var(--pf-accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: var(--pf-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--pf-shadow-btn);
  transition: background-color 0.15s ease, transform 0.08s ease;
}

.btn:hover {
  background-color: var(--pf-accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--pf-focus-ring), var(--pf-shadow-btn);
}

/* -------------------------
   Button Group
   ------------------------- */
.button-group {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* -------------------------
   Mobile Tweaks
   ------------------------- */
@media (max-width: 420px) {
  h1 {
    font-size: 24px;
  }

  .fund-item {
    font-size: 16px;
    padding: 14px 16px;
  }

  .arrow-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/* -------------------------
   Reduced Motion
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
