/* Root Variables - Red & Dark Black Theme */
:root {
  /* New Theme: Navy & Elite Yellow */
  --primary-navy: #001f3f;
  --dark-navy: #001529;
  --elite-yellow: #d4af37;
  --light-yellow: #f2c94c;

  /* Mapped Variables - Keeping functional names where possible or updating usages later */
  --primary-color: var(--primary-navy);
  --accent-color: var(--elite-yellow);

  --bg-black: #0d0d0d;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #262626;
  --bg-hover: #333333;

  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;

  --border-color: #333333;
  --shadow: rgba(0, 31, 63, 0.4);
  --shadow-light: rgba(0, 31, 63, 0.1);

  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;

  --transition: all 0.3s ease;

  /* Mobile Breakpoints */
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 1024px;

  /* Layout Heights */
  --header-height: 70px;
  --bottom-nav-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-black);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--light-yellow);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-navy), var(--dark-navy));
  border: 1px solid var(--primary-navy);
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--dark-navy), var(--primary-navy));
  border-color: var(--elite-yellow);
  box-shadow: 0 6px 20px var(--shadow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--primary-red);
}

.btn-outline {
  background: transparent;
  color: var(--elite-yellow);
  border: 2px solid var(--elite-yellow);
}

.btn-outline:hover {
  background: var(--elite-yellow);
  color: var(--bg-black);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--elite-yellow);
  box-shadow: 0 0 0 3px var(--shadow-light);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Card Styles */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary-navy);
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-4px);
}

.card-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1rem 0;
}

.card-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
}

.col {
  flex: 1;
}

.col-2 {
  flex: 0 0 calc(16.666% - 2rem);
  max-width: calc(16.666% - 2rem);
}
.col-3 {
  flex: 0 0 calc(25% - 2rem);
  max-width: calc(25% - 2rem);
}
.col-4 {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
}
.col-6 {
  flex: 0 0 calc(50% - 2rem);
  max-width: calc(50% - 2rem);
}
.col-8 {
  flex: 0 0 calc(66.666% - 2rem);
  max-width: calc(66.666% - 2rem);
}
.col-9 {
  flex: 0 0 calc(75% - 2rem);
  max-width: calc(75% - 2rem);
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

.d-block {
  display: block;
}
.d-inline {
  display: inline;
}
.d-inline-block {
  display: inline-block;
}
.d-flex {
  display: flex;
}
.d-none {
  display: none;
}

.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.w-100 {
  width: 100%;
}
.h-100 {
  height: 100%;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  background: var(--primary-navy);
  color: var(--text-primary);
  border: 1px solid var(--elite-yellow);
}

.badge-secondary {
  background: var(--bg-tertiary);
}

/* Creator Cards Grid (Homepage) */
.creator-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.creator-card-mini {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.creator-card-mini:hover {
  border-color: var(--elite-yellow);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow);
}

.ccm-cover {
  position: relative;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-navy), var(--dark-navy));
  overflow: hidden;
}

.ccm-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ccm-featured-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
}

.ccm-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  object-fit: cover;
  margin: -30px auto 0.5rem;
  display: block;
  background: var(--bg-tertiary);
}

.ccm-info {
  padding: 0 1rem 1rem;
  text-align: center;
}

.ccm-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccm-username {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.ccm-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.ccm-platform {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

.ccm-platform.platform-fansly {
  background: rgba(0, 180, 255, 0.2);
  color: #00b4ff;
}

.ccm-platform.platform-onlyfans {
  background: rgba(0, 175, 240, 0.2);
  color: #00aff0;
}

.ccm-platform.platform-both {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .row {
    gap: 1rem;
  }

  .col-2,
  .col-3,
  .col-4,
  .col-6,
  .col-8,
  .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .btn-small {
    width: auto;
    padding: 10px 20px;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* Code and Preformatted Block Styles for Articles */
pre {
  background: #111111 !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 1.25rem !important;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.95rem !important;
  color: #e0e0e0 !important;
  overflow-x: auto !important;
  margin-bottom: 1.5rem !important;
  white-space: pre-wrap !important;
  line-height: 1.5 !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

code {
  background: #111111 !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.9em !important;
  color: #f2c94c !important; /* Matches Elite theme accent color */
  border: 1px solid var(--border-color) !important;
}

/* Styled Blockquote Code Blocks for Public Site Articles */
blockquote {
  border-left: 4px solid var(--elite-yellow) !important;
  padding: 0 !important;
  margin: 0 0 1.5rem 0 !important;
  background: #111111 !important;
  border-radius: 0 8px 8px 0 !important;
  overflow: hidden !important;
}

blockquote pre {
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 1.25rem !important;
}

blockquote code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #f2c94c !important;
}
