* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--bg-primary: #ffffff;
--bg-secondary: #f8f9fa;
--text-primary: #1a1a1a;
--text-secondary: #6b7280;
--accent: #3b82f6;
--accent-hover: #2563eb;
--border: #e5e7eb;
--card-bg: #ffffff;
--card-hover: #fafafa;
--tag-bg: #dbeafe;
--tag-text: #1e40af;
--input-bg: #f9fafb;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
--bg-primary: #0f172a;
--bg-secondary: #1e293b;
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--accent: #60a5fa;
--accent-hover: #3b82f6;
--border: #334155;
--card-bg: #1e293b;
--card-hover: #334155;
--tag-bg: #1e3a5f;
--tag-text: #93c5fd;
--input-bg: #1e293b;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background-color: var(--bg-primary);
transition: background-color 0.3s, color 0.3s;
}

header {
background: var(--bg-primary);
border-bottom: 1px solid var(--border);
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(10px);
}
.logo {
font-size: 1.25rem;
font-weight: 700;
color: #60a5fa;
}

.cta-button {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: var(--accent);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
font-size: 0.95rem;
}

.cta-button:hover {
background: var(--accent-hover);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.cta-button:active {
transform: scale(0.98);
}

.icon {
width: 20px;
height: 20px;
}

.hero {
background: var(--bg-secondary);
padding: 3rem 2rem 2.5rem;
border-bottom: 1px solid var(--border);
}

.hero-content {
max-width: 1200px;
margin: 0 auto;
}

.hero h1 {
font-size: 2.25rem;
font-weight: 700;
margin-bottom: 0.5rem;
color: var(--text-primary);
}

.hero p {
font-size: 1.125rem;
color: var(--text-secondary);
}

.heading {
font-size: 1.5rem;
padding: 0rem 1.7rem 1.7rem 0rem;
line-height: 1.2;
font-weight: 800;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 2.5rem 2rem;
}

.controls {
margin-bottom: 2.5rem;
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.search-box {
position: relative;
max-width: 500px;
}

.search-input {
width: 100%;
padding: 0.875rem 1.125rem 0.875rem 3rem;
border: 2px solid var(--border);
border-radius: 10px;
background: var(--input-bg);
color: var(--text-primary);
font-size: 0.9375rem;
transition: all 0.2s ease;
font-weight: 400;
}

.search-input:focus {
outline: none;
border-color: var(--accent);
background: var(--bg-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
color: var(--text-secondary);
}

.search-icon {
position: absolute;
left: 1rem;
top: 50%;
transform: translateY(-50%);
color: var(--text-secondary);
pointer-events: none;
transition: color 0.2s;
}

.search-input:focus ~ .search-icon {
color: var(--accent);
}

.filter-buttons {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}

.filter-btn {
padding: 0.625rem 1.25rem;
border: 1.5px solid var(--border);
background: var(--bg-primary);
color: var(--text-secondary);
border-radius: 8px;
cursor: pointer;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
position: relative;
overflow: hidden;
}

.filter-btn.bullish {
    color: #16C784;
    border: 1.5px solid #16C784;
}

.filter-btn.bearish {
    color: #EA3943;
    border: 1.5px solid #EA3943;
}


.filter-btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--accent);
opacity: 0;
transition: opacity 0.2s ease;
z-index: -1;
}

.filter-btn:hover {
border-color: var(--accent);
color: var(--accent);
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}

.filter-btn.active {
background: var(--accent);
color: white;
border-color: var(--accent);
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.filter-btn.active::before {
opacity: 1;
}

.articles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 1.5rem;
animation: fadeIn 0.5s ease-out;
}

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

.article-card {
background: var(--card-bg);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: all 0.25s ease;
cursor: pointer;
display: flex;
flex-direction: column;
border: 1px solid var(--border);
}

.article-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
border-color: var(--accent);
}

.article-content {
padding: 1.5rem;
flex: 1;
display: flex;
flex-direction: column;
}

.article-tags {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
flex-wrap: wrap;
}

.tag {
padding: 0.25rem 0.625rem;
background: var(--tag-bg);
color: var(--tag-text);
border-radius: 6px;
font-size: 0.6875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.025em;
}

.article-title {
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--text-primary);
line-height: 1.4;
letter-spacing: -0.01em;
}

.article-excerpt {
color: var(--text-secondary);
margin-bottom: 1rem;
flex: 1;
font-size: 0.9375rem;
line-height: 1.6;
}

.article-meta {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1rem;
border-top: 1px solid var(--border);
color: var(--text-secondary);
font-size: 0.8125rem;
}

.read-time, .date {
display: flex;
align-items: center;
gap: 0.375rem;
}

.no-results {
text-align: center;
padding: 4rem 2rem;
color: var(--text-secondary);
}

.no-results-icon {
font-size: 3.5rem;
margin-bottom: 1rem;
opacity: 0.4;
}

.no-results h2 {
font-size: 1.5rem;
color: var(--text-primary);
margin-bottom: 0.5rem;
}

footer {
background: var(--bg-secondary);
padding: 3rem 2rem;
margin-top: 1rem;
border-top: 1px solid var(--border);
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2.5rem;
}

.footer-section h3 {
color: var(--text-primary);
margin-bottom: 1rem;
font-size: 1rem;
font-weight: 600;
}

.footer-section ul {
list-style: none;
}

.footer-section ul li {
margin-bottom: 0.5rem;
}

.footer-section a {
color: var(--text-secondary);
text-decoration: none;
transition: color 0.2s;
font-size: 0.9375rem;
}

.footer-section a:hover {
color: var(--accent);
}

.footer-bottom {
text-align: center;
color: var(--text-secondary);
font-size: 0.875rem;
}

@media (max-width: 768px) {

.heading {
    font-size: 1.1rem;
    padding: 0rem 1.5rem 1.5rem 0rem;
    line-height: 1.2;
}

.hero h1 {
    font-size: 1.75rem;
}

.hero p {
    font-size: 1rem;
}

.hero {
    padding: 2.5rem 1.5rem 2rem;
}

.articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.controls {
    gap: 1.25rem;
}

.search-box {
    max-width: 100%;
}

header {
    padding: 1rem 1.25rem;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.container {
    padding: 2rem 1.25rem;
}
}

.tag.bearish {
    color: #EA3943;
    border: 1.5px solid #EA3943; 
    background-color: #ea39421a;   
}

.tag.bullish {
    color: #16C784;
    border: 1.5px solid #16C784;
    background-color: #16c7831a;
}