/*
Theme Name: Seven Little Words
Theme URI: https://7littlewords.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A custom theme for 7 Little Words puzzle website
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seven-little-words
*/

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
}

/* Base Layout */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 750px 250px;
    gap: 2rem;
}

.site-footer {
    flex-shrink: 0;
    width: 100%;
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

/* Content Area */
.content-area {
    width: 100%;
}

.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-branding {
    display: flex;
    align-items: center;
}

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

.site-title a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu-container {
    display: flex;
    gap: 2rem;
}

.primary-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.primary-menu-container a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.primary-menu-container a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Puzzle Archive Styles */
.puzzle-archive {
    padding: 2rem 0;
}

.archive-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.puzzle-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.puzzle-card:hover {
    transform: translateY(-5px);
}

.puzzle-card .entry-header {
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
}

.puzzle-card .entry-title {
    margin: 0;
    font-size: 1.25rem;
}

.puzzle-card .entry-title a {
    color: white;
    text-decoration: none;
}

.puzzle-card .entry-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.puzzle-card .entry-content {
    padding: 1.5rem;
}

.puzzle-preview {
    margin-top: 1rem;
}

.puzzle-preview h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.puzzle-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.puzzle-preview li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.puzzle-card .entry-footer {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    text-align: right;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background: #c0392b;
}

/* Single Puzzle Styles */
.puzzle-single {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.puzzle-single .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-bg);
}

.puzzle-single .entry-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.3;
}

.puzzle-single .entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    color: #666;
    margin-top: 1rem;
}

.puzzle-single .entry-meta .posted-on,
.puzzle-single .entry-meta .posted-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1rem;
}

.puzzle-single .entry-meta i {
    color: var(--primary-color);
}

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

.puzzle-content h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.clues-solutions {
    display: grid;
    gap: 1rem;
}

.clue-solution {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
}

.clue {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.solution {
    color: var(--accent-color);
    font-weight: 500;
}

.puzzle-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-bg);
}

.nav-previous a,
.nav-next a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: var(--accent-color);
}

/* Sidebar Styles */
.widget-area {
    display: none;
}

.sidebar {
    width: 250px;
    min-width: 0;
}

.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title i {
    color: var(--primary-color);
}

/* Enhanced Calendar Widget Styles */
.calendar-container {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
}

table#wp-calendar {
    width: 100%;
    border-collapse: collapse;
}

#wp-calendar caption {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

#wp-calendar th,
#wp-calendar td {
    padding: 0.4rem 0.2rem;
}

#wp-calendar th {
    padding: 0.6rem;
    text-align: center;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

#wp-calendar tbody td {
    background-color: white;
}

#wp-calendar tbody td:hover {
    background-color: var(--primary-light);
}

#wp-calendar tbody td a {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin: -0.6rem;
    padding: 0.6rem;
    border-radius: 0;
    background-color: rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

#wp-calendar tbody td a:hover {
    background-color: rgba(37, 99, 235, 0.2);
}

#wp-calendar #today {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

#wp-calendar #today a {
    color: white;
    background-color: transparent;
}

#wp-calendar tfoot #prev,
#wp-calendar tfoot #next {
    padding: 0.6rem;
}

#wp-calendar tfoot a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Latest Puzzles Widget */
.puzzle-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.puzzle-list-item {
    margin-bottom: 0.75rem;
}

.puzzle-list-item:last-child {
    margin-bottom: 0;
}

.puzzle-list-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.puzzle-list-item a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.puzzle-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.puzzle-list-content {
    flex: 1;
    min-width: 0; /* Ensure text truncation works */
}

