﻿:root {
  --ff-primary: #ff6f61;
  --ff-secondary: #ffe8e1;
  --ff-dark: #2b2b2b;
  --ff-accent: #00bfa5;
  --ff-bg: #fff9f7;
  --ff-radius-lg: 22px;
  --ff-radius-md: 16px;
  --ff-radius-sm: 12px;
  --ff-radius-pill: 999px;
}

body {
  background: radial-gradient(circle at top, #fff0ea 0%, #fff9f7 45%, #fefefe 100%);
  color: var(--ff-dark);
}

/* Global rounded theme */
.card,
.modal,
.sidenav,
.ff-swipe-card,
.ff-hero-card,
.ff-upload-card,
.ff-chat-card,
.ff-match-card,
.ff-install {
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
}

.collection {
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
}

.collection .collection-item {
  border-radius: var(--ff-radius-md);
  margin: 6px 10px;
}

.btn,
.btn-large,
.btn-small {
  border-radius: var(--ff-radius-pill);
}

.btn-flat {
  border-radius: var(--ff-radius-md);
}

.dropdown-content {
  border-radius: var(--ff-radius-md);
  overflow: hidden;
}

.ff-nav {
  background: #C76463;
}

.ff-logo {
  display: inline-flex;
  align-items: center;
}

.ff-logo img {
  height: 108px;
  width: auto;
  display: block;
}

.ff-nav .nav-wrapper {
  height: 132px;
}

.ff-nav .brand-logo {
  line-height: 132px;
}

@media (max-width: 600px) {
  .ff-logo img {
    height: 90px;
  }
  .ff-nav .nav-wrapper {
    height: 108px;
  }
  .ff-nav .brand-logo {
    line-height: 108px;
  }
}

.ff-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.ff-hero {
  padding: 2rem 0;
}

.ff-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
}

.ff-cta .btn-large {
  margin-right: 0.5rem;
}

.ff-feature .material-icons {
  font-size: 2.5rem;
  color: var(--ff-primary);
}

.ff-list {
  padding-left: 1rem;
}

.ff-list li {
  list-style: disc;
  margin-bottom: 0.3rem;
}

.ff-hero-card {
  background: #ffffff;
  border-radius: 16px;
}

.ff-swipe-container {
  position: relative;
  min-height: 480px;
}

.ff-swipe-card {
  position: absolute;
  width: 100%;
  max-width: 420px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ff-swipe-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ff-photo-watermark {
  position: relative;
}

.ff-photo-watermark::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 80px;
  height: 48px;
  background: url('../images/logo/FurryFlirt_250_150.webp') no-repeat center / contain;
  opacity: 0.2;
  pointer-events: none;
}

.ff-tap-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 25% 75%;
  z-index: 2;
}

.ff-tap-zone {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ff-tap-super {
  grid-column: 1 / 3;
  grid-row: 1;
}

.ff-tap-pass {
  grid-column: 1;
  grid-row: 2;
}

.ff-tap-like {
  grid-column: 2;
  grid-row: 2;
}

.ff-tap-zone:focus {
  outline: 2px dashed rgba(0, 0, 0, 0.2);
  outline-offset: -4px;
}

.ff-swipe-content {
  padding: 1rem;
}

.ff-tag {
  display: inline-block;
  background: var(--ff-secondary);
  color: #333;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.ff-swipe-actions {
  margin-top: 2rem;
}

.ff-swipe-actions .btn {
  margin: 0 0.5rem;
}

.ff-chat-card {
  min-height: 60vh;
}

.ff-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ff-chat-actions {
  display: flex;
  gap: 0.5rem;
}

.ff-chat-actions .btn-flat {
  padding: 0 0.8rem;
}

.ff-match-card {
  margin-bottom: 1.5rem;
}

.ff-match-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ff-match-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ff-match-tags {
  margin: 0.5rem 0;
}

.ff-match-bio {
  margin-top: 0.25rem;
}

.ff-match-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.ff-note-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.ff-note-content {
  flex: 1 1 auto;
  min-width: 0;
}

.ff-note-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex: 0 0 auto;
}

.ff-note-actions a {
  color: #777;
}

.ff-note-actions a.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.ff-chat-messages {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
  background: #fafafa;
  border-radius: 12px;
}

.ff-chat-message {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  max-width: 80%;
}

.ff-chat-message.me {
  background: var(--ff-accent);
  color: #fff;
  margin-left: auto;
}

.ff-chat-message.them {
  background: #eee;
}

.ff-install {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 280px;
  z-index: 1000;
}

.ff-upload-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ff-upload-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 14px;
  min-width: 260px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.ff-upload-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.ff-upload-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.ff-upload-progress {
  height: 100%;
  width: 0%;
  background: var(--ff-primary);
  transition: width 0.2s ease;
}

.ff-upload-percent {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
}

.sidenav {
  background: linear-gradient(180deg, #fff3ef 0%, #fff9f7 40%, #ffffff 100%);
}

.sidenav li {
  border-bottom: none;
}

.sidenav li.divider {
  margin: 8px 20px;
}

.sidenav li > a {
  padding: 0 18px;
  margin: 4px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.sidenav li > a:hover {
  background: rgba(255, 111, 97, 0.12);
}

.ff-sidenav-header {
  padding: 18px 20px 8px;
}

.ff-sidenav-header small {
  color: rgba(0, 0, 0, 0.6);
}

.ff-sidenav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.ff-sidenav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* iOS native selects: keep labels from overlapping */
.ff-ios-select label {
  position: static !important;
  transform: none !important;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: block;
}

.ff-ios-select select.browser-default {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--ff-radius-md);
  background: #fff;
  box-sizing: border-box;
}

.ff-filter-card {
  position: sticky;
  top: 1rem;
}

.ff-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.ff-admin-nav .btn-flat {
  border-radius: 999px;
}

.ff-admin-active {
  background: var(--ff-primary);
  color: #fff !important;
}

.ff-admin-filter-btn {
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
}

.ff-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ff-admin-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ff-location-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

.ff-location-controls .btn {
  align-self: flex-start;
}

.ff-location-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.2;
}

.ff-location-help {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.ff-location-help-hidden {
  display: none;
}

.ff-photo-upload {
  margin-top: 2rem;
}

#photo-list {
  margin-top: 1rem;
}

.ff-photo-item {
  position: relative;
  margin-bottom: 1rem;
}

.ff-photo-item img {
  width: 100%;
  border-radius: 12px;
}

.ff-badge {
  display: inline-block;
  background: var(--ff-primary);
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-left: 0.4rem;
}

@media (max-width: 600px) {
  .ff-hero h1 {
    font-size: 2rem;
  }
  .ff-swipe-card {
    max-width: 100%;
  }
  .ff-photo-watermark::after {
    width: 64px;
    height: 38px;
  }
  .ff-location-controls .btn {
    width: 100%;
  }
}

