/* ===== Board Gaming Geeks custom style ===== */

/* Animated gradient background */
body {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 25%, #4facfe 50%, #00f2fe 75%, #43e97b 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure the gradient works with PaperMod theme */
html {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 25%, #4facfe 50%, #00f2fe 75%, #43e97b 100%) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    min-height: 100vh !important;
}

/* Content container styling */
.main, 
main,
#main {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 2rem auto !important;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0 !important;
    overflow: hidden; /* Ensure hero section doesn't break out */
}

/* Dark mode support for main content area */
[data-theme="dark"] .main,
[data-theme="dark"] main,
[data-theme="dark"] #main,
body.dark .main,
body.dark main,
body.dark #main,
.dark .main,
.dark main,
.dark #main {
    background: rgba(45, 55, 72, 0.95) !important;
    color: #e2e8f0;
}

/* Global CSS variables */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #43e97b;
    --text-color: #2d3748;
    --border-radius: 12px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Header enhancements */
.header {
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .logo a {
    color: #2d3748 !important;
    font-weight: 700;
    text-decoration: none;
}

.header nav a {
    color: #4a5568 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: #667eea !important;
}

/* Dark mode header support */
[data-theme="dark"] .header,
body.dark .header,
.dark .header {
    background: rgba(45, 55, 72, 0.98) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .header .logo a,
body.dark .header .logo a,
.dark .header .logo a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .header nav a,
body.dark .header nav a,
.dark .header nav a {
    color: #cbd5e0 !important;
}

[data-theme="dark"] .header nav a:hover,
body.dark .header nav a:hover,
.dark .header nav a:hover {
    color: #667eea !important;
}

/* Navigation improvements */
.main-nav a {
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Post content styling */
.post-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

/* Enhance code blocks */
.post-content pre {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Style blockquotes */
.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

/* Enhance images */
.post-content img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.02);
}

/* Style tables */
.post-content table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-content th {
    background: var(--primary-color);
    color: white;
}

.post-content td {
    border-bottom: 1px solid #e2e8f0;
}

/* Add dark mode support for post header */
[data-theme="dark"] .post-header,
body.dark .post-header,
.dark .post-header {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
}

/* Make sure the post title is visible in dark mode */
[data-theme="dark"] .post-header h1,
body.dark .post-header h1,
.dark .post-header h1 {
    color: #e2e8f0;
}

.post-header {
    padding: 2rem 2rem 1.5rem 2rem !important;
}

.post-meta-item {
    margin-right: 1rem;
}

/* Or if you want to be more specific to just the reading time */
.reading-time {
    margin-left: 1rem;
}

/* Button styling */
.btn, button, input[type="submit"] {
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover, button:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer enhancements */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-top: 3rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Archive/list page enhancements */
.post-entry {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.post-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Tag styling */
.terms-tags a, .post-tags .tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0.2rem;
}

.terms-tags a:hover, .post-tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Search enhancements */
#searchbox input {
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    transition: border-color 0.3s ease;
}

#searchbox input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Archive page styling */
.archive-year {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.archive-month {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Profile/About page enhancements */
.profile {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.profile img {
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-content {
        padding: 1.5rem;
        margin: 0.5rem auto;
        max-width: none;
    }
    
    .post-entry {
        padding: 1rem;
        margin-bottom: 1rem;
        max-width: none;
    }
    
    .main {
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
        margin: 0.25rem auto;
        border-radius: 8px;
    }
    
    .post-entry {
        padding: 0.75rem;
        border-radius: 8px;
    }
}

/* Wide screen optimization */
@media (min-width: 1400px) {
    .post-content {
        max-width: 1400px;
    }
    
    .post-entry {
        max-width: 1400px;
    }
    
    .main {
        max-width: 1400px;
    }
}

/* Additional dark mode selectors for different theme implementations */
[data-theme="dark"] .post-content,
body.dark .post-content,
.dark .post-content {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
}

[data-theme="dark"] .post-entry,
body.dark .post-entry,
.dark .post-entry {
    background: #2d3748;
    color: #e2e8f0;
    border-color: #4a5568;
}

[data-theme="dark"] .archive-month,
body.dark .archive-month,
.dark .archive-month {
    background: rgba(102, 126, 234, 0.1);
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-entry, .post-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Meeple decorative elements */
.meeple-decoration::before {
    content: '🎲';
    margin-right: 0.5rem;
}

/* Print styles */
@media print {
    .post-content {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-section, .stats-section {
        background: white !important;
        color: black !important;
    }
}

/* Game Suggestions */
/* ===== GAME SUGGESTIONS CONTRAST FIX ===== */
/* Add this to your static/css/custom.css file */

/* Enhanced Game Suggestions styling with better contrast */
.game-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.suggestion-category h3 {
    color: #2d3748 !important;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #43e97b;
    font-weight: 600;
}

.suggestion-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    color: #2d3748 !important; /* Much darker text for better readability */
    line-height: 1.5;
}

.suggestion-category li:last-child {
    border-bottom: none;
}

/* Style game links */
.suggestion-category a {
    color: #667eea !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.suggestion-category a:hover {
    color: #764ba2 !important;
    border-bottom-color: #764ba2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Ensure descriptive text has good contrast */
.suggestion-category li strong {
    color: #2d3748 !important;
}

/* Target any spans or additional text elements */
.suggestion-category li span,
.suggestion-category li em {
    color: #4a5568 !important;
}

.bgg-footer {
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: footerGradientShift 20s ease infinite;
    position: relative;
    padding: 3rem 0 1rem 0;
}

@keyframes footerGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.meeple-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="meeples" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><g opacity="0.1"><circle cx="20" cy="12" r="4" fill="white"/><path d="M16 16h8v16h-2v-4h-4v4h-2z" fill="white"/></g></pattern></defs><rect width="100" height="100" fill="url(%23meeples)"/></svg>') repeat;
    opacity: 0.6;
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: white;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.footer-section a:hover {
    color: white;
    border-bottom-color: white;
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.footer-cta {
    margin-top: 1rem;
}

.footer-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom-content p {
    margin: 0.25rem 0;
}

.footer-note {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-note a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-note a:hover {
    border-bottom-color: white;
}


/* ===== MODAL STYLING ===== */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 1rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #43e97b);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-background {
        padding: 2rem 0 1rem 0;
    }
    
    .post-content > * {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .post-header {
        margin: 0 -1.5rem 2rem -1.5rem !important;
        padding: 1.5rem 1.5rem 1rem 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-background {
        padding: 1.5rem 0 1rem 0;
    }
    
    .post-content > * {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .post-header {
        margin: 0 -1rem 1.5rem -1rem !important;
        padding: 1rem 1rem 0.75rem 1rem !important;
    }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .modal-content h3 {
        color: #e2e8f0;
    }
} */

/* Breadcrumb navigation padding */
/* .breadcrumbs,
.breadcrumb,
nav.breadcrumb {
    padding: 1rem 2rem 0.5rem 2rem;
} */

.page-header {
    padding: 1rem 2rem 0 2rem;
}

.page-header h1 {
    padding: 0.5rem 2rem 1rem 2rem;
    margin-top: 0;
}