/*
Theme Name: TechVon Child Theme - Components Styles
Description: Component classes (Buttons, Cards, Forms, FAQ, TOC) for TechVon.
Version: 1.0
*/

/* Buttons */
.techvon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--techvon-radius-pill);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.techvon-btn-primary {
  background-color: var(--techvon-primary);
  color: var(--techvon-white) !important;
}

.techvon-btn-primary:hover {
  background-color: var(--techvon-primary-dark);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.techvon-btn-secondary {
  background-color: transparent;
  color: var(--techvon-primary) !important;
  border-color: var(--techvon-primary);
}

.techvon-btn-secondary:hover {
  background-color: rgba(79, 70, 229, 0.05);
}

/* Cards */
.techvon-card {
  background-color: var(--techvon-white);
  border-radius: var(--techvon-radius-card);
  box-shadow: var(--techvon-shadow-editorial);
  padding: 32px;
  border: 1px solid var(--techvon-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.techvon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 20px 40px rgba(15, 23, 42, 0.12);
}

/* Inputs and Forms */
.techvon-form-group {
  margin-bottom: 20px;
}

.techvon-form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  border-radius: var(--techvon-radius-sm);
  border: 1px solid var(--techvon-border);
  background-color: var(--techvon-white);
  transition: border-color 0.3s ease;
}

.techvon-form-control:focus {
  border-color: var(--techvon-primary);
  outline: none;
}

/* FAQ Accordion */
.techvon-faq-item {
  border-bottom: 1px solid var(--techvon-border);
  padding: 16px 0;
}

.techvon-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.techvon-faq-question::after {
  content: '+';
  font-size: 24px;
  transition: transform 0.3s ease;
}

.techvon-faq-item.active .techvon-faq-question::after {
  transform: rotate(45deg);
}

.techvon-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--techvon-muted);
  font-size: 16px;
}

.techvon-faq-item.active .techvon-faq-answer {
  max-height: 500px;
  margin-top: 12px;
}

/* Table of Contents (TOC) */
.techvon-toc {
  background-color: var(--techvon-white);
  border-radius: var(--techvon-radius-card);
  padding: 24px;
  border: 1px solid var(--techvon-border);
}

.techvon-toc-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 16px;
}

.techvon-toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.techvon-toc-item {
  margin-bottom: 8px;
}

.techvon-toc-link {
  color: var(--techvon-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.techvon-toc-link:hover, 
.techvon-toc-link.active {
  color: var(--techvon-primary);
}

/* =========================================================================
   ACCESSIBILITY SKIP LINK
   ========================================================================= */
.screen-reader-text.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--techvon-primary);
  color: #fff !important;
  padding: 12px 24px;
  z-index: 100002;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  text-decoration: none;
}

.screen-reader-text.skip-link:focus {
  top: 0;
  left: 24px;
}

/* =========================================================================
   GLOBAL SITE HEADER
   ========================================================================= */
.techvon-site-header {
  height: 72px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  position: sticky;
  top: 0;
  z-index: 999;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  transition: top 0.3s ease;
}

body.admin-bar .techvon-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .techvon-site-header {
    top: 46px;
  }
}

@media (max-width: 849px) {
  html {
    margin-top: 0 !important;
  }

  body.techvon-template-body,
  body.techvon-template-body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.techvon-template-body #wpadminbar {
    display: none !important;
  }

  body.techvon-template-body .techvon-site-header {
    top: 0 !important;
    margin-top: 0 !important;
  }

  .techvon-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(7, 18, 47, 0.08);
  }

  .techvon-header-container {
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center !important;
    justify-content: space-between;
  }

  .techvon-logo,
  .techvon-site-actions {
    display: flex;
    align-items: center !important;
  }

  .techvon-logo {
    gap: 10px;
    line-height: 1;
    text-decoration: none;
  }

  .techvon-logo .material-symbols-outlined {
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .techvon-logo span:last-child {
    line-height: 1;
  }

  .techvon-site-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .techvon-mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    background: rgba(53, 37, 205, 0.06);
    color: #07122f;
    opacity: 1;
    visibility: visible;
  }

  .techvon-mobile-toggle .material-symbols-outlined,
  .techvon-mobile-toggle .material-icons,
  .techvon-mobile-toggle svg {
    display: block !important;
    line-height: 1 !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(1px);
  }
}

