/* Indie Artist Guide - Common Styles */
/* Extracted from duplicate inline styles across all pages */

/* ===== CSS Variables & Theming ===== */
:root {
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --primary-light: #e0e7ff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --bg-color: #ffffff;
}

[data-theme="dark"] {
  --primary-light: #312e81;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-600: #94a3b8;
  --gray-700: #cbd5e1;
  --gray-800: #f1f5f9;
  --bg-color: #0f172a;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--bg-color);
}

a {
  color: #3730a3; /* Darker primary for better contrast (WCAG AA) */
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Accessibility: Focus Styles ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0;
  box-shadow: 0 4px 20px rgba(67, 56, 202, 0.3);
}

[data-theme="dark"] nav {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: white;
}

.logo:hover {
  color: white;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.logo:hover .logo-icon {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 20px);
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

[data-theme="dark"] .nav-dropdown-menu {
  background: #1e293b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: white;
}

[data-theme="dark"] .nav-dropdown-menu::before {
  border-bottom-color: #1e293b;
}

.nav-dropdown-menu a {
  color: var(--gray-700);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown-menu a .menu-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-dropdown-menu a:hover .menu-icon {
  background: var(--primary);
  color: white;
}

.menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item-content span:first-child {
  font-weight: 500;
}

.menu-item-content span:last-child {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.language-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px;
}

.language-toggle button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.language-toggle button.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.language-toggle button:hover:not(.active) {
  color: white;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: white;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 3rem 0;
}

header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

/* Page Header (for content pages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-light) 0%, #c7d2fe 100%);
  padding: 3rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .page-header h1 {
  color: var(--gray-800);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Main Content ===== */
.main-content {
  padding: 2rem 0;
}

.lead {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* ===== Grid Layouts ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ===== Cards ===== */
.card {
  background-color: var(--primary-light);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.card h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card ul {
  padding-left: 1.5rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.card-check {
  display: flex;
  align-items: flex-start;
}

.card-check span:first-child {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Area Cards */
.area-card {
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

[data-theme="dark"] .area-card {
  background-color: #1e293b;
}

.area-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .area-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.area-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.area-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.area-card a {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Sections ===== */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  color: var(--primary);
  margin: 2rem 0;
}

.content-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-section h3 {
  color: var(--gray-800);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ===== CTA Section ===== */
.cta {
  background-color: var(--primary-light);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  margin: 3rem 0;
}

.cta h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cta p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: white;
}

/* ===== Quotes ===== */
.quote-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, #c7d2fe 100%);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

[data-theme="dark"] .quote-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.quote-box p {
  font-style: italic;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quote-source {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ===== Strategy/Info Boxes ===== */
.strategy-box {
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

[data-theme="dark"] .strategy-box {
  background-color: #1e293b;
}

.strategy-box h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.strategy-box ul {
  list-style: none;
  padding: 0;
}

.strategy-box li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.strategy-box li:last-child {
  border-bottom: none;
}

/* ===== Comparison Tables ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: var(--gray-100);
}

/* ===== Page Navigation ===== */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.page-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--primary-light);
  border-radius: 0.5rem;
  font-weight: 500;
}

.page-nav a:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.page-nav .next {
  margin-left: auto;
}

/* ===== Footer ===== */
footer {
  background-color: var(--gray-100);
  padding: 2rem 0;
  margin-top: 3rem;
}

[data-theme="dark"] footer {
  background-color: #1e293b;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-info h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ===== Resource Cards ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.resource-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

[data-theme="dark"] .resource-card {
  background: #1e293b;
}

.resource-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.resource-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.resource-card p {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.resource-card .category-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Filter buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .nav-container {
    height: 60px;
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
  }

  [data-theme="dark"] .nav-links {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  }

  .nav-links.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links > li:last-child {
    border-bottom: none;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .nav-links a {
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  /* Mobile dropdown */
  .nav-dropdown-trigger svg {
    margin-left: auto;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin: 0.5rem 0 1rem 0;
    min-width: auto;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    color: white;
    padding: 0.75rem;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
  }

  .nav-dropdown-menu a .menu-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }

  .menu-item-content span:last-child {
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-controls {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0;
    padding-left: 0;
    padding-top: 1.5rem;
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .grid, .areas-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-info {
    margin-bottom: 1rem;
  }

  header h1, .page-header h1 {
    font-size: 2rem;
  }

  .page-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .page-nav a {
    justify-content: center;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  header h1, .page-header h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .content-section h2 {
    font-size: 1.25rem;
  }
}
