/**
 * GCT School UI - Base Styles
 * Global resets and base element styling
 */

/* Import variables */
@import url('variables.css');

/* ==================== Global Resets ==================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--font-regular);
  line-height: var(--line-height-relaxed);
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

/* ==================== Typography ==================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--line-height-tight);
  color: var(--text);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-4xl); }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-2xl); }
h4 { font-size: var(--font-xl); }
h5 { font-size: var(--font-lg); }
h6 { font-size: var(--font-base); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

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

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

strong, b {
  font-weight: var(--font-bold);
}

small {
  font-size: var(--font-sm);
}

/* ==================== Lists ==================== */

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

li {
  margin-bottom: var(--space-2);
}

/* ==================== Images ==================== */

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

/* ==================== Buttons ==================== */

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==================== Forms ==================== */

input,
textarea,
select {
  font-family: var(--font-family);
  font-size: var(--font-base);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ==================== Tables ==================== */

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: var(--space-3);
}

/* ==================== Selection ==================== */

::selection {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* ==================== Scrollbar ==================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ==================== Focus Visible ==================== */

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==================== Print Styles ==================== */

@media print {
  body {
    background: white;
  }

  a {
    text-decoration: underline;
  }

  * {
    box-shadow: none !important;
  }
}
