/* Omar YT Play Gaming Blog - Reset CSS */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* HTML y body */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

/* Párrafos y texto */
p {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-secondary);
}

/* Enlaces */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Listas */
ul, ol {
  padding-left: var(--spacing-lg);
  margin: 0 0 var(--spacing-md) 0;
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Formularios */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

/* Elementos multimedia */
video,
audio,
iframe {
  max-width: 100%;
  height: auto;
}

/* Elementos de código */
code,
kbd,
samp,
pre {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
}

code {
  background-color: var(--bg-card);
  padding: 0.2em 0.4em;
  border-radius: var(--border-radius-sm);
}

pre {
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: var(--spacing-md) 0;
}

/* Elementos block */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  color: var(--text-muted);
}

hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: var(--spacing-xl) 0;
}

/* Tabla */
table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--spacing-md) 0;
}

th,
td {
  border: 1px solid var(--border-color);
  padding: var(--spacing-sm);
  text-align: left;
}

th {
  background-color: var(--bg-card);
  font-weight: var(--font-weight-bold);
}

/* Foco y accesibilidad */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling para navegación */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
