/*
Theme Name: MTL Electro
Description: Custom theme for MTL Electro - Montreal's Electronic Music Directory
Version: 1.0
Author: MTL Electro
Text Domain: mtlelectro
*/

/* ================================================
   VARIABLES
   ================================================ */
:root {
  --color-dark:       #0a0a0a;
  --color-dark-2:     #111111;
  --color-accent:     #a0e792;
  --color-accent-dim: #6db860;
  --color-mid:        #888888;
  --color-light:      #cccccc;
  --color-border:     #2a2a2a;
  --color-bg:         #141414;
  --color-surface:    #1a1a1a;
  --color-success-bg: #0f2a0f;
  --color-success-fg: #a0e792;
  --color-error-bg:   #2a0f0f;
  --color-error-fg:   #ff8888;
  --color-spotify:    #1DB954;
  --color-apple:      #fc3c44;
  --color-bandcamp:   #1da0c3;
  --color-soundcloud: #ff5500;
  --color-tiktok:     #888;

  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  20px;

  --max-width:  1100px;
  --gap:        30px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0a0a0a;
}

a { color: var(--color-accent); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; }

/* ================================================
   SITE STRUCTURE
   ================================================ */
.site-header {
  background: #000;
  color: #fff;
  padding: 0 20px;
  border-bottom: 2px solid var(--color-accent);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.site-title span { color: var(--color-accent); }
.site-title:hover { color: var(--color-accent); }

.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--color-accent); }

.site-footer {
  background: #000;
  color: #555;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  margin-top: 60px;
  border-top: 1px solid #1a1a1a;
}

.site-footer a { color: #777; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }

/* ================================================
   LAYOUT WRAPPERS
   ================================================ */
.site-wrap {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

/* ================================================
   GENRE TAGS
   ================================================ */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.genre-tag {
  background-color: transparent;
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  text-decoration: none;
}

a.genre-tag:hover {
  background: var(--color-accent);
  color: #000;
}

/* ================================================
   CARDS
   ================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
  margin-bottom: 50px;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #e0e0e0;
  display: block;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  color: #fff;
  text-decoration: none;
  border-color: var(--color-accent);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eee;
}

.card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ccc;
}

.card-info { padding: 14px 16px; }

.card-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #fff;
}

/* ================================================
   PLATFORM BUTTONS
   ================================================ */
.platform-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  color: #fff;
}

.platform-btn:hover      { opacity: 0.85; color: #fff; }
.platform-btn svg        { width: 18px; height: 18px; flex-shrink: 0; fill: #fff; }

.platform-btn.spotify    { background-color: var(--color-spotify); }
.platform-btn.apple      { background-color: var(--color-apple); }
.platform-btn.bandcamp   { background-color: var(--color-bandcamp); }
.platform-btn.soundcloud { background-color: var(--color-soundcloud); }
.platform-btn.instagram  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-btn.tiktok     { background-color: var(--color-tiktok); }
.platform-btn.other      { background-color: #555; }

/* ================================================
   PROFILE ACTION BUTTONS
   ================================================ */
.profile-action-btn-wrap { margin-bottom: 20px; }

.profile-action-btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.profile-action-btn.edit {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.profile-action-btn.edit:hover { background: var(--color-accent); color: #000; }

.profile-action-btn.claim {
  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: #000;
}

.profile-action-btn.claim:hover { opacity: 0.85; }

/* ================================================
   FORMS
   ================================================ */
.site-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.form-field label .required { color: #cc2200; margin-left: 3px; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="url"],
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s;
  background: var(--color-surface);
  color: #e0e0e0;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-field .field-note { font-size: 0.8rem; color: #888; }

.genre-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.genre-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
  color: #ccc;
}

.genre-checkbox-label:hover { border-color: var(--color-accent); color: #fff; }

.genre-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-accent);
}

.genre-checkbox-label:has(input:checked) {
  background: var(--color-accent);
  color: #000;
  border-color: var(--color-accent);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover { opacity: 0.85; color: #000; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 11px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline:hover { background: var(--color-accent); color: #000; }

/* ================================================
   MESSAGES
   ================================================ */
.form-message {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.form-message.success {
  background: var(--color-success-bg);
  color: var(--color-success-fg);
  border: 1px solid #b7dfca;
}

.form-message.error {
  background: var(--color-error-bg);
  color: var(--color-error-fg);
  border: 1px solid #f5c2c2;
}

/* ================================================
   PROFILE PAGE
   ================================================ */
.profile-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

.profile-left  { flex: 0 0 280px; }
.profile-right { flex: 1; min-width: 280px; }

.profile-left img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

.profile-right h1 { margin-top: 0; font-size: 2rem; margin-bottom: 20px; color: #fff; }

.profile-bio { font-size: 0.97rem; line-height: 1.75; color: #ccc; }

/* ================================================
   HERO
   ================================================ */
.home-hero {
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 50px;
}

.home-hero h1 { font-size: 2.4rem; margin-bottom: 16px; color: #fff; }

.home-hero p {
  font-size: 1.1rem;
  color: var(--color-mid);
  max-width: 600px;
  margin: 0 auto 24px auto;
  line-height: 1.7;
}

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 { font-size: 1.4rem; margin: 0; color: #fff; }

/* ================================================
   VIEW ALL
   ================================================ */
.view-all-wrap { text-align: center; margin: 10px 0 60px 0; }

/* ================================================
   SUCCESS BLOCK
   ================================================ */
.success-block { text-align: center; padding: 60px 20px; }
.success-block h2 { font-size: 1.6rem; margin-bottom: 16px; color: #fff; }
.success-block p { color: var(--color-mid); line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* ================================================
   NO RESULTS
   ================================================ */
.no-results { color: #555; font-style: italic; }

/* ================================================
   LANGUAGE TOGGLE
   ================================================ */
.lang-toggle {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 9999;
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  border: 1px solid var(--color-border);
}

.lang-toggle button {
  padding: 7px 14px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  background: #111;
  color: #666;
}

.lang-toggle button.active {
  background: var(--color-accent);
  color: #000;
}

/* ================================================
   HEADER IMAGE
   ================================================ */
.site-hero-image {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.site-hero-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ================================================
   FEATURED ARTISTS
   ================================================ */
.featured-heading {
    color: var(--color-accent) !important;
}

.featured-grid .card {
    border-color: var(--color-accent);
}

.featured-divider {
    border-top: 1px solid var(--color-border);
    margin: 40px 0;
}

/* ================================================
   ARTIST MEDIA EMBED
   ================================================ */
.artist-embed {
    margin-top: 30px;
}

.artist-embed iframe {
    width: 100%;
    border-radius: var(--radius-md);
    border: none;
}

.artist-embed-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

/* ================================================
   VENUE SPECIFIC
   ================================================ */
.venue-address { margin-top: 16px; font-size: 0.88rem; color: var(--color-mid); line-height: 1.5; }
.venue-address a { color: var(--color-mid); text-decoration: underline; }
.venue-address a:hover { color: var(--color-dark); }
.venue-map { margin-top: 30px; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .site-nav { gap: 16px; }
  .site-title { font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .profile-wrap    { flex-direction: column; }
  .profile-left    { flex: 0 0 auto; width: 100%; max-width: 320px; }
  .card-grid       { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .site-nav        { display: none; }
}
