/* Use Cases Detail Page Styles */
/* This stylesheet contains all the styles for the use case detail page */

/* Base styles and color variables */
:root {
  --color-primary: #3b82f6;
  --color-primary-blue: #2b7fff;
  --color-text-light: #ffffff;
  --color-text-dark: #0f172b;
  --color-text-muted: #d3d3d3;
  --color-text-darker: #6a7282;
  --color-bg-dark-1: #0d1132;
  --color-bg-dark-2: #0a0e27;
  --color-border-dark: #364153;
  --font-family-inter: 'Inter', sans-serif;
  --font-family-jakarta: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-jakarta);
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 100%);
  color: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header sticky positioning */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2147483640;
  background: linear-gradient(180deg, rgba(15, 23, 43, 0.95) 0%, rgba(15, 23, 43, 0.8) 100%);
  transition: all 0.3s ease;
}

/* Banner styles */
.banner-section {
  padding: 12px 24px;
  animation: fadeInDown 0.5s ease-out;
}
.banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background-color: var(--color-text-light);
  border-radius: 20px;
  padding: 8px 24px;
  max-width: 1392px;
  margin: 0 auto;
  position: relative;
}
.banner-text {
  margin: 0;
  color: #0f172b;
  font-family: var(--font-family-inter);
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
}
.banner-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #2b7fff;
  color: var(--color-text-light);
  font-family: var(--font-family-inter);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.3s;
}
.banner-button:hover {
  background-color: #1a6efd;
}
.banner-arrow {
  width: 9px;
  height: 7.5px;
}
.banner-close-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* Header styles */
.site-header {
  background-color: rgba(15, 23, 43, 0.5);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
#header .header-container {
  display: grid !important;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 clamp(24px, 3vw, 48px) !important;
}
#header .logo {
  justify-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: 1 !important;
}
#header .logo img {
  height: clamp(28px, 2.5vw, 36px) !important;
  width: auto !important;
  display: block !important;
}
#header .main-nav {
  justify-self: center !important;
  grid-column: 2 !important;
}
#header .main-nav ul {
  display: flex !important;
  align-items: center !important;
  gap: clamp(20px, 2vw, 32px) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#header .main-nav a {
  color: #d3d3d3 !important;
  font-size: clamp(13px, 1.2vw, 15px) !important;
  font-weight: 500 !important;
  transition: color 0.3s !important;
  white-space: nowrap !important;
}
#header .main-nav a:hover {
  color: var(--color-text-light) !important;
}
#header .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: clamp(8px, 1vw, 12px) !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-self: end !important;
  grid-column: 3 !important;
}
@media (max-width: 1024px) {
  #header .header-actions {
    display: none !important;
  }
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 1vw, 12px) clamp(16px, 1.5vw, 24px);
  border-radius: 999px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  line-height: 24px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-link {
  background-color: transparent;
  color: var(--color-text-light);
}
.btn-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.btn-primary {
  background-color: var(--color-primary-blue);
  color: var(--color-text-light);
}
.btn-primary:hover {
  background-color: #2573df;
}
/* Mobile Navigation Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: 0;
  width: 280px;
  max-width: 90vw;
  background: rgba(15, 23, 43, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  padding: 20px;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.active {
  display: block;
  transform: translateX(0);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu-links a {
  color: #d3d3d3;
  font-size: 16px;
  font-weight: 500;
  padding: 10px;
  transition: all 0.3s;
  border-radius: 8px;
}
.mobile-menu-links a:hover {
  color: #fff;
  background: rgba(43, 127, 255, 0.1);
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  .header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 24px;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-light);
    transition: all 0.3s;
  }
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  .mobile-menu {
    top: 65px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 16px;
    right: 0;
    left: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .mobile-menu-links a {
    font-size: 15px;
    padding: 12px;
  }
  .mobile-menu-actions .btn {
    font-size: 15px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }
  .mobile-menu {
    top: 60px;
    padding: 12px;
  }
  .mobile-menu-links {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  .mobile-menu-links a {
    font-size: 14px;
    padding: 10px;
  }
  .mobile-menu-actions {
    gap: 10px;
  }
  .mobile-menu-actions .btn {
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
  }
}

/* Detail page specific styles */
.use-case-detail {
  padding-top: 38px;
  padding-bottom: 48px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  color: #2b7fff;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 32px;
  transition: all 0.3s;
}
.back-link:hover {
  color: #51a2ff;
  transform: translateX(-3px);
}
.back-link span {
  display: inline-block;
}
.meta-header {
  margin-bottom: 56px;
}
.meta-header__subtitle {
  margin: 0 0 24px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-light);
}
.meta-header__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.complexity-badge {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid;
}
.complexity-badge.tag-basic {
  background-color: rgba(0, 201, 80, 0.1);
  border-color: rgba(0, 201, 80, 0.3);
  color: #05df72;
}
.complexity-badge.tag-basic-plus {
  background-color: rgba(0, 187, 167, 0.1);
  border-color: rgba(0, 187, 167, 0.3);
  color: #00d5be;
}
.complexity-badge.tag-intermediate {
  background-color: rgba(43, 127, 255, 0.1);
  border-color: rgba(43, 127, 255, 0.3);
  color: #51a2ff;
}
.complexity-badge.tag-intermediate-plus {
  background-color: rgba(173, 70, 255, 0.1);
  border-color: rgba(173, 70, 255, 0.3);
  color: #c27aff;
}
.last-updated {
  color: #6a7282;
  font-size: 14px;
  line-height: 20px;
}
.article-content h1 {
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  margin: 0 0 76px 0;
  color: var(--color-text-light);
}
.article-content h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  margin: 40px 0 20px 0;
  color: var(--color-text-light);
}
.article-content h3 {
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  margin: 32px 0 16px 0;
  color: var(--color-text-light);
}
.article-content section {
  margin-bottom: 40px;
}
.article-content p, .article-content li {
  color: #d1d5dc;
  font-size: 16px;
  line-height: 26px;
}
.article-content p {
  margin: 0 0 16px 0;
}
.article-content ul, .article-content ol {
  padding-left: 22px;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-content li::marker {
  color: #d1d5dc;
}
.article-content pre {
  background-color: #1e1e1e;
  border: 1px solid #364153;
  border-radius: 10px;
  padding: 24px;
  overflow-x: auto;
  margin: 16px 0;
}
.article-content code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 13px;
  line-height: 19.5px;
  color: #d4d4d4;
}
.article-content pre code {
  white-space: pre;
}
.article-content strong {
  font-weight: 700;
  color: var(--color-text-light);
}
.bottom-nav-link {
  border-top: 1px solid #364153;
  padding-top: 33px;
  margin-top: 64px;
}
.container-md {
  max-width: 896px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  .container-md {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .container-md {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Footer Styles */
.site-footer-main {
  background: linear-gradient(180deg, rgba(16, 24, 44, 0.3) 0%, #10182c 100%);
  padding: 48px 0 20px;
  width: 100%;
}
.site-footer-main .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 410px;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-description {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0;
}
.footer-description strong {
  font-weight: 800;
}
.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}
.subscribe-title {
  font-size: 14px;
  font-weight: 500;
  color: #afbcd5;
  margin: 0;
}
.subscribe-form {
  display: flex;
  gap: 8px;
}
.subscribe-form input {
  flex-grow: 1;
  background-color: #f5f5f5;
  border: 0.5px solid #e5e5e5;
  border-radius: 12px;
  padding: 8px 12px;
  font-family: var(--font-family-jakarta);
  font-size: 16px;
  color: var(--color-text-dark);
}
.subscribe-form input::placeholder {
  color: rgba(16, 24, 44, 0.5);
}
.btn-beta {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn-beta:hover {
  background-color: #2573df;
  color: var(--color-text-light);
}
.subscribe-terms {
  font-size: 12px;
  color: #afbcd5;
  margin: -6px 0 0 0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 14px;
  color: #afbcd5;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: var(--color-text-light);
}
.footer-bottom {
  border-top: 1px solid #eaeaea;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.copyright, .footer-legal a {
  font-size: 12px;
  color: #7c7c7c;
  margin: 0;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-legal .separator {
  width: 2px;
  height: 2px;
  background-color: #7c7c7c;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }
  .site-header .header-container {
    padding: 0 !important;
  }
  .site-header .logo img {
    height: 28px !important;
  }
  .site-header .main-nav {
    display: none !important;
  }
  .site-header .header-actions {
    gap: 8px;
  }
  .site-header .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
  .use-case-detail-section {
    padding: 32px 20px 60px;
  }
  .use-case-detail {
    padding-top: 24px;
    padding-bottom: 32px;
  }
  .back-link {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .meta-header {
    margin-bottom: 32px;
    flex-direction: column;
    gap: 16px;
  }
  .use-case-title {
    font-size: 28px;
    line-height: 1.2;
  }
  .complexity-badge {
    font-size: 13px;
    padding: 6px 14px;
  }
  .last-updated {
    font-size: 13px;
  }
  .article-content {
    font-size: 15px;
    line-height: 1.6;
  }
  .article-content h1 {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
    margin-top: 40px;
  }
  .article-content h2 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
    margin-top: 32px;
  }
  .article-content h3 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 12px;
    margin-top: 24px;
  }
  .article-content p {
    margin-bottom: 16px;
  }
  .article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
  }
  .article-content li {
    margin-bottom: 8px;
  }
  .article-content pre {
    padding: 16px;
    font-size: 13px;
    overflow-x: auto;
  }
  .article-content code {
    font-size: 13px;
  }
  .article-content blockquote {
    padding: 12px 16px;
    margin: 16px 0;
  }
  .article-content table {
    font-size: 14px;
  }
  .bottom-nav-link {
    font-size: 14px;
    padding: 12px 16px;
  }
  .reading-progress {
    height: 3px;
  }
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .footer-nav {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 16px;
  }
  .site-header .logo img {
    height: 24px !important;
  }
  .site-header .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .site-header .btn-login, .site-header .btn-primary {
    width: 100%;
    font-size: 13px;
    padding: 8px 12px;
  }
  .use-case-detail-section {
    padding: 24px 16px 48px;
  }
  .back-link {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .use-case-title {
    font-size: 24px;
  }
  .complexity-badge {
    font-size: 12px;
    padding: 5px 12px;
  }
  .last-updated {
    font-size: 12px;
  }
  .article-content {
    font-size: 14px;
  }
  .article-content h1 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 20px;
    margin-top: 32px;
  }
  .article-content h2 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 12px;
    margin-top: 24px;
  }
  .article-content h3 {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 10px;
    margin-top: 20px;
  }
  .article-content pre {
    padding: 12px;
    font-size: 12px;
    border-radius: 6px;
  }
  .article-content code {
    font-size: 12px;
  }
  .article-content blockquote {
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 14px;
  }
  .bottom-nav-link {
    font-size: 13px;
    padding: 10px 14px;
  }
  .site-footer-main {
    padding: 32px 16px 16px;
  }
  .footer-logo img {
    width: 120px;
  }
  .footer-nav h3 {
    font-size: 14px;
  }
  .footer-nav a {
    font-size: 13px;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }
  .newsletter-form input {
    font-size: 14px;
  }
  .btn-beta {
    width: 100%;
    font-size: 14px;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Initial hidden state for animated elements */
.back-link,
.meta-header,
.article-content,
.bottom-nav-link {
  opacity: 0;
}

/* Revealed state */
.revealed {
  opacity: 1 !important;
}

/* Staggered animation delays */
.back-link.revealed {
  animation: slideInLeft 0.6s ease-out forwards;
}

.meta-header.revealed {
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.article-content.revealed {
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.bottom-nav-link.revealed {
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Animate article content children on scroll */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content p,
.article-content ul,
.article-content ol,
.article-content pre,
.article-content blockquote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.article-content.revealed h1,
.article-content.revealed h2,
.article-content.revealed h3,
.article-content.revealed p,
.article-content.revealed ul,
.article-content.revealed ol,
.article-content.revealed pre,
.article-content.revealed blockquote {
  opacity: 1;
  transform: translateY(0);
}

/* Complexity badge animation */
.complexity-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.complexity-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 127, 255, 0.3);
}

/* Enhanced transitions */
.site-header {
  animation: fadeInDown 0.6s ease-out;
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-footer-main {
  animation: fadeInUp 0.6s ease-out;
}

/* Progress bar styles */
@keyframes slideInRight {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

