/*
Theme Name: Cherry - KeyForge Events
Description: A clean, spacious WordPress theme for KeyForge events with cherry-inspired design
Version: 1.12
Author: jtrussell
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables */
:root {
    --cherry-red: #c44569;
    --cherry-dark: #a73853;
    --cherry-light: #e8a5b8;
    --cherry-pale: #f7e8ec;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-gray: #e9ecef;
}

/* Typography */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--cherry-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cherry-dark);
    text-decoration: underline;
}

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

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--cherry-pale) 0%, var(--white) 100%);
    border-bottom: 3px solid var(--cherry-light);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(196, 69, 105, 0.1);
}

.site-title {
    text-align: center;
    margin-bottom: 1rem;
}

.site-title a {
    color: var(--cherry-dark);
    font-size: 3rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.site-title a::after {
    content: '🍒';
    font-size: 1.5rem;
    margin-left: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.site-description {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 1.2rem;
}

/* Navigation */
.main-navigation {
    background-color: var(--cherry-red);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    background-color: var(--white);
    color: var(--cherry-red);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Nested Navigation Styles */
.nav-menu {
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
}

.nav-menu li:hover .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    color: var(--cherry-red);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    text-transform: none;
    font-size: 0.9rem;
    display: block;
    transition: background-color 0.3s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: var(--cherry-pale);
    color: var(--cherry-dark);
    transform: none;
    box-shadow: none;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 3rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
}

/* Consistent spacing after hero image or when no hero image */
.site-main .container {
    margin-top: 3rem;
}

/* When hero image is present, adjust spacing */
.hero-image-container + .container {
    margin-top: 3rem;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 1rem;
}

/* Full width content when no sidebar */
.no-sidebar .content-area {
    grid-template-columns: 1fr;
    gap: 0;
}

.no-sidebar .primary-content {
    max-width: none;
}

/* Posts and Pages */
.post {
    background: var(--white);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(196, 69, 105, 0.1);
    border-top: 4px solid var(--cherry-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 69, 105, 0.15);
}

.entry-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--cherry-pale);
    padding-bottom: 1rem;
}

.entry-title {
    color: var(--cherry-dark);
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.entry-meta a {
    color: var(--cherry-red);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-dark));
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 69, 105, 0.3);
    text-decoration: none;
    color: var(--white);
}

/* Sidebar */
.sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(196, 69, 105, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.widget {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--cherry-pale);
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-title {
    color: var(--cherry-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-light));
    border-radius: 2px;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--cherry-dark) 0%, var(--cherry-red) 100%);
    color: var(--white);
    padding: 3rem 0 2rem;
    margin-top: auto;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
    text-decoration: none;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Make header flush on mobile */
    .site-header .container,
    .main-navigation .container {
        padding: 0;
    }
    
    /* Add padding to content inside header containers */
    .site-header .site-branding {
        padding: 0 1rem;
    }
    
    .main-navigation .nav-menu {
        padding: 0 1rem;
    }
    
    .site-title a {
        font-size: 2rem;
    }
    
    .content-area {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .footer-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 2rem 0;
    }
    
    /* Make header flush on smaller mobile too */
    .site-header .container,
    .main-navigation .container {
        padding: 0;
    }
    
    .site-header .site-branding {
        padding: 0 1rem;
    }
    
    .main-navigation .nav-menu {
        padding: 0 1rem;
    }
    
    .site-title a {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-cherry { color: var(--cherry-red); }
.bg-cherry-light { background-color: var(--cherry-pale); }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-1 { padding: 1rem; }

/* Form Styles */
input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--cherry-red);
    box-shadow: 0 0 0 3px rgba(196, 69, 105, 0.1);
}

button, .button {
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-dark));
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 69, 105, 0.3);
    color: var(--white);
}

/* Hero Image Styles */
.hero-image-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -3rem;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(196, 69, 105, 0.1) 100%);
}

/* Responsive hero image heights */
@media (max-width: 768px) {
    .hero-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 200px;
    }
}

/* Home Page Recent Posts Styles */
.recent-posts-section {
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--cherry-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-light));
    border-radius: 2px;
}

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

.recent-post {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(196, 69, 105, 0.1);
    border-top: 4px solid var(--cherry-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 69, 105, 0.15);
}

.recent-post .post-thumbnail {
    margin-bottom: 0;
    overflow: hidden;
}

.recent-post .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post .post-thumbnail:hover img {
    transform: scale(1.05);
}

.recent-post .entry-header,
.recent-post .entry-content,
.recent-post .entry-footer {
    padding: 0 2rem;
}

.recent-post .entry-header {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.recent-post .entry-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.recent-post .entry-title a {
    color: var(--cherry-dark);
    text-decoration: none;
}

.recent-post .entry-title a:hover {
    color: var(--cherry-red);
}

.recent-post .entry-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.recent-post .entry-content {
    padding-bottom: 2rem;
}

.recent-post .entry-footer {
    padding-bottom: 2rem;
    border-top: 1px solid var(--cherry-pale);
    padding-top: 1rem;
}

.view-all-posts {
    text-align: center;
}

.view-all-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-dark));
    color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 69, 105, 0.3);
    text-decoration: none;
    color: var(--white);
}

.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(196, 69, 105, 0.1);
}

.no-posts h2 {
    color: var(--cherry-dark);
    margin-bottom: 1rem;
}

.homepage-intro-content {
    margin-bottom: 4rem;
}

.homepage-intro-content .hero-image-container {
    margin-bottom: 2rem;
}

.homepage-page {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(196, 69, 105, 0.1);
    border-top: 4px solid var(--cherry-light);
}

.homepage-page .entry-title {
    text-align: center;
    color: var(--cherry-dark);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.homepage-page .entry-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--cherry-red), var(--cherry-light));
    border-radius: 2px;
}

.homepage-page .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.homepage-page .entry-content p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for homepage content */
@media (max-width: 768px) {
    .homepage-page {
        padding: 2rem;
    }
    
    .homepage-page .entry-title {
        font-size: 2rem;
    }
    
    .homepage-intro-content {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .homepage-page {
        padding: 1.5rem;
    }
    
    .homepage-page .entry-title {
        font-size: 1.5rem;
    }
    
    .homepage-page .entry-content {
        text-align: left;
    }
}

/* Responsive adjustments for recent posts */
@media (max-width: 768px) {
    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .recent-post .entry-header,
    .recent-post .entry-content,
    .recent-post .entry-footer {
        padding: 0 1.5rem;
    }
    
    .recent-post .entry-header {
        padding-top: 1.5rem;
    }
    
    .recent-post .entry-content,
    .recent-post .entry-footer {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .view-all-button {
        padding: 0.8rem 2rem;
    }
}