File size: 2,565 Bytes
f362024
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
/* ui/styles/responsive.css - Mobile-First Responsive Utilities */

/* Mobile-first: default styles are for mobile */
.container {
  padding: 0 var(--spacing-4);
}

/* Hide/show utilities for different screen sizes */
.mobile-only {
  display: block;
}

.tablet-only {
  display: none;
}

.desktop-only {
  display: none;
}

/* Responsive grid columns */
.grid-2, .grid-3, .grid-4 {
  grid-template-columns: 1fr;
}

/* Responsive typography */
.text-responsive {
  font-size: 0.875rem;
}

/* Responsive spacing */
.responsive-padding {
  padding: var(--spacing-4);
}

/* Tablet styles (≥ 768px) */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-6);
  }
  
  .mobile-only {
    display: none;
  }
  
  .tablet-only {
    display: block;
  }
  
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .text-responsive {
    font-size: 1rem;
  }
  
  .responsive-padding {
    padding: var(--spacing-6);
  }
}

/* Desktop styles (≥ 1024px) */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-8);
  }
  
  .tablet-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .text-responsive {
    font-size: 1.125rem;
  }
  
  .responsive-padding {
    padding: var(--spacing-8);
  }
}

/* Large desktop (≥ 1280px) */
@media (min-width: 1280px) {
  .text-responsive {
    font-size: 1.25rem;
  }
}

/* Ultra-wide screens (≥ 1536px) */
@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* Touch-friendly styles for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, select, textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--color-text);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
}