/* Sympathy Card Articles - Shared Styles */
/* Empathy UX: 18px+ fonts, large tap targets, high contrast, senior-optimized */

:root {
    --primary: #8b7aa8;
    --primary-dark: #6b5a88;
    --secondary: #f5f3f7;
    --text: #2d2d2d;
    --text-light: #555;
    --background: #fdfcfe;
    --card-bg: #ffffff;
    --border: #e0dce5;
    --accent: #d4a03c;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
}

/* Header */
.site-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
}

.site-header a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.site-header a:hover {
    text-decoration: underline;
}

/* Main Content */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Image Placeholder */
.hero-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary) 0%, #e8e4ed 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 2px dashed var(--border);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-image-placeholder {
    text-align: center;
    color: var(--text-light);
}

.hero-image-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Article Title */
h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Article Meta */
.article-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Headings */
h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

/* Paragraphs */
p {
    margin-bottom: 1.25rem;
}

/* Sample Card Display */
.sample-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.sample-card::before {
    content: "Sample Card";
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sample-card .card-message {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.sample-card .card-signoff {
    text-align: right;
    color: var(--text-light);
    font-size: 1rem;
}

/* Tip Box */
.tip-box {
    background: #fff9e6;
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.tip-box strong {
    color: #b8860b;
}

/* Warning Box */
.warning-box {
    background: #fff0f0;
    border-left: 4px solid #c44;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box strong {
    color: #a33;
}

/* Lists */
ul, ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: underline;
}

a:hover {
    color: var(--primary-dark);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 1rem 0;
    transition: background 0.2s;
}

.cta-button:hover {
    background: var(--primary-dark);
    color: white;
}

/* Internal Links Section */
.related-articles {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0 2rem;
}

.related-articles h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

.related-articles ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles a {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.related-articles a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cross-Site Links */
.card-ecosystem {
    background: linear-gradient(135deg, #f8f6fa 0%, #f0eef4 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.card-ecosystem h3 {
    margin-top: 0;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.ecosystem-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ecosystem-links a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.ecosystem-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.ecosystem-links a span {
    margin-right: 0.5rem;
}

/* Affiliate Placeholder */
.affiliate-box {
    background: linear-gradient(135deg, #f5f0e8 0%, #ebe5d8 100%);
    border: 2px solid #d4c4a8;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.affiliate-box h3 {
    margin-top: 0;
    color: #8b7355;
}

.affiliate-box .placeholder-note {
    font-size: 0.85rem;
    color: #a08060;
    font-style: italic;
}

/* Footer */
.site-footer {
    background: #3a3a3a;
    color: #ccc;
    padding: 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-ecosystem {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-ecosystem a {
    color: #aaa;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-ecosystem a:hover {
    color: white;
}

.footer-divider {
    color: #666;
}

.footer-legal {
    font-size: 0.85rem;
    color: #888;
}

.footer-legal a {
    color: #aaa;
}

/* Responsive */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }
    
    .article-container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .sample-card {
        padding: 1.25rem 1.5rem;
    }
    
    .ecosystem-links {
        flex-direction: column;
    }
    
    .ecosystem-links a {
        width: 100%;
    }
}
