/*
Theme Name: Clarksville Crafters
Theme URI: https://www.clarksvillecrafters.com
Description: Custom theme for Clarksville Crafters - Community Events Calendar with business directory and ad tracking
Version: 1.0.0
Author: Clarksville Crafters
Author URI: https://www.clarksvillecrafters.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clarksvillecrafters
Tags: events, calendar, responsive, business-directory
*/

/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #B8312F 0%, #8B2323 100%);
    color: #fff;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-branding {
    text-align: center;
}

.site-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.9;
}

/* Navigation */
.main-navigation {
    background-color: #fff;
    border-bottom: 3px solid #B8312F;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 15px 25px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background-color: #B8312F;
    color: #fff;
}

/* Banner Ad Area */
.banner-ad-area {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
}

.banner-ad {
    display: inline-block;
    max-width: 100%;
}

.banner-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}

.banner-placeholder {
    background-color: #dee2e6;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
    border: 2px dashed #adb5bd;
    border-radius: 4px;
}

/* Main Content Area - 3 Column Layout */
.content-area {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    padding: 30px;
    min-height: 600px;
}

/* Sidebars */
.sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #B8312F;
    color: #333;
}

.business-directory {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.business-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    text-align: center;
}

.business-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.business-link {
    display: block;
    text-decoration: none;
}

.business-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.business-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
    margin-top: 8px;
}

.business-link:hover .business-name {
    color: #B8312F;
}

/* Main Content Column */
.main-content {
    background-color: #fff;
}

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.content-title {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

/* Search and Filter Area */
.search-filter-area {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.search-button {
    background-color: #B8312F;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #8B2323;
}

/* Calendar Styles */
.calendar-container {
    margin-bottom: 30px;
}

/* Event List Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.event-date-badge {
    display: inline-block;
    background-color: #B8312F;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.event-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.event-title a {
    color: #333;
    text-decoration: none;
}

.event-title a:hover {
    color: #B8312F;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #6c757d;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-excerpt {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-category {
    display: inline-block;
    background-color: #e7f3ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 5px;
}

.read-more {
    display: inline-block;
    background-color: #B8312F;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #8B2323;
    text-decoration: none;
}

/* Featured Events */
.featured-events {
    margin-bottom: 40px;
}

.featured-events-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.featured-event {
    background: linear-gradient(135deg, #B8312F 0%, #8B2323 100%);
    color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.featured-event .event-title {
    color: #fff;
    font-size: 2em;
}

.featured-event .event-title a {
    color: #fff;
}

.featured-event .event-meta {
    color: rgba(255,255,255,0.9);
}

.featured-event .event-excerpt {
    color: rgba(255,255,255,0.95);
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 30px 20px;
    margin-top: 40px;
}

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

.footer-section h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #fff;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    color: #5B9BD5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9em;
    color: #95a5a6;
}

/* Newsletter Signup */
.newsletter-signup {
    background-color: #34495e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.newsletter-signup h3 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter-button {
    background-color: #B8312F;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.newsletter-button:hover {
    background-color: #8B2323;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 200px 1fr 200px;
        gap: 20px;
        padding: 20px;
    }
    
    .site-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 3;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar-right {
        order: 4;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation a {
        border-bottom: 1px solid #e9ecef;
    }
    
    .site-title {
        font-size: 1.8em;
    }
    
    .site-description {
        font-size: 1em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input,
    .filter-select,
    .search-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 15px;
    }
    
    .site-title {
        font-size: 1.5em;
    }
    
    .content-area {
        padding: 15px;
    }
    
    .banner-ad-area {
        padding: 10px;
    }
    
    .event-title {
        font-size: 1.3em;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .main-navigation,
    .banner-ad-area,
    .sidebar,
    .search-filter-area,
    .site-footer {
        display: none;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
}
