/* 
 * TTRPG-Themed Personal Website Styles
 * Fantastical magical theme with mystical colors
 */

:root {
    --parchment: #1c1a24;
    --parchment-light: #252330;
    --parchment-dark: #14121c;
    --ink: #d4cfe3;
    --ink-light: #9b93ad;
    --accent: #7d5ba6;
    --accent-light: #8f6db8;
    --accent-bright: #a78bc5;
    --border: #534268;
    --shadow: rgba(0, 0, 0, 0.4);
    --highlight: #d4a574;
    --magic-glow: #7d5ba6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #0f0c1a 0%, #1a1625 50%, #2a1b3d 100%);
    background-attachment: fixed;
    color: var(--ink);
    line-height: 1.8;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header - Mystical Magic Style */
.site-header {
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px var(--shadow),
        inset 0 1px 0 rgba(155, 89, 182, 0.3),
        0 0 40px rgba(155, 89, 182, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(45deg, transparent 30%, rgba(155, 89, 182, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.header-frame {
    text-align: center;
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 3rem;
    color: var(--accent-bright);
    margin-bottom: 10px;
    text-shadow: 
        0 0 20px rgba(155, 89, 182, 0.8),
        0 0 40px rgba(155, 89, 182, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.site-tagline {
    font-size: 1.2rem;
    color: var(--ink-light);
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-block {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: rgba(42, 36, 56, 0.6);
    box-shadow: 
        0 0 15px rgba(155, 89, 182, 0.3),
        inset 0 0 10px rgba(155, 89, 182, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-bright);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 15px;
    box-shadow: 
        0 4px 16px var(--shadow),
        0 0 30px rgba(155, 89, 182, 0.2);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.main-nav a:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.3);
}

.main-nav a.active {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent-bright);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px var(--shadow),
        inset 0 1px 0 rgba(155, 89, 182, 0.2),
        0 0 40px rgba(155, 89, 182, 0.15);
    min-height: 500px;
}

/* Parchment Section */
.parchment {
    background: rgba(42, 36, 56, 0.4);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(155, 89, 182, 0.1);
    backdrop-filter: blur(5px);
}

.parchment h2 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-bright);
    margin-bottom: 15px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.parchment p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Section Titles */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 2rem;
    color: var(--accent-bright);
    text-shadow: 0 0 15px rgba(155, 89, 182, 0.6);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--border);
}

/* Card Grids */
.posts-grid,
.projects-grid,
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Styles with Corner Decorations */
.post-card,
.project-card,
.campaign-card {
    background: rgba(42, 36, 56, 0.6);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.post-card:hover,
.project-card:hover,
.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(155, 89, 182, 0.3);
    border-color: var(--accent-bright);
    background: rgba(42, 36, 56, 0.8);
}

/* Decorative Corner Pieces */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-bright);
    opacity: 0.6;
}

.card-corner.tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.card-corner.tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.card-corner.bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.card-corner.br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.post-card h3,
.project-card h3,
.campaign-card h3 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-bright);
    margin-bottom: 12px;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.post-excerpt,
.project-card p,
.campaign-card p {
    color: var(--ink-light);
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.post-date {
    font-size: 0.9rem;
    color: var(--ink-light);
    font-style: italic;
}

.read-more {
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--highlight);
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.8);
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-tag {
    background: var(--accent);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.project-links a {
    color: var(--accent-bright);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.5);
}

/* Campaign Specific */
.campaign-system {
    color: var(--accent-bright);
    font-weight: 600;
    margin-bottom: 10px;
}

.campaign-date {
    font-size: 0.9rem;
    color: var(--ink-light);
    font-style: italic;
    margin-top: 10px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--parchment-dark) 0%, var(--parchment) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 
        0 4px 16px var(--shadow),
        0 0 30px rgba(155, 89, 182, 0.2);
}

.footer-content p {
    margin-bottom: 8px;
    color: var(--ink-light);
}

.footer-flavor {
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .stat-block {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .posts-grid,
    .projects-grid,
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
}
