/* ============================================
   InTheRing.org — Crimson Corner Theme
   Web 2.0 Aesthetic: Glossy, Bold, Gradient-Heavy
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --crimson: #D42B2B;
  --crimson-dark: #8B1A1A;
  --crimson-light: #E84040;
  --charcoal: #1A1A1E;
  --charcoal-mid: #2C2C30;
  --charcoal-light: #3A3A40;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --gold: #E8C94A;
  --gold-dark: #B8962A;
  --white: #FFFFFF;
  --text-primary: #1A1A1E;
  --text-secondary: #5A5A60;
  --text-muted: #8A8A90;
  --border: #D8D0C4;
  --border-light: #E8E0D4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--crimson-dark);
}

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-weight: 400; /* Archivo Black is already heavy */
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Site Header --- */
.site-header {
  background: linear-gradient(180deg, var(--charcoal) 0%, #111114 100%);
  border-bottom: 3px solid var(--crimson);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo .accent {
  color: var(--crimson);
}
.site-logo:hover {
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.site-nav__cta {
  background: linear-gradient(180deg, var(--crimson-light), var(--crimson)) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 0 var(--crimson-dark), inset 0 1px 0 rgba(255,255,255,0.2);
  border: 1px solid var(--crimson-dark);
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-sm) !important;
}
.site-nav__cta:hover {
  background: linear-gradient(180deg, #EF4A4A, var(--crimson-light)) !important;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.hero h1 .accent {
  color: var(--crimson);
}
.hero__tagline {
  color: rgba(255,255,255,0.55);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Search Bar --- */
.search-bar {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  display: flex;
  position: relative;
}
.search-bar input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--charcoal-light);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--white);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
}
.search-bar input:focus {
  border-color: var(--crimson);
}
.search-bar input::placeholder {
  color: var(--text-muted);
}
.search-bar button {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  background: linear-gradient(180deg, var(--crimson-light), var(--crimson));
  border: 2px solid var(--crimson-dark);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  transition: background 0.15s ease;
}
.search-bar button:hover {
  background: linear-gradient(180deg, #EF4A4A, var(--crimson-light));
}

/* --- Category Pills --- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
  text-decoration: none;
}
.pill:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.pill--active {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson-dark);
  box-shadow: 0 1px 0 var(--crimson-dark), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}
.section--alt {
  background: var(--cream-dark);
}
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section__header h2 {
  font-size: 1.5rem;
}
.section__header a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* --- Profile Cards Grid --- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
}
.profile-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--crimson);
  transform: translateY(-2px);
  color: inherit;
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.profile-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.profile-card__name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}
.profile-card__location {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.profile-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card__footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* --- Badges (Web 2.0 Glossy) --- */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge--verified {
  background: linear-gradient(180deg, var(--crimson-light), var(--crimson));
  color: var(--white);
  box-shadow: 0 1px 0 var(--crimson-dark), inset 0 1px 0 rgba(255,255,255,0.25);
}
.badge--premium {
  background: linear-gradient(180deg, #555, #3a3a3a);
  color: #ddd;
  box-shadow: 0 1px 0 #222, inset 0 1px 0 rgba(255,255,255,0.12);
}
.badge--new {
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  color: #4A3A0A;
  box-shadow: 0 1px 0 #8A6E1C, inset 0 1px 0 rgba(255,255,255,0.35);
}
.badge--category {
  background: var(--cream);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: none;
  text-transform: none;
  font-weight: 600;
}

.stars {
  color: var(--crimson);
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-left: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
}
.btn--primary {
  background: linear-gradient(180deg, var(--crimson-light), var(--crimson));
  color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
  border: 1px solid var(--crimson-dark);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #EF4A4A, var(--crimson-light));
  color: var(--white);
}
.btn--secondary {
  background: linear-gradient(180deg, var(--white), var(--cream));
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  background: linear-gradient(180deg, var(--cream), var(--cream-dark));
  color: var(--text-primary);
}
.btn--large {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* --- Single Profile Page --- */
.profile-page {
  padding: 2.5rem 0;
}
.profile-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.profile-hero__top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.profile-hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.profile-hero__info h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}
.profile-hero__meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.profile-hero__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.profile-hero__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.profile-details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.profile-details h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--crimson);
  display: inline-block;
}
.profile-details dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}
.profile-details dt {
  color: var(--text-muted);
  font-weight: 500;
}
.profile-details dd {
  color: var(--text-primary);
}

/* --- Submission Form --- */
.form-page {
  padding: 2.5rem 0;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.form-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.form-group .hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(212,43,43,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-tier-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tier-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.tier-card:hover {
  border-color: var(--crimson);
}
.tier-card--selected {
  border-color: var(--crimson);
  background: rgba(212,43,43,0.03);
}
.tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.tier-card__name {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.tier-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}
.tier-card__price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.tier-card__features {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.tier-card__features li {
  padding: 0.15rem 0;
}
.tier-card__features li::before {
  content: '✓ ';
  color: var(--crimson);
  font-weight: 700;
}

/* --- Content Pages (About, Privacy) --- */
.content-page {
  padding: 2.5rem 0;
}
.content-page h1 {
  margin-bottom: 1.5rem;
}
.content-page .content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.content-page .content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.content-page .content h2:first-child {
  margin-top: 0;
}
.content-page .content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
}
.content-page .content ul, .content-page .content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.content-page .content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  font-size: 0.8rem;
  margin-top: 3rem;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.site-footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0;
  margin-top: 1.5rem;
}
.stat {
  text-align: center;
}
.stat__number {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.5rem;
  color: var(--white);
}
.stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(180deg, var(--charcoal), #111114);
  padding: 3rem 0;
  text-align: center;
  border-top: 3px solid var(--crimson);
}
.cta-banner h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.cta-banner p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .profiles-grid { grid-template-columns: 1fr; }
  .form-tier-options { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; gap: 0.75rem; }
  .site-nav { width: 100%; justify-content: center; }
  .stats-bar { gap: 1.5rem; }
  .profile-hero__top { flex-direction: column; align-items: center; text-align: center; }
  .site-footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .search-bar { flex-direction: column; }
  .search-bar input { border-right: 2px solid var(--charcoal-light); border-radius: var(--radius-md); }
  .search-bar button { border-left: 2px solid var(--crimson-dark); border-radius: var(--radius-md); margin-top: 0.5rem; }
}
