/* ==========================================================================
   TripShare Theme Styles
   Converted from the Next.js website-next Tailwind CSS design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --background: #ffffff;
  --foreground: #111827;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;

  --accent-teal: #14b8a6;
  --accent-teal-light: #f0fdfa;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fffbeb;
  --accent-rose: #f43f5e;
  --accent-rose-light: #fff1f2;
  --accent-lime: #84cc16;
  --accent-lime-light: #f7fee7;
  --accent-sky: #0ea5e9;
  --accent-sky-light: #f0f9ff;
  --accent-violet: #8b5cf6;
  --accent-violet-light: #f5f3ff;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select { font: inherit; }

a { color: inherit; text-decoration: none; }

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

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.ts-site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ts-main { flex: 1; }

.ts-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ts-container--narrow { max-width: 48rem; }
.ts-container--medium { max-width: 56rem; }

@media (min-width: 640px) {
  .ts-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ts-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.ts-section { padding-top: 4rem; padding-bottom: 4rem; }
.ts-section--small { padding-top: 3rem; padding-bottom: 3rem; }
.ts-text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.ts-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--gray-900);
}

.ts-h2 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--gray-900);
}

.ts-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

.ts-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.ts-text-base { font-size: 1rem; line-height: 1.5rem; }
.ts-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.ts-text-muted { color: var(--gray-600); }
.ts-text-primary { color: var(--primary); }

@media (min-width: 640px) {
  .ts-h1 { font-size: 3.75rem; }
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.ts-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.ts-badge--primary { background: var(--primary-light); color: var(--primary); }
.ts-badge--white { background: #ffffff; color: var(--primary); box-shadow: var(--shadow-sm); }
.ts-badge--rose { background: var(--accent-rose-light); color: var(--accent-rose); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.ts-btn:hover { transform: translateY(-1px); }
.ts-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.ts-btn--primary { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.ts-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.ts-btn--secondary { background: var(--primary-light); color: var(--primary-dark); }
.ts-btn--secondary:hover { background: #e0e7ff; }

.ts-btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.ts-btn--outline:hover { background: var(--primary-light); }

.ts-btn--white { background: #ffffff; color: var(--gray-900); }
.ts-btn--white:hover { background: var(--gray-100); }

.ts-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.ts-btn--md { padding: 0.75rem 1.5rem; font-size: 1rem; }
.ts-btn--lg { padding: 1rem 2rem; font-size: 1.125rem; }

.ts-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ts-btn-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
.ts-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.ts-link:hover { color: var(--primary-dark); text-decoration: underline; }

.ts-link--white {
  color: var(--gray-400);
  transition: color 150ms ease;
}

.ts-link--white:hover { color: #ffffff; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.ts-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.ts-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.ts-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-logo__img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
}

.ts-logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.ts-logo__text--light { color: #ffffff; }

.ts-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.ts-nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.ts-nav__link:hover { color: var(--primary); }

.ts-navbar__cta { display: none; align-items: center; gap: 1rem; }

.ts-navbar__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
}

.ts-navbar__toggle:hover { background: var(--gray-100); color: var(--primary); }
.ts-navbar__toggle svg { width: 1.5rem; height: 1.5rem; }

.ts-mobile-menu {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

.ts-mobile-menu.is-open { display: block; }

.ts-mobile-menu__inner { padding: 1rem; }

.ts-mobile-menu__link {
  display: block;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

.ts-mobile-menu__link:hover { background: var(--gray-50); color: var(--primary); }

@media (min-width: 768px) {
  .ts-nav, .ts-navbar__cta { display: flex; }
  .ts-navbar__toggle, .ts-mobile-menu { display: none !important; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ts-footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-400);
}

.ts-footer__grid {
  display: grid;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .ts-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ts-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; }
}

.ts-footer__brand p {
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.ts-footer__brand a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-400);
}

.ts-footer__brand a:hover { color: #ffffff; }

.ts-footer__heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.ts-footer__list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ts-footer__list a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color 150ms ease;
}

.ts-footer__list a:hover { color: #ffffff; }

.ts-footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ts-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--gray-800);
  color: var(--gray-400);
  transition: background-color 150ms ease, color 150ms ease;
}

.ts-footer__social:hover { background: var(--primary); color: #ffffff; }
.ts-footer__social svg { width: 1.25rem; height: 1.25rem; }

.ts-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
}

@media (min-width: 640px) {
  .ts-footer__bottom { flex-direction: row; text-align: left; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.ts-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 50%, var(--accent-teal-light) 100%);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .ts-hero { padding-top: 7rem; padding-bottom: 7rem; }
}

.ts-hero__content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ts-hero__title { margin-top: 1.5rem; }
.ts-hero__title span { color: var(--primary); }

.ts-hero__lead {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--gray-600);
}

@media (min-width: 640px) {
  .ts-hero__lead { font-size: 1.25rem; }
}

.ts-hero__actions { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */
.ts-feature-grid { display: grid; gap: 2rem; margin-top: 3rem; }