.techvon-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--techvon-max-width);
  margin: 0 auto;
  padding: 0 var(--techvon-gutter);
}

/* Logo */
.techvon-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--techvon-primary) !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.techvon-logo:hover {
  opacity: 0.9;
}

.techvon-logo .material-symbols-outlined {
  font-size: 28px;
  color: var(--techvon-primary);
}

/* Nav links */
.techvon-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.techvon-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--techvon-muted) !important;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.techvon-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--techvon-primary), var(--techvon-cyan));
  transition: width 0.3s ease;
}

.techvon-nav-link:hover {
  color: var(--techvon-primary) !important;
}

.techvon-nav-link:hover::after {
  width: 100%;
}

/* Header Actions */
.techvon-site-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.techvon-site-search {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--techvon-muted, #475569);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  border-radius: 999px;
  transform: translateY(1px);
}

.techvon-site-search .material-symbols-outlined {
  display: block;
  width: 22px;
  height: 22px;
  font-family: "Material Symbols Outlined" !important;
  font-size: 22px;
  line-height: 22px;
  font-weight: normal;
  font-style: normal;
  text-align: center;
}

.techvon-site-search:hover {
  color: var(--techvon-primary, #4F46E5);
  background: rgba(79, 70, 229, 0.08);
}

.techvon-header-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
}

.techvon-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--techvon-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.techvon-mobile-toggle:hover {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--techvon-primary);
}

/* =========================================================================
   MOBILE MENU DRAWER
   ========================================================================= */
.techvon-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s;
}

.techvon-mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.techvon-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.techvon-mobile-menu.is-open .techvon-mobile-menu-backdrop {
  opacity: 1;
}

.techvon-mobile-menu-content {
  position: absolute;
  top: 0;
  right: -320px;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--techvon-white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}

.techvon-mobile-menu.is-open .techvon-mobile-menu-content {
  transform: translateX(-320px);
}

.techvon-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--techvon-border);
  padding-bottom: 16px;
}

.techvon-mobile-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--techvon-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.techvon-mobile-close:hover {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--techvon-primary);
}

.techvon-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.techvon-mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--techvon-text) !important;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: var(--techvon-radius-sm);
  transition: all 0.2s;
}

.techvon-mobile-nav-link:hover {
  background-color: rgba(79, 70, 229, 0.05);
  color: var(--techvon-primary) !important;
}

.techvon-mobile-menu-footer {
  margin-top: auto;
}

/* =========================================================================
   SEARCH OVERLAY / PANEL
   ========================================================================= */
.techvon-header-search {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  z-index: 1000;
  padding-bottom: 24px;
}

.techvon-header-search.is-open {
  display: block;
}

.techvon-header-search-form {
  width: min(100% - 32px, 720px);
  height: 64px;
  margin: 0 auto;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(14px);
}

.techvon-header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--techvon-text, #0F172A) !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 48px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

.techvon-header-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.techvon-header-search-input::placeholder {
  color: var(--techvon-muted, #64748B);
  opacity: 0.9;
}

.techvon-header-search-submit {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px;
  background: var(--techvon-primary, #4F46E5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
  transition: all 0.2s ease;
}

.techvon-header-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.32);
}

.techvon-header-search-submit .material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 640px) {
  .techvon-header-search-form {
    width: calc(100% - 24px);
    height: 60px;
    transform: translateY(10px);
  }

  .techvon-header-search-input {
    height: 44px;
    line-height: 44px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
  }

  .techvon-header-search-submit {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.techvon-search-close:hover {
  background-color: rgba(15, 23, 42, 0.05);
  color: var(--techvon-primary);
}

/* =========================================================================
   GLOBAL SITE FOOTER
   ========================================================================= */
.techvon-site-footer {
  background-color: var(--techvon-dark);
  color: #ffffff;
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.techvon-footer-container {
  max-width: var(--techvon-max-width);
  margin: 0 auto;
  padding: 0 var(--techvon-gutter);
  width: 100%;
}

.techvon-footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.techvon-footer-col {
  grid-column: span 12;
}

.techvon-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.techvon-footer-logo .material-symbols-outlined {
  font-size: 32px;
  color: var(--techvon-cyan);
}

.techvon-footer-description {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px 0;
  max-width: 280px;
}

.techvon-footer-socials {
  display: flex;
  gap: 12px;
}

.techvon-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.2s;
}

.techvon-social-link:hover {
  background-color: var(--techvon-primary);
  transform: translateY(-2px);
}

.techvon-footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin: 0 0 24px 0;
}

.techvon-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.techvon-footer-menu a {
  color: #94A3B8 !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.techvon-footer-menu a:hover {
  color: #ffffff !important;
}

.techvon-footer-newsletter-text {
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.techvon-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.techvon-footer-newsletter-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--techvon-radius-pill);
  padding: 14px 20px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s;
}

