/*
Document Name: Dead Man's Letter Stylesheet
Type: specification
Category: library
Version: v1.0.0-251007
Purpose: Dark green motif styling for deadmansletter.com
License: GPL-3.0-or-later
History:
  v1.0.0-251007 jh: Initial stylesheet with dark green theme
*/

:root {
    --primary: #1a4d2e;
    --primary-light: #2d6a4f;
    --primary-dark: #0d261f;
    --accent: #52b788;
    --background: #0a1612;
    --surface: #162920;
    --text: #e8f5e9;
    --text-dim: #a5c9b5;
    --border: #2d6a4f;
    --error: #ef5350;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Newsflash Banner */
.newsflash {
    background: var(--accent);
    color: var(--background);
    padding: 0.75rem 0;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.newsflash .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.newsflash-icon {
    font-size: 1.2rem;
}

.newsflash.warning {
    background: var(--error);
    color: white;
}

.newsflash.info {
    background: var(--accent);
}

.newsflash.critical {
    background: var(--error);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border-radius: 4px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-dim);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--background);
}

.btn-primary:hover {
    background: #74c69d;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
}

/* Main Content */
main {
    flex: 1;
}

section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: var(--surface);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.feature h3 {
    color: var(--accent);
}

/* Use Cases */
.use-case-list {
    list-style: none;
    max-width: 800px;
}

.use-case-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--primary-dark);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}

.use-case-list strong {
    color: var(--accent);
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step-counter;
    max-width: 800px;
}

.steps li {
    counter-increment: step-counter;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
}

.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -1rem;
    top: 1.5rem;
    background: var(--accent);
    color: var(--background);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.steps strong {
    display: block;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

/* FAQ */
.faq-list {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.faq-question {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-dim);
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 2px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

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

.footer-section a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-legal {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-legal p {
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .steps li::before {
        position: static;
        margin-bottom: 1rem;
    }
}
