/* Ratkaisija Core – shared styles */
* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

body {
  background: #0f172a;
  color: white;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header / Brand */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.85rem;
  color: #64748b;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Primary CTA pill */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Language toggle (kept for compatibility; hidden in FI-only pages) */
.lang-toggle {
  display: flex;
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 0.25rem;
  border: 1px solid #334155;
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #334155;
  color: white;
}

.lang-btn:hover:not(.active) {
  color: #94a3b8;
}

/* FI-only UI */
#langToggle { display: none !important; }


/* Clickable brand + favicon logo */
.brand-link{
  text-decoration: none;
  color: inherit;
}
.brand-link:hover{ opacity: 0.95; }

.brand-logo-img{
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Minimal "back to search" link */
.search-cta{
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(30,41,59,0.35);
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.search-cta:hover{
  opacity: 0.9;
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.35);
}

/* FI-only: hide language toggle if present */
.lang-toggle{ display:none !important; }

/* Related apps (used on app pages) */
.related-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 650;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.related-link:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* Ratkaisija logo topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}

.topbar-logo{
  display: inline-flex;
  align-items: center;
}

.topbar-logo img{
  height: 26px;
  width: auto;
  display: block;
}