@media (min-width: 640px) {
  .ts-feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ts-feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .ts-feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.ts-feature-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ts-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ts-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 0.75rem;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.ts-feature-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.ts-feature-card__text { margin-top: 0.5rem; color: var(--gray-600); }

.ts-bg-rose-light { background: var(--accent-rose-light); }
.ts-bg-amber-light { background: var(--accent-amber-light); }
.ts-bg-teal-light { background: var(--accent-teal-light); }
.ts-bg-lime-light { background: var(--accent-lime-light); }
.ts-bg-sky-light { background: var(--accent-sky-light); }
.ts-bg-violet-light { background: var(--accent-violet-light); }
.ts-bg-primary-light { background: var(--primary-light); }

.ts-text-rose { color: var(--accent-rose); }
.ts-text-amber { color: var(--accent-amber); }
.ts-text-teal { color: var(--accent-teal); }
.ts-text-lime { color: var(--accent-lime); }
.ts-text-sky { color: var(--accent-sky); }
.ts-text-violet { color: var(--accent-violet); }

/* --------------------------------------------------------------------------
   Vehicle tags
   -------------------------------------------------------------------------- */
.ts-vehicle-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.ts-vehicle-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 150ms ease;
}

.ts-vehicle-tag:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   CTA section
   -------------------------------------------------------------------------- */
.ts-cta {
  position: relative;
  overflow: hidden;
  background: var(--gray-900);
  color: #ffffff;
  text-align: center;
}

.ts-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, transparent 50%, rgba(20, 184, 166, 0.1) 100%);
  pointer-events: none;
}

.ts-cta__content { position: relative; z-index: 1; }
.ts-cta__title { color: #ffffff; }

.ts-cta__text {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-300);
}

.ts-cta__actions { margin-top: 2.5rem; }

.ts-btn--full { width: 100%; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.ts-blog-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .ts-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .ts-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.ts-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ts-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.ts-blog-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-100);
}

.ts-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 150ms ease;
}

.ts-blog-card:hover .ts-blog-card__image {
  transform: scale(1.03);
}

.ts-blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-teal-light) 100%);
}

.ts-blog-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.ts-blog-card__date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.ts-blog-card__title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.ts-blog-card__title a {
  color: var(--gray-900);
  text-decoration: none;
}

.ts-blog-card__title a:hover {
  color: var(--primary);
}

.ts-blog-card__excerpt {
  margin-top: 0.75rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Blog post (single)
   -------------------------------------------------------------------------- */
.ts-blog-post-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ts-blog-post-header__title {
  margin-top: 1rem;
}

.ts-blog-post__image {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ts-blog-post__image img {
  width: 100%;
  height: auto;
}

.ts-blog-post__content {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.ts-blog-post__content p {
  margin-top: 1.25rem;
}

.ts-blog-post__content h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.ts-blog-post__content img {
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

.ts-blog-post__footer {
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.ts-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ts-pagination a,
.ts-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  background: #ffffff;
  border: 1px solid var(--gray-200);
  text-decoration: none;
}

.ts-pagination a:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.ts-pagination .current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.ts-pagination .dots {
  border: none;
  background: transparent;
}

/* --------------------------------------------------------------------------
   Content pages
   -------------------------------------------------------------------------- */
.ts-page-header { text-align: center; margin-bottom: 3rem; }
.ts-page-header__title { margin-top: 1.5rem; }

.ts-page-header__subtitle {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-600);
}

.ts-content { color: var(--gray-600); }

.ts-content p {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.ts-content h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.ts-content ul, .ts-content ol {
  margin-top: 1rem;
  margin-left: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.ts-content li + li { margin-top: 0.5rem; }

.ts-content a { color: var(--primary); text-decoration: none; }
.ts-content a:hover { text-decoration: underline; }

.ts-meta-date { font-size: 0.875rem; color: var(--gray-500); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Contact cards
   -------------------------------------------------------------------------- */
.ts-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ts-contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 0.75rem;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ts-contact-card__title { font-size: 1.25rem; font-weight: 600; color: var(--gray-900); }
.ts-contact-card__text { margin-top: 0.5rem; color: var(--gray-600); }

.ts-contact-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.ts-404 {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.ts-404__code { font-size: 4.5rem; font-weight: 800; color: var(--primary); }
.ts-404__title { margin-top: 1rem; font-size: 1.875rem; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.ts-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ts-stack--loose > * + * { margin-top: 3rem; }
.ts-stack > * + * { margin-top: 1.5rem; }