.techvon-footer-newsletter-input:focus {
  border-color: var(--techvon-primary);
}

.techvon-footer-newsletter-btn {
  background: var(--techvon-primary);
  color: #ffffff !important;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--techvon-radius-pill);
  cursor: pointer;
  transition: background-color 0.2s;
}

.techvon-footer-newsletter-btn:hover {
  background-color: var(--techvon-primary-dark);
}

/* Bottom area */
.techvon-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.techvon-footer-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.techvon-copyright {
  color: #64748B;
  font-size: 11px;
  margin: 0;
}

.techvon-disclosure {
  color: #64748B;
  font-size: 11px;
  font-style: italic;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* =========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================= */
@media screen and (min-width: 480px) {
  .techvon-footer-col {
    grid-column: span 6;
  }
  .techvon-footer-col-brand,
  .techvon-footer-col-newsletter {
    grid-column: span 12;
  }
}

@media screen and (min-width: 768px) {
  .techvon-footer-col {
    grid-column: span 2;
  }
  .techvon-footer-col-brand {
    grid-column: span 4;
  }
  .techvon-footer-col-newsletter {
    grid-column: span 4;
  }
  .techvon-footer-bottom-grid {
    flex-direction: row;
    justify-content: space-between;
  }
  .techvon-disclosure {
    text-align: right;
  }
}

@media screen and (max-width: 1024px) {
  .techvon-nav {
    display: none;
  }
  .techvon-mobile-toggle {
    display: flex;
  }
  .techvon-header-cta {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  .techvon-site-search {
    display: none;
  }
}

/* ====================================================
   MOBILE MENU DRAWER OVERRIDES
   ==================================================== */
@media (max-width: 849px) {
  body.techvon-menu-open {
    overflow: hidden !important;
  }

  body.techvon-menu-open .techvon-header-container .techvon-mobile-toggle {
    opacity: 0;
    pointer-events: none;
  }

  #techvon-mobile-menu.techvon-mobile-menu {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    z-index: 100000 !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  #techvon-mobile-menu.techvon-mobile-menu.is-open,
  body.techvon-menu-open #techvon-mobile-menu.techvon-mobile-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  #techvon-mobile-menu .techvon-mobile-menu-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.22) !important;
    opacity: 1 !important;
  }

  #techvon-mobile-menu .techvon-mobile-menu-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    background: #ffffff !important;
    color: #07122f !important;
    opacity: 1 !important;
    display: flex !important;
    flex-direction: column;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  }

  #techvon-mobile-menu .techvon-mobile-menu-header {
    min-height: 72px;
    padding: 0 20px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(7, 18, 47, 0.08);
    background: #ffffff !important;
  }

  #techvon-mobile-menu .techvon-mobile-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(53, 37, 205, 0.06);
    color: #07122f !important;
    opacity: 1 !important;
    visibility: visible !important;
    line-height: 1;
  }

  #techvon-mobile-menu .techvon-mobile-close .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
  }

  #techvon-mobile-menu .techvon-mobile-nav {
    padding: 28px 24px 16px;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  #techvon-mobile-menu .techvon-mobile-nav-link {
    min-height: 54px;
    padding: 13px 18px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #07122f !important;
    font-weight: 850;
    font-size: 17px;
    text-decoration: none;
    opacity: 1 !important;
    visibility: visible !important;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  }

  #techvon-mobile-menu .techvon-mobile-nav-link:hover,
  #techvon-mobile-menu .techvon-mobile-nav-link:active {
    background: rgba(53, 37, 205, 0.08);
    color: #3525cd !important;
    transform: translateY(-1px);
  }

  #techvon-mobile-menu .techvon-mobile-menu-footer {
    margin-top: auto;
    padding: 24px;
  }

  #techvon-mobile-menu .techvon-mobile-menu-footer .techvon-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 16px 40px rgba(53, 37, 205, 0.25);
  }

  body.techvon-menu-open .techvon-site-header {
    z-index: 100001 !important;
  }
}


