/* Extended Styles for 777rt Indonesia - Optimized for Core Web Vitals */

/* ==========================================================================
   Typography & Content Enhancements
   ========================================================================== */

/* Better readability for long-form content */
article p,
article li {
  max-width: 75ch;
  text-wrap: pretty; /* CSS Text Level 4 for better line breaks */
}

/* Optimized heading hierarchy */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance; /* Prevent orphans in headings */
  scroll-margin-top: 6rem; /* Account for sticky header */
}

/* Highlight important inline content */
mark {
  background: linear-gradient(120deg, rgba(255, 237, 74, 0.3) 0%, rgba(255, 237, 74, 0.5) 100%);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  color: inherit;
}

/* Code formatting */
code:not([class]) {
  background: var(--color-bg-alt);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

pre code {
  display: block;
  padding: 1.5rem;
  overflow-x: auto;
  line-height: 1.6;
  tab-size: 2;
}

/* ==========================================================================
   Enhanced Interactive Elements
   ========================================================================== */

/* Better focus indicators for accessibility */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link visibility on focus */
.paragraph-east-804c:focus-visible {
  outline: 3px solid white;
  outline-offset: -3px;
}

/* Enhanced link styles */
a:not(.accordion-active-b1e4):not(.tiny-f44e):not(.notice-1a26):not(.chip_ec8b) {
  color: var(--color-primary);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:not(.accordion-active-b1e4):not(.tiny-f44e):not(.notice-1a26):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Progressive Enhancement: Details/Summary
   ========================================================================== */

details {
  transition: all 0.3s ease;
}

details[open] {
  box-shadow: var(--shadow-md);
}

details[open] summary svg {
  transform: rotate(180deg);
}

summary:hover {
  background: var(--color-bg-alt);
}

summary::marker {
  content: '';
}

/* ==========================================================================
   Table Enhancements
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}

thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--color-border);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s;
}

tbody tr:hover {
  background: var(--color-bg-alt);
}

tbody td {
  padding: 0.875rem 1rem;
}

/* Responsive tables on mobile */
@media (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Blockquote & Alert Boxes
   ========================================================================== */

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Alert Boxes */
.fn-alert-35eb {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
  display: flex;
  gap: 1rem;
  align-items: start;
}

.next-0c30 {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.texture-stone-3545 {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--color-success);
  color: var(--color-text);
}

.medium_eda8 {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--color-warning);
  color: var(--color-text);
}

.accordion_white_dd91 {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  color: var(--color-text);
}

/* ==========================================================================
   Badge & Tag Components
   ========================================================================== */

.header_hard_1e7e {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.notification_abb2 {
  background: var(--color-primary);
  color: white;
}

.frame-wood-0bee {
  background: var(--color-success);
  color: white;
}

.up_c232 {
  background: var(--color-warning);
  color: white;
}

.container-out-62c0 {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
}

/* ==========================================================================
   Loading & Skeleton States
   ========================================================================== */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.fluid-6fd5 {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt) 0%,
    var(--color-border) 50%,
    var(--color-bg-alt) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius);
  height: 1em;
}

/* Loading spinner */
.layout_east_1f5a {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Image Optimization & Lazy Loading
   ========================================================================== */

/* Prevent CLS (Cumulative Layout Shift) */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lazy loading blur-up effect */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].fn-loaded-35eb {
  opacity: 1;
}

/* Aspect ratio boxes to prevent CLS */
.mini_d99c {
  position: relative;
  width: 100%;
  height: 0;
}

.wide_8bf7 {
  padding-bottom: 56.25%; /* 16:9 */
}

.new-b9f7 {
  padding-bottom: 75%; /* 4:3 */
}

.status_e7d8 {
  padding-bottom: 100%; /* 1:1 */
}

.mini_d99c > img,
.mini_d99c > video,
.mini_d99c > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .highlight_motion_e1ee,
  .media_d6ad,
  .accordion-active-b1e4,
  .frame_pro_9535,
  footer {
    display: none;
  }
}

/* ==========================================================================
   Dark Mode Specific Enhancements
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Improve contrast for better readability */
  body {
    font-weight: 400;
  }

  /* Reduce brightness of white elements */
  .tiny-f44e,
  details {
    background: rgba(30, 41, 59, 0.95);
  }

  /* Softer shadows in dark mode */
  .tiny-f44e:hover,
  details[open] {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  /* Better link visibility */
  a:not(.accordion-active-b1e4):not(.tiny-f44e):not(.notice-1a26):not(.chip_ec8b) {
    color: #818cf8;
  }

  a:not(.accordion-active-b1e4):not(.tiny-f44e):not(.notice-1a26):hover {
    color: #a5b4fc;
  }

  /* Code blocks in dark mode */
  code:not([class]) {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
  }

  /* Better image contrast in dark mode */
  img:not([src*=".tooltip-south-fdbe"]) {
    opacity: 0.9;
  }

  img:not([src*=".tooltip-south-fdbe"]):hover {
    opacity: 1;
  }
}

/* ==========================================================================
   Scroll Animations (Progressive Enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Fade in on scroll */
  .tabs_in_8f81 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .tabs_in_8f81.fn-visible-35eb {
    opacity: 1;
    transform: translateY(0);
  }

  /* Smooth scroll behavior */
  html {
    scroll-behavior: smooth;
  }

  /* Parallax effect for hero */
  @supports (background-attachment: fixed) {
    .frame_pro_9535::before {
      background-attachment: fixed;
    }
  }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

