/* ==========================================================================
   Tele Latino APK - Premium Dark Theme Design System & Stylesheet
   Domain: https://telelatinoapk.lat/
   Authoritative Technology Portal & Educational Resource
   ========================================================================== */

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

:root {
  /* Primary Color Palette */
  --bg-primary: #0b0f17;
  --bg-secondary: #121824;
  --bg-card: rgba(18, 24, 36, 0.7);
  --bg-card-hover: rgba(26, 35, 52, 0.85);
  --bg-glass: rgba(11, 15, 23, 0.85);
  
  /* Brand Accent Colors */
  --accent-red: #e50914;
  --accent-red-glow: rgba(229, 9, 20, 0.35);
  --accent-red-light: #ff2e4d;
  --accent-gradient: linear-gradient(135deg, #e50914 0%, #ff2e4d 100%);
  --accent-card-border: rgba(229, 9, 20, 0.2);
  
  /* Text Colors */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-white: #ffffff;
  
  /* Borders & Dividers */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(229, 9, 20, 0.5);
  
  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(229, 9, 20, 0.25);
  --glass-backdrop: blur(16px) saturate(180%);
  
  /* Layout Dimensions */
  --max-width: 1240px;
  --content-width: 860px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 100% 40%, rgba(30, 41, 59, 0.3) 0%, transparent 40%),
              var(--bg-primary);
}

a {
  color: var(--accent-red-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-white);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-top: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

p strong, li strong {
  color: var(--text-main);
  font-weight: 600;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrapper {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-white);
  text-decoration: none !important;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 8px var(--accent-red-glow));
}

.brand-logo span.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--accent-card-border);
  border-radius: var(--radius-pill);
  color: var(--accent-red-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 2rem auto;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text-white);
}

/* Main Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(229, 9, 20, 0.15);
  color: var(--accent-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Section Styling */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-subtitle {
  color: var(--accent-red-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.tech-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  padding: 1rem 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tech-table td {
  padding: 1rem 1.25rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-active);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
  color: var(--accent-red-light);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Articles & Guides Cards */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card .tag {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  background: rgba(229, 9, 20, 0.15);
  color: var(--accent-red-light);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.article-card h3 a {
  color: var(--text-white);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-red-light);
}

.article-meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
}

/* Article Detail Page Layout */
.article-header {
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--text-white);
}

.breadcrumb-separator {
  color: var(--text-subtle);
}

.post-meta-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.table-of-contents {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

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

.toc-list li {
  margin-bottom: 0.4rem;
}

.toc-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toc-list a:hover {
  color: var(--accent-red-light);
  text-decoration: none;
}

/* Callout Box / Alert Box */
.info-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent-red);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.info-box.warning {
  border-left-color: #f59e0b;
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Footer Styling */
.site-footer {
  background: #07090e;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-heading {
  font-size: 1rem;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-red-light);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.disclaimer-badge {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Search Bar Component */
.search-container {
  max-width: 550px;
  margin: 1.5rem auto 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(18, 24, 36, 0.9);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-white);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-red-glow);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