.puzzle-list-date {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* About Widget */
.about-content {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-to-play h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
}

.how-to-play ol {
    padding-left: 1.25rem;
    margin: 0;
}

.how-to-play li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.how-to-play li:last-child {
    margin-bottom: 0;
}

/* Footer Styles */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section.about p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quick-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

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

.footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.separator {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-section.about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .puzzle-single .entry-title {
        font-size: 1.6rem;
    }

    .puzzle-single .entry-meta {
        gap: 1rem;
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Front Page Styles */
.home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #34495e;
    max-width: 600px;
    margin: 0 auto;
}

.latest-puzzles {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.latest-puzzles h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.latest-puzzles h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.puzzle-archive-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.archive-puzzle-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.archive-puzzle-card:hover {
    transform: translateY(-5px);
}

.archive-puzzle-header {
    background: var(--primary-color);
    padding: 1.5rem;
    text-align: center;
}

.puzzle-date-meta {
    display: block;
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.puzzle-date-meta:hover {
    opacity: 0.9;
}

.view-puzzle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-end;
}

.view-puzzle-btn:hover {
    background: rgba(255,255,255,0.3);
}

.archive-puzzle-content {
    padding: 1.5rem;
}

.archive-clues-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.archive-clue-item {
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-clue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.archive-clue-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.archive-clue-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

.archive-letter-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.about-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.about-section p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Daily Puzzle Section */
.daily-puzzle-section {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.daily-puzzle {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.puzzle-header {
    background: var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 0;
    text-align: center;
    color: white;
}

.puzzle-header h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.puzzle-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 1rem;
}

.puzzle-date,
.puzzle-author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.puzzle-date i,
.puzzle-author i {
    font-size: 1.1em;
    opacity: 0.8;
}

.view-solution {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-solution:hover {
    background: #c0392b;
}

.clues-container {
    padding: 1.5rem;
    background: white;
}

.clues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clue-item {
    background: var(--light-bg);
    padding: 0;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.clue-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
}

.clue-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.4;
    margin-right: 1rem;
}

.letter-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Previous Puzzles Section */
.archive-clues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-clue-item {
    background: var(--light-bg);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
        max-width: 750px;
    }
    
    .main-content {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .puzzle-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu-container {
        display: none;
    }

    .primary-menu-container.active {
        display: block;
    }

    .primary-menu-container ul {
        flex-direction: column;
        gap: 1rem;
    }

    .how-to-play-grid {
        grid-template-columns: 1fr;
    }

    .home-content {
        padding: 1rem;
    }

    .welcome-section {
        padding: 2rem 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .puzzle-card {
        margin-bottom: 1rem;
    }

    .widget-area {
        padding: 1rem;
    }

    .game-features {
        grid-template-columns: 1fr;
    }

    .calendar td {
        padding: 0.25rem;
    }

    .puzzle-icon {
        display: none;
    }

    .daily-puzzle-section,
    .latest-puzzles {
        padding: 1rem;
    }

    .puzzle-header h2 {
        font-size: 1.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .puzzle-date,
    .puzzle-author {
        justify-content: center;
    }

    .view-solution {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .clue-link {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .clue-text {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .letter-count {
        width: 100%;
        text-align: center;
    }

    .archive-clue-link {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .archive-letter-count {
        width: 100%;
        justify-content: center;
    }

    .puzzle-date-meta {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .main-content, 
    .sidebar {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .puzzle-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .primary-menu-container {
        display: none;
    }

    .primary-menu-container.active {
        display: block;
    }

    .primary-menu-container ul {
        flex-direction: column;
        gap: 1rem;
    }

    .how-to-play-grid {
        grid-template-columns: 1fr;
    }

    .home-content {
        padding: 1rem;
    }

    .welcome-section {
        padding: 2rem 1rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .puzzle-card {
        margin-bottom: 1rem;
    }

    .widget-area {
        padding: 1rem;
    }

    .game-features {
        grid-template-columns: 1fr;
    }

    .calendar td {
        padding: 0.25rem;
    }

    .puzzle-icon {
        display: none;
    }

    .daily-puzzle-section,
    .latest-puzzles {
        padding: 1rem;
    }

    .puzzle-header h2 {
        font-size: 1.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .puzzle-date,
    .puzzle-author {
        justify-content: center;
    }

    .view-solution {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .clue-link {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .clue-text {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .letter-count {
        width: 100%;
        text-align: center;
    }

    .archive-clue-link {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .archive-letter-count {
        width: 100%;
        justify-content: center;
    }

    .puzzle-date-meta {
        font-size: 1.2rem;
    }
}

/* Puzzle Post Styles - These will apply to any post in the puzzle category */
.category-puzzle .entry-header,
.category-puzzle .entry-title,
.category-puzzle .entry-content,
.category-puzzle .entry-meta {
    /* Reset any existing styles */
    all: unset;
    display: block;
}

body.single-post.category-puzzle {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.single-post.category-puzzle .site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(350px, 1fr);
    gap: 2rem;
}

.single-post.category-puzzle .site-main {
    min-width: 0;
}

.single-post.category-puzzle .entry-header {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    padding: 2.5rem 2rem;
    position: relative;
    border-radius: 0.75rem 0.75rem 0 0;
    margin-bottom: 0;
    overflow: hidden;
}

.single-post.category-puzzle .entry-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    border-radius: 0.75rem 0.75rem 0 0;
    z-index: 0;
}

.single-post.category-puzzle .entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.single-post.category-puzzle .entry-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: white;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.single-post.category-puzzle .posted-on,
.single-post.category-puzzle .byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.single-post.category-puzzle .entry-content {
    background-color: white;
    border-radius: 0 0 0.75rem 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
}

/* Update responsive styles to maintain sidebar width on medium screens */
@media (max-width: 1200px) and (min-width: 992px) {
    .site-content,
    .single-post.category-puzzle .site-content {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
        gap: 1.5rem;
    }
}

/* Enhanced Search Widget Styles */
.sidebar-widget.search-widget {
    background-color: var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

#puzzle-search {
    flex: 1;
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: white;
    transition: all 0.2s;
}

#puzzle-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#puzzle-search::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: var(--primary-dark);
}

.search-button i {
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: var(--primary-light);
}

.search-result-item a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.search-result-item .date {
    display: block;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.search-result-item .highlight {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.no-results {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

/* Enhanced Sidebar Styles */
.sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.sidebar-widget {
    background-color: var(--card-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Latest Puzzles Widget */
.puzzle-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.puzzle-list-item {
    margin-bottom: 0.75rem;
}

.puzzle-list-item:last-child {
    margin-bottom: 0;
}

.puzzle-list-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.puzzle-list-item a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.puzzle-list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.puzzle-list-content {
    flex: 1;
    min-width: 0; /* Ensure text truncation works */
}

.puzzle-list-date {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* About Widget */
.about-content {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-to-play h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
}

.how-to-play ol {
    padding-left: 1.25rem;
    margin: 0;
}

.how-to-play li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.how-to-play li:last-child {
    margin-bottom: 0;
}

/* Calendar Widget Styles */
.calendar-widget {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.calendar-widget h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-widget h3 i {
    color: var(--primary-color);
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background-color: var(--primary-light);
}

.current-month {
    font-weight: 600;
    color: var(--text-color);
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.calendar-table th {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    background-color: var(--primary-light);
}

.calendar-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.calendar-table td.has-puzzle {
    background-color: rgba(37, 99, 235, 0.1);
}

.calendar-table td a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.calendar-table td a:hover {
    background-color: var(--primary-light);
}

/* Today's date styling */
.calendar-table td.today {
    background-color: var(--primary-color);
    color: white;
}

.calendar-table td.today a {
    color: white;
}

.calendar-table td.today a:hover {
    background-color: var(--primary-dark);
} 