/* ============================================
   noneed.dev — Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg: #f5f3ef;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --card-bg: #ffffff;
  --card-radius: 16px;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* App accent colors */
  --color-cashflow: #d94f7a;
  --color-dubblelab: #e8b83d;
  --color-timetone: #5b8fd9;
  --color-supplement: #8b5fbf;
  --color-flight: #2d8a8a;

  --font-stack: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Hero Section --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 2rem;
}

.logo-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 1.5rem;
}

.logo-container svg {
  width: 100%;
  height: 100%;
}

/* Rotating SVG overlays the container */
.rotating-svg {
  position: absolute;
  top: 0;
  left: 0;
}

/* Rotating text ring */
.rotating-text {
  transform-origin: 150px 150px;
  animation: spin 26s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-container svg text {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 1.5px;
  fill: #000;
}

/* Center watering can PNG */
.logo-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.site-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

/* --- App Grid --- */
.apps {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* --- App Cards --- */
.app-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card[data-app="cashflow"] { --accent: var(--color-cashflow); }
.app-card[data-app="dubblelab"] { --accent: var(--color-dubblelab); }
.app-card[data-app="timetone"] { --accent: var(--color-timetone); }
.app-card[data-app="supplement"] { --accent: var(--color-supplement); }
.app-card[data-app="flight"] { --accent: var(--color-flight); }

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

.app-icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent, var(--text));
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.app-card:hover .app-link {
  gap: 0.6rem;
}

/* Timetone hue shift */
.app-card[data-app="timetone"] {
  --accent: var(--color-timetone);
}

.app-card[data-app="timetone"]:hover {
  animation: hue-shift 3s linear infinite;
}

@keyframes hue-shift {
  0% { border-color: #5b8fd9; }
  25% { border-color: #d95b8f; }
  50% { border-color: #8fd95b; }
  75% { border-color: #d9c45b; }
  100% { border-color: #5b8fd9; }
}

.app-card[data-app="timetone"]:hover::before {
  animation: hue-shift-bar 3s linear infinite;
}

@keyframes hue-shift-bar {
  0% { background: #5b8fd9; }
  25% { background: #d95b8f; }
  50% { background: #8fd95b; }
  75% { background: #d9c45b; }
  100% { background: #5b8fd9; }
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
  transition: opacity 0.2s;
}

.site-footer a:hover {
  opacity: 0.6;
}

.footer-tagline {
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .hero {
    padding: 3rem 1.5rem 1.5rem;
  }

  .logo-container {
    width: 220px;
    height: 220px;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .site-tagline {
    font-size: 1rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 961px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
