/* AppealArmor Shared Styles for SEO Articles */

:root {
    --primary-green: #059669;
    --primary-green-dark: #047857;
    --primary-blue: #1e40af;
    --text-primary: #111827;
    --text-secondary: #374151;
    --background-light: #ffffff;
    --background-gray: #f9fafb;
    --border-gray: #d1d5db;
    --success-green: #059669;
    --warning-orange: #d97706;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-light);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Article Content */
.article-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

/* Key Takeaway Box */
.key-takeaway {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid var(--success-green);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.key-takeaway h3 {
    color: var(--success-green);
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.key-takeaway p {
    color: var(--text-primary);
    margin: 0;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border-left: 4px solid var(--warning-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.warning-box h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
    border: none;
    padding: 0;
}

.warning-box p, .warning-box ul {
    color: var(--text-primary);
}

/* Template Box */
.template-box {
    background: #f8fafc;
    border: 2px solid var(--border-gray);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-family: 'Georgia', serif;
    line-height: 1.8;
}

.template-box p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.template-box strong {
    color: var(--text-primary);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.5);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--background-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.article-card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-card h3 {
    margin-bottom: 0.5rem;
}

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

.article-card h3 a:hover {
    color: var(--primary-green);
}

.article-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Category Section */
.category-section {
    margin: 3rem 0;
}

.category-section h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: #10b981;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .article-content h1 {
        font-size: 1.75rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .template-box {
        padding: 1rem;
    }
}
