* {
  transition: background-color .15s ease, color .15s ease;
  margin:0;
  padding:0;
  box-sizing: border-box;
}
:root {
  --font-primary: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-xs: 0.75rem;   /* badges, tiny meta */
  --fs-sm: 0.875rem;  /* filters, meta */
  --fs-base: 1rem;    /* body */
  --fs-md: 1.125rem;  /* card titles */
  --fs-lg: 1.375rem;  /* section headings */
  --fs-xl: 1.75rem;   /* page titles */
  --fs-2xl: 2.125rem; /* hero / main titles */

   --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight: -0.01em;
  --ls-normal: 0;
  --ls-wide: 0.02em;

  /* Color Base */
  --bg-main: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-soft: #f1f3f6;

  /* Color Text */
  --text-primary: #1f2937;   /* near-black */
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  /* Color Borders & dividers */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;

  /* Color Brand / Accent */
  --accent-primary: #2563eb; /* blue */
  --accent-hover: #1d4ed8;
  --accent-soft: #e0e7ff;

  /* Color States */
  --success: #16a34a;
  --danger: #dc2626;

  /* Color Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  /* Color input Controls */
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-placeholder: #9ca3af;
}
html[data-theme="dark"] {
  /* Base */
  --bg-main: #0f172a;
  --bg-surface: #111827;
  --bg-soft: #1f2937;

  /* Text */
  --text-primary: #e5e7eb;
  --text-secondary: #cbd5f5;
  --text-muted: #9ca3af;

  /* Borders & dividers */
  --border-light: #273449;
  --border-medium: #334155;

  /* Brand / Accent */
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: #1e3a8a;

  /* States */
  --success: #22c55e;
  --danger: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 6px 18px rgba(0,0,0,.6);

  /* Controls */
  --input-bg: #111827;
  --input-border: #334155;
  --input-placeholder: #64748b;
}
body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  background-color: var(--bg-main);
  color:var(--text-secondary);
}

h1, h2, h3, h4 {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color:var(--text-primary);
}
small,
.meta {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
/* ---------- Header ---------- */
header {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-navigation ul a{
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}
.primary-navigation ul {
  display: flex;
  gap: 24px;
  list-style: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions button:hover {
  color: var(--accent-primary);
  background: var(--accent-soft);
}
.header-icon{
  fill: var(--accent-primary);
}
.header-icon-stroke{
  stroke: var(--text-primary);
}
.search-overlay.active .search-toggle,
.mobile-menu.active .menu-toggle {
  color: var(--accent-primary);
}
/* ---------- Icon buttons ---------- */
.icon-btn,
.menu-toggle {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: inherit;
}

.icon-btn svg,
.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---------- Theme toggle ---------- */
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- Hamburger visibility ---------- */

.button-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.hamburger {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.hamburger:hover {
  background: var(--border-light);
}

.main-container {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: auto;
    padding: 50px 16px;
    flex-direction: column;
}


/** 
**  Idea cards 
**/

.ideas-list {
    flex: 1;
}
.idea-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    padding:20px;
    margin-bottom:20px;
}

.idea-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.idea-card-link {
    display: block;
    height: 100%;
    font-family: var(--font-primary);
    text-decoration: none;
    color: inherit;
}
.idea-card-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: column;
}
.idea-content {
    flex: 1;
    min-width: 0;
}

.idea-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--text-primary);
    margin-bottom: 8px;
}
.idea-meta {
    margin-bottom: 8px;
}

.min-investment {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
}
.idea-summary {
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.idea-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.term {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}
.term.category {
    background: var(--accent-soft);
    color: var(--accent-primary);
    border-color: transparent;
}
.idea-thumbnail {
   width: 100%;
    flex-shrink: 0;
}

.idea-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
/* End Cards */
/*
*** Country Data Selector
*/
.country-selector {
  position: relative;
  font-family: var(--font-primary);
}

.country-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.country-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.country-toggle svg {
  margin-left: 0.25rem;
  transition: transform 0.15s ease;
}

.country-selector.open .country-toggle svg {
  transform: rotate(180deg);
}

.country-flag {
  font-size: 1.1em;
  line-height: 1;
}

.country-code {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  padding: 0.25rem 0;
  margin: 0;
  list-style: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.country-selector.open .country-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.country-dropdown li {
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.country-dropdown li:hover {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.country-dropdown li.active {
  background: var(--accent-primary);
  color: #fff;
}

.country-dropdown li + li {
  border-top: 1px solid var(--border-light);
}

/*
** Media Queries
**/

@media (min-width: 768px) {
    .primary-navigation {
      display: inline-block!important;
    }

    .menu-toggle {
      display: none;
    }
     .main-container {
        flex-direction: row;
    }
     .idea-card-inner {
        flex-direction: row;
    }
     .idea-thumbnail {
       width: 220px;
    }
}

.country-selector .country-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.country-selector .country-flag svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.country-selector .desktop-only {
    display: inline;
}

.country-selector .mobile-only {
    display: none;
}

.country-selector .dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.country-selector.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile view */
@media (max-width: 768px) {
    .country-selector .desktop-only {
        display: none;
    }
    .country-selector .mobile-only {
        display: inline;
    }
    .country-selector .country-toggle {
        font-size: 14px;
        gap: 6px;
    }
    .country-selector .country-flag svg {
        width: 18px;
        height: 18px;
    }
    .country-dropdown{
      min-width: 100px;
    }
    .desktop-actions {
    display: none;
  }
}