/* ARC - Accessories Guides Website
   Modern Light Theme - AlternativeTo Inspired */

:root {
  /* Light Theme Colors */
  --bg: #f5f7f9;
  /* Light gray background */
  --bg-secondary: #ffffff;
  /* White for cards */
  --bg-card: #ffffff;
  /* White cards */
  --text: #2d3436;
  /* Dark gray text */
  --text-secondary: #636e72;
  /* Medium gray */
  --border: #e1e8ed;
  /* Light border */
  --accent: #06a0ff;
  /* Primary blue */
  --accent-hover: #0087d2;
  /* Darker blue */

  /* Layout */
  --container-max: 960px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Consolas, monospace;
  --radius: 12px;
  /* Rounded corners */
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  /* Now uses #f5f7f9 light gray */
  color: var(--text);
  /* Now uses #2d3436 dark gray */
  line-height: 1.6;
}

a {
  color: var(--accent);
  /* Blue links */
  text-decoration: none;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Modern Header - AlternativeTo Style */
header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

header nav .logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

header nav .logo a {
  color: inherit;
}

header nav .logo a:hover {
  text-decoration: none;
}

/* Search Container - Prominent */
.search-container {
  position: relative;
  flex-grow: 1;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
  font-family: var(--font);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 160, 255, 0.1);
  background: var(--bg-secondary);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-shrink: 0;
}

header nav ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.95rem;
  white-space: nowrap;
}

header nav ul a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 1.5rem 0 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb-separator {
  color: var(--border);
}

/* Page Title */
.page-title {
  padding: 1rem 0 1.5rem;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--text-secondary);
}

/* Brand Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.brand-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.brand-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.brand-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.brand-card .guide-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Phone List */
.phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0 3rem;
}

.phone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.phone-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.phone-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
  color: var(--text);
}

.phone-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.phone-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.phone-status.complete {
  background: #1b5e20;
  color: #a5d6a7;
}

/* BBCode Sections */
.bbcode-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0 3rem;
}

.bbcode-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bbcode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.bbcode-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

.copy-btn.copied {
  background: #2e7d32;
  color: #fff;
}

.bbcode-content {
  max-height: 250px;
  overflow-y: auto;
}

.bbcode-content pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1rem;
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.2s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--accent);
}

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

/* Responsive */
@media (max-width: 768px) {
  header nav {
    flex-direction: column;
    gap: 1rem;
  }

  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .bbcode-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .phone-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Sticky Title in Header */
.sticky-title {
  font-size: 1rem;
  font-weight: 600;
  color: #b0b0b0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

.sticky-title.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .sticky-title {
    display: none;
  }
}