/* ==========================================================================
   TeleMahalle - Main Application Stylesheet
   Imports all partials and defines utility classes
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Imports
   --------------------------------------------------------------------------- */
@import url('variables.css');
@import url('layout.css');
@import url('components.css');
@import url('responsive.css');


/* ===========================================================================
   UTILITY CLASSES
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Text Alignment
   --------------------------------------------------------------------------- */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* ---------------------------------------------------------------------------
   Text Size
   --------------------------------------------------------------------------- */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-md {
  font-size: var(--text-md);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

/* ---------------------------------------------------------------------------
   Font Weight
   --------------------------------------------------------------------------- */
.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* ---------------------------------------------------------------------------
   Text Colors
   --------------------------------------------------------------------------- */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.text-warning {
  color: var(--color-warning);
}

.text-info {
  color: var(--color-info);
}

.text-muted {
  color: var(--color-text-light);
}

.text-white {
  color: var(--color-text-white);
}

/* ---------------------------------------------------------------------------
   Background Colors
   --------------------------------------------------------------------------- */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

.bg-success {
  background-color: var(--color-success);
}

.bg-success-light {
  background-color: var(--color-success-light);
}

.bg-danger {
  background-color: var(--color-danger);
}

.bg-danger-light {
  background-color: var(--color-danger-light);
}

.bg-warning {
  background-color: var(--color-warning);
}

.bg-warning-light {
  background-color: var(--color-warning-light);
}

.bg-white {
  background-color: var(--color-bg-white);
}

.bg-gray-50 {
  background-color: var(--color-gray-50);
}

.bg-gray-100 {
  background-color: var(--color-gray-100);
}

/* ---------------------------------------------------------------------------
   Margin Top
   --------------------------------------------------------------------------- */
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

.mt-6 {
  margin-top: var(--space-2xl);
}

/* ---------------------------------------------------------------------------
   Margin Bottom
   --------------------------------------------------------------------------- */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.mb-6 {
  margin-bottom: var(--space-2xl);
}

/* ---------------------------------------------------------------------------
   Margin Left / Right
   --------------------------------------------------------------------------- */
.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.ml-1 {
  margin-left: var(--space-xs);
}

.ml-2 {
  margin-left: var(--space-sm);
}

.ml-3 {
  margin-left: var(--space-md);
}

.ml-4 {
  margin-left: var(--space-lg);
}

.mr-1 {
  margin-right: var(--space-xs);
}

.mr-2 {
  margin-right: var(--space-sm);
}

.mr-3 {
  margin-right: var(--space-md);
}

.mr-4 {
  margin-right: var(--space-lg);
}

/* ---------------------------------------------------------------------------
   Padding
   --------------------------------------------------------------------------- */
.p-0 {
  padding: 0;
}

.p-1 {
  padding: var(--space-xs);
}

.p-2 {
  padding: var(--space-sm);
}

.p-3 {
  padding: var(--space-md);
}

.p-4 {
  padding: var(--space-lg);
}

.p-5 {
  padding: var(--space-xl);
}

.px-4 {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.py-4 {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

/* ---------------------------------------------------------------------------
   Flexbox Utilities
   --------------------------------------------------------------------------- */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Gap
   --------------------------------------------------------------------------- */
.gap-1 {
  gap: var(--space-xs);
}

.gap-2 {
  gap: var(--space-sm);
}

.gap-3 {
  gap: var(--space-md);
}

.gap-4 {
  gap: var(--space-lg);
}

.gap-5 {
  gap: var(--space-xl);
}

.gap-6 {
  gap: var(--space-2xl);
}

/* ---------------------------------------------------------------------------
   Width & Height
   --------------------------------------------------------------------------- */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* ---------------------------------------------------------------------------
   Display
   --------------------------------------------------------------------------- */
.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.hidden {
  display: none;
}

/* ---------------------------------------------------------------------------
   Visibility
   --------------------------------------------------------------------------- */
.visible {
  visibility: visible;
}

.invisible {
  visibility: hidden;
}

/* 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;
}

/* ---------------------------------------------------------------------------
   Overflow
   --------------------------------------------------------------------------- */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

/* ---------------------------------------------------------------------------
   Position
   --------------------------------------------------------------------------- */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

/* ---------------------------------------------------------------------------
   Border
   --------------------------------------------------------------------------- */
.border {
  border: 1px solid var(--color-border);
}

.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.border-none {
  border: none;
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ---------------------------------------------------------------------------
   Shadow
   --------------------------------------------------------------------------- */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-none {
  box-shadow: none;
}

/* ---------------------------------------------------------------------------
   Cursor
   --------------------------------------------------------------------------- */
.cursor-pointer {
  cursor: pointer;
}

.cursor-default {
  cursor: default;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
   Text Utilities
   --------------------------------------------------------------------------- */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.break-words {
  word-break: break-word;
  overflow-wrap: break-word;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.no-underline {
  text-decoration: none;
}

.underline {
  text-decoration: underline;
}

.line-through {
  text-decoration: line-through;
}

/* ---------------------------------------------------------------------------
   Opacity
   --------------------------------------------------------------------------- */
.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

/* ---------------------------------------------------------------------------
   Transition
   --------------------------------------------------------------------------- */
.transition {
  transition: all var(--transition-normal);
}

.transition-fast {
  transition: all var(--transition-fast);
}

/* ---------------------------------------------------------------------------
   List Reset
   --------------------------------------------------------------------------- */
.list-none {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Selection Color
   --------------------------------------------------------------------------- */
::selection {
  background-color: var(--color-primary-200);
  color: var(--color-primary-900);
}

/* ---------------------------------------------------------------------------
   Focus Visible (Accessibility)
   --------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Smooth Scrolling
   --------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
