/**
 * PHONEPARIS Design System - Theme Styles
 * Paris 1889 Warm Luxury Theme
 * Mobile-First: 390px Fixed + Kodak Film Dark Green Border
 */

@import url('./variables.css');

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

/* === Kodak Film Frame Layout === */
html {
  background: #080a09;
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 390px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184,150,46,.06), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(196,167,125,.04), transparent 50%),
    var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

/* === Layout === */
.container {
  max-width: 390px;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap {
  max-width: 390px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

/* === Cards === */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.card-dark {
  background: var(--card-dark);
  border: 1px solid var(--border-light);
  color: var(--text-light);
}

.card:hover {
  border-color: var(--gold);
}

/* === Typography === */
h1, h2, h3 {
  font-weight: 700;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

.text-gold { color: var(--gold); }
.text-wood { color: var(--wood); }
.text-muted { color: var(--text-muted); }
.text-muted-light { color: var(--text-muted-light); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B8860B);
  color: var(--bg);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
}

.btn-wood {
  background: rgba(196,167,125,.2);
  border: 1px solid rgba(196,167,125,.5);
  color: var(--text-dark);
}

/* === Pills / Tags === */
.pill {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 13px;
  transition: all .2s;
}

.pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(212,175,55,.95), rgba(212,175,55,.78));
  color: var(--bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-gold { background: var(--gold-dim); color: var(--gold); }
.badge-success { background: rgba(76,175,80,.15); color: var(--success); }
.badge-danger { background: rgba(232,93,93,.15); color: var(--danger); }
.badge-info { background: rgba(100,181,246,.15); color: var(--info); }
.badge-warning { background: rgba(255,183,77,.15); color: var(--warning); }

/* === Header === */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}

.logo {
  height: 48px;
}

.nav-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* === Hero === */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* === Grid (Mobile: always single column) === */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.col-12, .col-6, .col-4, .col-3 { 
  grid-column: span 1; 
}

/* === Sections === */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* === Table === */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--gold);
  font-weight: 600;
}

/* === Forms === */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

/* === Item Boxes === */
.item {
  border: 1px solid rgba(196,167,125,.3);
  border-radius: 14px;
  padding: 12px;
  background: rgba(232,222,208,.5);
  margin-top: 10px;
}

.item strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.item span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* === Footer === */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-muted-light);
}

/* === Utilities === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.hidden { display: none; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }

/* === Brand Element === */
.brand-subtitle {
  color: var(--text-muted-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* === Note/Hint Boxes === */
.note {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed rgba(212,175,55,.25);
  border-radius: 14px;
  color: var(--text-muted-light);
  font-size: 12px;
  line-height: 1.7;
  background: rgba(212,175,55,.03);
}

.note strong {
  color: var(--gold);
}

/* === Meta / Subtitle === */
.subtitle {
  color: var(--text-muted-light);
  font-size: 0.875rem;
  line-height: 1.7;
}

.meta {
  font-size: 0.75rem;
  color: var(--text-muted-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* === Badge Variants === */
.badge-outline {
  background: transparent;
  border: 1px solid rgba(212,175,55,.3);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.625rem;
}

/* === Card Extensions === */
.card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.card .meta {
  color: var(--text-muted);
}

/* === Tag in Card === */
.tag-outline {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(212,175,55,.10);
  color: #F3E7B7;
  font-size: 0.6875rem;
}
