-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathia-search.css
More file actions
190 lines (172 loc) · 4.08 KB
/
ia-search.css
File metadata and controls
190 lines (172 loc) · 4.08 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
body.light-theme {
/* Tema CLARO */
--bg: #f8fafc;
--surface: #e2e8f0;
--text: #1e293b;
--text-secondary: #64748b;
--accent: #3b82f6;
--accent-hover: #2563eb;
--accent-light: #2563eb;
--accent-cyan: #bae6fd;
--danger: #ef4444;
--danger-hover: #dc2626;
--border-color: rgba(30, 41, 59, 0.15);
--shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
--scanline-color: rgba(0, 0, 0, 0.015);
--glow-color: rgba(255, 255, 255, 0.4);
--title-color: #0056b3; /* Azul oscuro para fondo claro */
--text-accent: #0056b3; /* Azul oscuro para modo claro */
--text-emphasis: #0056b3;
--text-muted: #4a5568;
}
/* ===== ESTILOS ESPECÍFICOS PARA IA-SEARCH ===== */
#ia-search h2 {
font-size: 1.9rem;
text-align: center;
margin-bottom: 25px;
color: var(--title-color);
font-weight: 700;
position: relative;
z-index: 3;
}
.search-controls {
margin-bottom: 25px;
display: flex;
flex-direction: column;
gap: 12px;
position: relative;
z-index: 3;
}
.search-input {
width: 100%;
padding: 12px 16px;
border: 2px solid var(--accent);
border-radius: 12px;
background-color: color-mix(in srgb, var(--bg), transparent 30%);
color: var(--text);
font-size: 1rem;
font-family: inherit;
}
.filters {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
#ia-search .filter-btn {
background: var(--surface);
color: var(--text);
border: 1px solid var(--border-color);
padding: 6px 12px;
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.2s ease;
position: relative;
}
#ia-search .filter-btn.active {
background: var(--accent) !important;
color: white !important;
border-color: var(--accent) !important;
font-weight: 600;
}
#ia-search .filter-btn.active:hover {
background: var(--accent-hover, var(--accent)) !important;
color: white !important;
}
#ia-search .filter-btn:not(.active):hover {
background: color-mix(in srgb, var(--accent), transparent 80%);
border-color: var(--accent);
color: var(--text);
}
/* Fallback con colores fijos por si las variables fallan */
#ia-search .filter-btn.active {
background: #007bff !important; /* Azul fijo para tema oscuro */
color: white !important;
border-color: #007bff !important;
font-weight: 600;
}
body.light-theme #ia-search .filter-btn.active {
background: #3b82f6 !important; /* Azul fijo para tema claro */
color: white !important;
border-color: #3b82f6 !important;
font-weight: 600;
}
.ia-list {
display: flex;
flex-direction: column;
gap: 16px;
position: relative;
z-index: 3;
}
.ia-item {
background: color-mix(in srgb, var(--surface), transparent 30%);
padding: 16px;
border-radius: 12px;
border: 1px solid var(--border-color);
}
.ia-item h3 {
margin: 0 0 8px;
color: var(--text-accent);
font-size: 1.25rem;
}
.ia-item p {
margin: 0 0 8px;
font-size: 0.95rem;
color: var(--text);
}
.ia-item .category {
font-size: 0.85rem;
color: var(--text-muted);
font-style: italic;
}
.ia-item a {
color: var(--accent-light);
text-decoration: none;
font-weight: bold;
}
.ia-item a:hover {
text-decoration: underline;
}
/* Footer
footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color: var(--surface);
font-size: 0.9rem;
border-top: 1px solid var(--text);
border-bottom: 1px solid var(--text);
position: relative;
z-index: 10;
}
footer nav a {
margin-left: 15px;
text-decoration: none;
color: var(--text);
}
footer nav a:hover {
text-decoration: underline;
background-color: #4a00e0;
border-radius: 5px;
}
*/
/* Responsive */
@media (max-width: 768px) {
header {
flex-direction: column;
gap: 12px;
padding: 15px 60px 15px 20px;
}
#theme-toggle {
top: 10px;
right: 10px;
}
nav {
flex-wrap: wrap;
justify-content: center;
}
.filters {
flex-direction: column;
}
}