/* OSSTube Static Pages Stylesheet */
/* Matches the React component styling */

:root {
  --sidebar-bg: #E98C3C;
  --sidebar-item: #3B2A22;
  --sidebar-item-hover: #4A352B;
  --sidebar-accent: #FF7A45;
  --primary-coral: #FF6B6B;
  --primary-teal: #4ECDC4;
  --text-dark: #333;
  --text-secondary: #666;
  --bg-light: #f8f9fa;
  --gradient-coral-teal: linear-gradient(45deg, #FF6B6B, #4ECDC4);
  --gradient-orange: linear-gradient(45deg, #FF6B35 30%, #F7931E 90%);
}

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

/* Wrapper Layout */
#wrapper {
  display: flex;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

#content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 200px;
  min-height: calc(100vh - 60px);
}

.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
}

/* ===================== NAVBAR ===================== */
.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0 1.5rem;
  height: 60px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  height: 60px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

.blogs-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blogs-link:hover {
  background: #e8e8e8;
}

.blogs-link svg {
  width: 20px;
  height: 20px;
}

/* Navbar Menu */
.navbar-menu-desktop {
  display: flex;
  gap: 0.5rem;
  margin-left: 24px;
}

.navbar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--sidebar-item);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-menu-item:hover {
  background: #FFF5EE;
  color: var(--sidebar-bg);
}

.navbar-menu-item.active {
  background: var(--sidebar-bg);
  color: white;
}

.navbar-menu-item svg {
  width: 20px;
  height: 20px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 25px;
  border: 2px solid var(--primary-coral);
  background: transparent;
  color: var(--primary-coral);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(255, 107, 107, 0.08);
  transform: translateY(-1px);
}

.get-started-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background: var(--gradient-coral-teal);
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.get-started-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===================== SIDEBAR ===================== */
/* Exact match to React Sidepanel component styling */
.sidebar {
  --sp-bg: #E98C3C;
  /* brand orange */
  --sp-item: #3B2A22;
  /* dark brown tile */
  --sp-item-hover: #4A352B;
  /* hover brown */
  --sp-accent: #FF7A45;
  /* active accent */
  --sp-text: #FFFFFF;
  /* white text/icons */

  position: fixed;
  left: 0;
  top: 60px;
  width: 200px;
  height: calc(100vh - 60px);
  background: var(--sp-bg) !important;
  padding: 16px 12px;
  border-right: none;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  display: block;
  margin-bottom: 8px;
}

.sidebar-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  width: auto;
  max-width: 175px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--sp-item) !important;
  color: var(--sp-text) !important;
  text-decoration: none !important;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover {
  background: var(--sp-item-hover) !important;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-nav .nav-link:focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 2px;
}

.sidebar-nav .nav-link.active {
  background: var(--sp-item-hover) !important;
}

.sidebar-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 9999px;
  background: var(--sp-accent);
}

.sidebar-nav .nav-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: var(--sp-text);
  opacity: 0.9;
  flex-shrink: 0;
}

.sidebar-nav .nav-link span,
.sidebar-nav .nav-link .nav-text {
  color: var(--sp-text) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: inline-block;
  white-space: nowrap;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid #e0e0e0;
  padding: 40px 0 30px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.footer-section a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--text-dark);
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.875rem;
}

.newsletter-btn {
  padding: 10px 16px;
  background: var(--primary-coral);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-btn:hover {
  background: #FF5252;
}

.footer-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===================== CONTENT STYLES ===================== */
.page-content {
  padding: 20px 0;
}

.page-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.page-content h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.page-content h6 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-dark);
  line-height: 1.8;
}

.page-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.divider {
  height: 1px;
  background: #e0e0e0;
  margin: 24px 0;
}

/* ===================== FEATURE CARDS ===================== */
.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-badge {
  display: inline-block;
  background: var(--primary-coral);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.features-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-card {
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  filter: blur(60px);
}

.feature-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 16px;
  font-size: 2.5rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 8px;
}

.feature-card .subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #424242;
  margin-bottom: 16px;
}

.feature-card .description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.feature-benefits h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 12px;
}

.feature-benefits ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.feature-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: #555;
  line-height: 1.7;
}

.feature-benefits li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-emotion {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 107, 53, 0.2);
  font-style: italic;
  color: #424242;
  line-height: 1.8;
}

.feature-number {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #FF6B35;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  margin-top: 48px;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  padding: 14px 32px;
  border-radius: 12px;
  background: white;
  color: #764ba2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.cta-btn-primary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.cta-btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .sidebar {
    width: 65px;
    padding: 16px 8px;
  }

  .sidebar-nav .nav-link span {
    display: none;
  }

  .sidebar-nav .nav-link {
    justify-content: center;
    padding: 12px 8px;
  }

  #content-wrapper {
    margin-left: 65px;
  }

  .navbar-menu-desktop {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  #content-wrapper {
    margin-left: 0;
  }

  .blogs-link span {
    display: none;
  }

  .login-btn span,
  .get-started-btn span {
    display: none;
  }

  .login-btn svg,
  .get-started-btn svg {
    margin: 0;
  }

  .features-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 24px;
  }

  .cta-section {
    padding: 32px 24px;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* SVG Icon Styles */
.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}