/* AstroTarot PRD - Simple & Stylish Design with Dark Mode */

:root {
    /* Light mode colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #9b59b6;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --blockquote-bg: #f8f9fa;
    --blockquote-text: #555;
    --code-bg: #f8f9fa;
    --header-gradient-start: #2c3e50;
    --header-gradient-end: #9b59b6;
    --table-hover: #f8f9fa;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark mode colors */
        --primary-color: #64748b;
        --secondary-color: #60a5fa;
        --accent-color: #c084fc;
        --text-color: #e2e8f0;
        --light-bg: #0f172a;
        --white: #1e293b;
        --border-color: #334155;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --blockquote-bg: #1e293b;
        --blockquote-text: #cbd5e1;
        --code-bg: #1e293b;
        --header-gradient-start: #1e293b;
        --header-gradient-end: #581c87;
        --table-hover: #1e293b;
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.site-description {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.site-author {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Main Content */
.main-content {
    background: var(--white);
    margin: 3rem auto;
    padding: 3rem 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.25rem;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--blockquote-text);
    background: var(--blockquote-bg);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

/* Code */
code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    transition: background-color 0.3s ease, color 0.3s ease;
}

pre {
    background: var(--primary-color);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    color: #ffffff;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

th {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

tr:hover {
    background: var(--table-hover);
    transition: background-color 0.2s ease;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    transition: background-color 0.3s ease;
}

.site-footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .main-content {
        margin: 1.5rem auto;
        padding: 1.5rem 0;
    }
}

/* Special styling for personas and highlighted sections */
strong {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

em {
    color: var(--accent-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent-color);
    color: #ffffff;
}
