/*
Theme Name: CP's Cooler Theme
Theme URI: http://example.com/cps-cooler
Author: Your Name
Description: A theme for CP's Cooler ice cream shop, inspired by the original Divi design
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: cps-cooler
*/

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    background-color: #fff;
}

a {
    color: #2ea3f2;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2382c4;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #333;
    line-height: 1.4;
    padding-bottom: 10px;
}

/* Container */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Top Header Bar (Social Icons) */
#top-header {
    background-color: #2ea3f2;
    font-size: 12px;
}

#top-header .container {
    display: flex;
    justify-content: flex-end;
    padding: 8px 30px;
}

.social-icons {
    display: flex;
    gap: 8px;
    list-style: none;
}

.social-icons a {
    color: #fff;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
    color: #fff;
}

/* Main Header */
#main-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 1080px;
    margin: 0 auto;
}

.site-logo img {
    max-height: 54px;
    width: auto;
}

.site-logo h1 {
    font-size: 26px;
    color: #2ea3f2;
    margin: 0;
    padding: 0;
}

.site-logo h1 a {
    color: inherit;
}

/* Navigation - Divi Style */
#main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    color: rgba(0,0,0,0.6);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.4s ease-in-out;
}

#main-nav a:hover,
#main-nav .current-menu-item a,
#main-nav .current_page_item a {
    color: #2ea3f2;
    opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #2ea3f2;
    padding: 5px;
}

/* Hours Banner - matches original red banner style */
.hours-banner {
    background: linear-gradient(180deg, #c0392b 0%, #a93226 100%);
    color: #fff;
    padding: 50px 30px;
    text-align: center;
}

.hours-banner h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    padding-bottom: 0;
}

.hours-banner .hours-content {
    font-size: 18px;
    line-height: 2;
}

.hours-banner .closed-notice {
    background: rgba(0,0,0,0.25);
    padding: 20px 35px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 20px;
    font-size: 18px;
}

/* Main content area */
#main-content {
    padding: 50px 0;
    background: #fff;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-area.full-width {
    grid-template-columns: 1fr;
}

/* Post Cards - Divi blog style */
.post-card {
    background: #fff;
    margin-bottom: 60px;
    border: 1px solid #e5e5e5;
}

.post-card .post-thumbnail {
    display: block;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-card .post-thumbnail:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.post-card-content {
    padding: 30px;
}

.post-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-bottom: 0;
    line-height: 1.5;
}

.post-card h2 a {
    color: #333;
}

.post-card h2 a:hover {
    color: #2ea3f2;
}

.post-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.post-meta a {
    color: #2ea3f2;
}

.post-meta span {
    margin-right: 5px;
}

.post-excerpt {
    color: #666;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #2ea3f2;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2382c4;
    letter-spacing: 0.5px;
}

.read-more:after {
    content: ' →';
}

/* Sidebar - Divi style */
.sidebar {
    font-size: 14px;
}

.sidebar .widget {
    margin-bottom: 40px;
}

.sidebar h3,
.sidebar .widget-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.sidebar a {
    color: #666;
}

.sidebar a:hover {
    color: #2ea3f2;
}

/* Hours Widget in sidebar */
.hours-widget {
    background: #f7f7f7;
    padding: 25px;
    border: 1px solid #e5e5e5;
}

.hours-widget h3 {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.hours-widget .hours-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    color: #666;
}

.hours-widget .hours-line:last-child {
    border-bottom: none;
}

.hours-widget .closed-message {
    color: #c0392b;
    font-weight: 600;
}

/* Footer - Dark Divi style */
#main-footer {
    background: #222;
    color: #bbb;
    padding: 60px 30px 30px;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #ddd;
    padding-bottom: 0;
}

.footer-section p,
.footer-section li {
    color: #999;
    line-height: 1.8;
}

.footer-section a {
    color: #999;
}

.footer-section a:hover {
    color: #2ea3f2;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 13px;
}

/* Single post/page */
.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
}

.single-content h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
}

.single-content .post-meta {
    margin-bottom: 25px;
}

.single-content .featured-image {
    margin-bottom: 30px;
}

.single-content .featured-image img {
    width: 100%;
    height: auto;
}

.single-content .entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #666;
}

.single-content .entry-content p {
    margin-bottom: 20px;
}

.single-content .entry-content h2,
.single-content .entry-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #f7f7f7;
    color: #666;
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: #2ea3f2;
    color: #fff;
    border-color: #2ea3f2;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #2ea3f2;
    background: #fff;
    outline: none;
}

button,
input[type="submit"] {
    background: #2ea3f2;
    color: #fff;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

button:hover,
input[type="submit"]:hover {
    background: #2382c4;
}

/* Responsive Design */
@media (max-width: 980px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    #main-nav {
        display: none;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    #main-nav li {
        border-bottom: 1px solid #eee;
    }

    #main-nav a {
        display: block;
        padding: 12px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hours-banner {
        padding: 35px 20px;
    }

    .hours-banner h2 {
        font-size: 24px;
    }

    .hours-banner .hours-content {
        font-size: 16px;
    }

    .content-area {
        padding: 0 20px;
    }

    .post-card-content {
        padding: 20px;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 10px 0;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