/* Screen reader only content */
.logo-thick-0079 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: #000;
  }

  .tiny-f44e,
  details {
    border-width: 2px;
  }

  a:focus-visible {
    outline-width: 4px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Spacing utilities */
.panel-5eb8 { margin-top: 0.5rem; }
.disabled_a718 { margin-top: 1rem; }
.element_bdba { margin-top: 1.5rem; }
.hard-b398 { margin-top: 2rem; }
.mask_9576 { margin-top: 3rem; }

.feature-slow-2dc1 { margin-bottom: 0.5rem; }
.simple_cc6e { margin-bottom: 1rem; }
.form-3685 { margin-bottom: 1.5rem; }
.narrow_b9e7 { margin-bottom: 2rem; }
.focus-ec8d { margin-bottom: 3rem; }

.chip-liquid-6237 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.block_bright_b100 { padding-top: 1rem; padding-bottom: 1rem; }
.title-89f2 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.fresh_0b93 { padding-top: 2rem; padding-bottom: 2rem; }

/* Text utilities */
.under_5469 { text-align: left; }
.video-out-c65e { text-align: center; }
.label-6a88 { text-align: right; }

.status_1f34 { font-weight: 700; }
.last_1757 { font-weight: 600; }
.aside-smooth-b985 { font-weight: 500; }

.layout_dd83 { font-size: 0.875rem; }
.short_56db { font-size: 1rem; }
.tag-1443 { font-size: 1.125rem; }
.progress-huge-19f0 { font-size: 1.25rem; }

/* Color utilities */
.notice_9239 { color: var(--color-primary); }
.active-d9e1 { color: var(--color-success); }
.hidden-0d13 { color: var(--color-warning); }
.section_paper_9bdd { color: var(--color-danger); }
.background-3691 { color: var(--color-text-muted); }

/* Display utilities */
.form_54c7 { display: none; }
.form_bright_b250 { display: block; }
.menu-d8b4 { display: flex; }
.fast_2c80 { display: grid; }

/* Flex utilities */
.in_4ded { flex-direction: row; }
.text-a0af { flex-direction: column; }
.backdrop_in_ec6c { flex-wrap: wrap; }
.clean-9b48 { justify-content: center; }
.fresh_6e1f { justify-content: space-between; }
.list-c166 { align-items: center; }
.heading-a91a { gap: 0.5rem; }
.element-copper-3fd5 { gap: 1rem; }
.sort-old-ff5b { gap: 1.5rem; }
.link_4dd2 { gap: 2rem; }

/* ==========================================================================
   Performance: Will-change for Animated Elements
   ========================================================================== */

.highlight_motion_e1ee,
.tiny-f44e:hover,
.accordion-active-b1e4:hover,
details[open],
.mask-up-e2ed {
  will-change: auto; /* Let browser decide */
}

/* ==========================================================================
   Content Security: Prevent unwanted interactions
   ========================================================================== */

/* Prevent text selection on UI elements */
.accordion-active-b1e4,
.media_d6ad,
.notice-1a26 {
  -webkit-user-select: none;
  user-select: none;
}

/* Allow text selection in content */
article,
main p,
main li {
  -webkit-user-select: text;
  user-select: text;
}

/* ==========================================================================
   Browser-Specific Fixes
   ========================================================================== */

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix Safari's default button styling */
  button,
  .accordion-active-b1e4 {
    -webkit-appearance: none;
    appearance: none;
  }

  /* Fix Safari's sticky positioning */
  .highlight_motion_e1ee {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Firefox-specific optimizations */
@-moz-document url-prefix() {
  /* Better scrollbar in Firefox */
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg-alt);
  }
}

/* ==========================================================================
   Touch & Gesture Optimizations (Mobile)
   ========================================================================== */

/* Minimum touch target size: 48x48px */
@media (hover: none) and (pointer: coarse) {
  button:not(.media_d6ad):not(.component_simple_b63b):not(.notice-1a26),
  .accordion-active-b1e4:not(.component_a1f0),
  a:not(.component_a1f0):not(.chip_ec8b):not(.notice-1a26),
  input,
  select,
  textarea {
    min-height: 48px;
    min-width: 48px;
  }

  /* Compact header download stays small on mobile */
  .accordion-active-b1e4.component_a1f0 {
    min-height: 32px;
    min-width: auto;
  }

  /* Larger tap targets for mobile */
  .tiny-f44e,
  details summary {
    padding: 1.5rem;
  }

  /* Remove hover effects on touch devices */
  .tiny-f44e:hover,
  .accordion-active-b1e4:hover,
  a:hover {
    transform: none;
  }

  /* Optimize for fast tapping */
  * {
    -webkit-tap-highlight-color: rgba(99, 102, 241, 0.1);
    touch-action: manipulation; /* Disable double-tap zoom */
  }
}

/* ==========================================================================
   Connection-Aware Loading (Save-Data Mode)
   ========================================================================== */

@media (prefers-reduced-data: reduce) {
  /* Reduce image quality */
  img {
    image-rendering: crisp-edges;
  }

  /* Disable animations */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  /* Hide non-essential visuals */
  .frame_pro_9535::before,
  .row_948c {
    display: none;
  }
}

/* ==========================================================================
   END OF EXTENDED STYLES
   ========================================================================== */

/* css-noise: 0680 */
.ghost-box-h5 {
  padding: 0.2rem;
  font-size: 13px;
  line-height: 1.3;
}
