/* =====================================================
   SHIV SHAKTI ENTERPRISES - BASE STYLES
   FUNZILLA & PLAY WAVE
   ====================================================== */

/* =====================================================
   1. HTML & BODY RESET
   ====================================================== */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--body-font-family);
  font-size: var(--font-size-base);
  font-weight: var(--body-font-weight);
  line-height: var(--body-line-height);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   2. TYPOGRAPHY BASE
   ====================================================== */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--heading-font-family);
  font-weight: var(--heading-font-weight);
  letter-spacing: var(--heading-letter-spacing);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

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

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

p + p {
  margin-top: var(--space-4);
}

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

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

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

em, i {
  font-style: italic;
}

code, pre {
  font-family: var(--font-family-mono);
}

code {
  background-color: var(--color-bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

pre {
  background-color: var(--color-bg-tertiary);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* =====================================================
   3. HEADINGS
   ====================================================== */

.h1, h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-extrabold);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.h2, h2 {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-4);
}

.h3, h3 {
  font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-normal);
  margin-bottom: var(--space-3);
}

.h4, h4 {
  font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-2xl));
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.h5, h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
}

.h6, h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
}

/* =====================================================
   4. IMAGES
   ====================================================== */

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-radius: var(--radius-sm);
}

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

figcaption {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
  text-align: center;
}

/* =====================================================
   5. LISTS
   ====================================================== */

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

ul {
  list-style: disc outside;
}

ol {
  list-style: decimal outside;
}

ul ul, ul ol, ol ul, ol ol {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

li {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

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

/* =====================================================
   6. TABLES
   ====================================================== */

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

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: var(--border-width-1) solid var(--color-border-primary);
}

th {
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  background-color: var(--color-bg-tertiary);
}

td {
  color: var(--color-text-secondary);
}

tr:hover {
  background-color: var(--color-bg-secondary);
}

/* =====================================================
   7. FORMS
   ====================================================== */

input, button, textarea, select {
  font: inherit;
}

input,
button,
textarea,
select {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* =====================================================
   8. QUOTES & CITATIONS
   ====================================================== */

blockquote {
  font-family: var(--heading-font-family);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: var(--space-6) 0;
  padding-left: var(--space-4);
  border-left: var(--border-width-3) solid var(--color-corporate-primary);
}

blockquote p {
  color: inherit;
  margin-bottom: var(--space-4);
}

blockquote footer {
  font-family: var(--body-font-family);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-2);
}

q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}

q::before {
  content: open-quote;
}

q::after {
  content: close-quote;
}

/* =====================================================
   9. HORIZONTAL RULES
   ====================================================== */

hr {
  margin: var(--space-6) 0;
  border: 0;
  border-top: var(--border-width-1) solid var(--color-border-primary);
}

/* =====================================================
   10. ADDRESS
   ====================================================== */

address {
  font-style: normal;
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
}

/* =====================================================
   11. SMALL & MARK
   ====================================================== */

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

mark {
  background-color: var(--color-warning-light);
  color: var(--color-text-primary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

/* =====================================================
   12. DETAILS & SUMMARY
   ====================================================== */

details {
  margin-bottom: var(--space-4);
}

summary {
  font-family: var(--heading-font-family);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) 0;
  color: var(--color-text-primary);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+ ';
  font-size: var(--font-size-lg);
  transition: var(--transition-transform);
}

details[open] summary::after {
  content: '- ';
}

/* =====================================================
   13. CODE BLOCKS
   ====================================================== */

pre {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: var(--font-size-sm);
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* =====================================================
   14. ACCESSIBILITY
   ====================================================== */

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-corporate-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: var(--z-max);
  transition: var(--transition-all);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --color-border-primary: #000;
    --color-border-secondary: #000;
    --color-text-secondary: #000;
    --color-text-tertiary: #000;
  }
}

/* =====================================================
   END OF BASE STYLES
   ====================================================== */
