/**
 * Main Styles
 * Propan Soğutma Sistemleri
 * Base layout, typography, and utilities
 */

/* ========================================
   BASE STYLES
   ======================================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-normal);
  color: var(--color-neutral-900);
  background-color: var(--color-neutral-000);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-4) 0;
  color: var(--color-neutral-900);
}

h1, .h1 {
  font-size: var(--fs-800);
  letter-spacing: var(--ls-tight);
}

h2, .h2 {
  font-size: var(--fs-700);
}

h3, .h3 {
  font-size: var(--fs-600);
}

h4, .h4 {
  font-size: var(--fs-500);
}

h5, .h5 {
  font-size: var(--fs-400);
  font-weight: var(--fw-semibold);
}

h6, .h6 {
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

p {
  margin: 0 0 var(--space-4) 0;
  max-width: 66ch;
  line-height: var(--lh-relaxed);
}

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

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

a:focus {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--border-radius-sm);
}

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

/* ========================================
   LAYOUT
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4-col {
  grid-template-columns: repeat(4, 1fr);
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  position: relative;
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.section-padding-small {
  padding-top: var(--section-padding-small);
  padding-bottom: var(--section-padding-small);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-16) auto;
}

.section-header-simple {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  font-size: var(--fs-300);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-4);
}

.section-badge.light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-neutral-000);
}

.section-title {
  font-size: var(--fs-700);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--fs-500);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-6);
}

.section-description {
  font-size: var(--fs-400);
  color: var(--color-neutral-600);
  margin: 0 auto;
  max-width: 600px;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* Background Colors */
.bg-light {
  background-color: var(--color-neutral-100);
}

.bg-dark {
  background-color: var(--color-neutral-900);
  color: var(--color-neutral-000);
}

.bg-gradient {
  background: var(--gradient-primary);
  color: var(--color-neutral-000);
}

.bg-gradient .section-title,
.bg-gradient .section-description {
  color: var(--color-neutral-000);
}

/* ========================================
   UTILITIES
   ======================================== */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Text Colors */
.text-primary {
  color: var(--color-primary-500);
}

.text-secondary {
  color: var(--color-secondary-500);
}

.text-muted {
  color: var(--color-neutral-600);
}

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

/* Display */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.hidden {
  display: none;
}

/* Screen Reader Only */
.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;
}

/* Spacing Utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* Width Utilities */
.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 640px;
}

.max-w-md {
  max-width: 768px;
}

.max-w-lg {
  max-width: 1024px;
}

/* ========================================
   IMAGES
   ======================================== */

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

svg {
  display: block;
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s var(--easing-out);
}

/* ========================================
   FOCUS MANAGEMENT
   ======================================== */

*:focus {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}
