/* EDCTip Theme - Budget EDC Style */

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --text: #333;
    --text-light: #666;
    --bg: #fafafa;
    --white: #fff;
    --border: #e0e0e0;
    --max-width: 900px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 48px;
}

.article-card-content {
    padding: 20px;
}

.article-card-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

.article-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    margin: 8px 0;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.article-card p {
    font-size: 14px;
    color: var(--text-light);
}

.article-card-meta {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* Single Article */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: var(--primary);
    margin: 20px 0;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 24px;
    color: var(--primary);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin: 0 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content th, .article-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-content th {
    background: var(--bg);
    font-weight: 600;
}

.quick-picks-table {
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links h4, .footer-categories h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--accent);
}

.footer-links a, .footer-categories a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-categories a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.disclaimer {
    margin-top: 8px;
    font-size: 12px;
}

/* Homepage Hero */
.hero {
    text-align: center;
    padding: 40px 0 60px;
}

.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}

/* Affiliate Link Styling - Amazon Orange */
.affiliate-link,
.affiliate-link:visited {
    color: #FF9900 !important;
    text-decoration: none;
}

.affiliate-link:hover {
    color: #FF9900 !important;
    text-decoration: underline;
}
