/**
 * THROW CONSULTORIA EM LEILÕES
 * Base Styles & Typography
 * Based on official brand guide by Caroline Almeida
 */

/* =================================== */
/* 1. RESET & BASE                    */
/* =================================== */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* HTML & Body */
html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--throw-dark);
  background-color: var(--throw-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Dark theme body class */
body.dark-theme {
  background-color: var(--throw-dark);
  color: var(--throw-white);
}

/* =================================== */
/* 2. TYPOGRAPHY CLASSES               */
/* =================================== */

/* Display Heading - Hero Sections */
.heading-display {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--throw-dark);
}

/* H1 - Page Titles */
h1,
.heading-h1 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--throw-dark);
  margin-bottom: var(--space-lg);
}

/* H2 - Section Titles */
h2,
.heading-h2 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--throw-dark);
  margin-bottom: var(--space-lg);
}

/* H3 - Subsection Titles */
h3,
.heading-h3 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--throw-dark);
  margin-bottom: var(--space-md);
}

/* H4 - Card Titles */
h4,
.heading-h4 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--throw-dark);
  margin-bottom: var(--space-md);
}

/* H5 & H6 */
h5, h6 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  color: var(--throw-dark);
  margin-bottom: var(--space-sm);
}

/* Body Large - Introductions, Lead Text */
.body-large {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--throw-gray-700);
}

/* Body Regular - Standard Text */
p,
.body-regular {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--throw-gray-700);
  margin-bottom: var(--space-md);
}

/* Body Small - Captions, Notes */
.body-small {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--throw-gray-600);
}

/* Label Uppercase - Tags, Categories */
.label-uppercase {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--throw-turquoise);
}

/* Gradient Text Effect */
.text-gradient {
  background: var(--throw-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Text Color Utilities */
.text-dark { color: var(--throw-dark); }
.text-white { color: var(--throw-white); }
.text-turquoise { color: var(--throw-turquoise); }
.text-cream { color: var(--throw-cream); }
.text-gray-500 { color: var(--throw-gray-500); }
.text-gray-600 { color: var(--throw-gray-600); }
.text-gray-700 { color: var(--throw-gray-700); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Font Weight Utilities */
.font-light { font-weight: var(--font-weight-light); }
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-black { font-weight: var(--font-weight-black); }

/* =================================== */
/* 3. LINKS                           */
/* =================================== */

a {
  color: var(--throw-turquoise);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--throw-gradient-dark);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--throw-turquoise);
  outline-offset: 2px;
}

/* Link with gradient underline */
.link-gradient {
  position: relative;
  color: var(--throw-dark);
  text-decoration: none;
  transition: color var(--transition-base);
}

.link-gradient::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--throw-gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.link-gradient:hover {
  color: var(--throw-turquoise);
}

.link-gradient:hover::after {
  transform: scaleX(1);
}

/* =================================== */
/* 4. LISTS                           */
/* =================================== */

ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
}

/* Custom list styles */
.list-none {
  list-style: none;
  padding-left: 0;
}

.list-turquoise li::marker {
  color: var(--throw-turquoise);
}

/* =================================== */
/* 5. BLOCKQUOTES & CODE              */
/* =================================== */

blockquote {
  border-left: 4px solid var(--throw-turquoise);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--throw-gray-600);
}

code {
  background-color: var(--throw-gray-100);
  padding: 0.125rem 0.25rem;
  border-radius: var(--border-radius-sm);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
}

pre {
  background-color: var(--throw-dark);
  color: var(--throw-white);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* =================================== */
/* 6. IMAGES & MEDIA                  */
/* =================================== */

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

figure {
  margin: var(--space-lg) 0;
}

figcaption {
  font-size: var(--font-size-sm);
  color: var(--throw-gray-600);
  text-align: center;
  margin-top: var(--space-sm);
}

/* =================================== */
/* 7. TABLES                          */
/* =================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

th {
  background-color: var(--throw-gray-100);
  font-weight: var(--font-weight-medium);
  text-align: left;
  padding: var(--space-md);
  border-bottom: 2px solid var(--throw-turquoise);
}

td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--throw-gray-200);
}

tr:hover {
  background-color: var(--throw-gray-100);
}

/* =================================== */
/* 8. SELECTION STYLES                */
/* =================================== */

::selection {
  background-color: var(--throw-turquoise);
  color: var(--throw-white);
}

::-moz-selection {
  background-color: var(--throw-turquoise);
  color: var(--throw-white);
}

/* =================================== */
/* 9. FOCUS STYLES                    */
/* =================================== */

:focus-visible {
  outline: 2px solid var(--throw-turquoise);
  outline-offset: 2px;
}

/* =================================== */
/* 10. SCROLLBAR STYLES               */
/* =================================== */

/* Webkit browsers */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--throw-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--throw-gradient-primary);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--throw-turquoise);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--throw-turquoise) var(--throw-gray-100);
}

/* =================================== */
/* 11. ACCESSIBILITY                  */
/* =================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: var(--z-max);
  padding: var(--space-md);
  background-color: var(--throw-dark);
  color: var(--throw-white);
  text-decoration: none;
}

.skip-to-main:focus {
  position: fixed;
  top: 0;
  left: 0;
}

/* =================================== */
/* 12. UTILITY CLASSES                */
/* =================================== */

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }
.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

/* Width & Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }