/**
 * Theme Name: CampingFace
 * Theme URI: https://campingface.com
 * Description: A fast, modern WordPress theme for camping gear reviews and park guides with Amazon affiliate integration
 * Author: CampingFace
 * Author URI: https://campingface.com
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: campingface
 * Tags: blog, camping, affiliate, reviews, tailwind
 */

/* Custom styles to complement Tailwind */

/* Article Content - Default Typography */
.prose h1, 
article h1, 
.post-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3d692c;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    border-bottom: 3px solid #d3eac8;
    padding-bottom: 0.75rem;
}

.prose h2, 
article h2, 
.post-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #3d692c;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    border-bottom: 2px solid #e9f5e3;
    padding-bottom: 0.5rem;
}

.prose h3, 
article h3, 
.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4c8435;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4, 
article h4, 
.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5ea148;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h5, 
article h5, 
.post-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #5ea148;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose h6, 
article h6, 
.post-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #82bd69;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Paragraphs and Text */
.prose p, 
article p, 
.post-content p {
    font-size: 1.125rem;
    color: #374151;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Links */
.prose a, 
article a, 
.post-content a {
    color: #b58862;
    text-decoration: underline;
    text-decoration-color: #d8c2a5;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prose a:hover, 
article a:hover, 
.post-content a:hover {
    color: #885b47;
    text-decoration-color: #b58862;
}

/* Blockquotes */
.prose blockquote, 
article blockquote, 
.post-content blockquote {
    border-left: 4px solid #afd89d;
    background-color: #f6faf3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
    font-size: 1.125rem;
    position: relative;
}

.prose blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #afd89d;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: serif;
}

/* Lists */
.prose ul, 
article ul, 
.post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.7;
}

.prose ol, 
article ol, 
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.7;
}

.prose li, 
article li, 
.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.prose ul li {
    list-style-type: disc;
    list-style-color: #5ea148;
}

.prose ol li {
    list-style-type: decimal;
    list-style-color: #5ea148;
}

/* Text Formatting */
.prose strong, 
article strong, 
.post-content strong {
    color: #6b4c3a;
    font-weight: 600;
}

.prose em, 
article em, 
.post-content em {
    color: #4b5563;
    font-style: italic;
}

/* Code */
.prose code, 
article code, 
.post-content code {
    background-color: #f3f4f6;
    color: #6b4c3a;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.prose pre, 
article pre, 
.post-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Images */
.prose img, 
article img, 
.post-content img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    width: 100%;
    height: auto;
}

/* Tables */
.prose table, 
article table, 
.post-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
    font-size: 1rem;
}

.prose th, 
article th, 
.post-content th {
    background-color: #e9f5e3;
    color: #3d692c;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #d3eac8;
}

.prose td, 
article td, 
.post-content td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.prose tr:last-child td {
    border-bottom: none;
}

/* Horizontal Rules */
.prose hr, 
article hr, 
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #d3eac8 0%, #afd89d 50%, #d3eac8 100%);
    margin: 3rem 0;
    border-radius: 1px;
}

/* Article Content Container */
.prose, 
article, 
.post-content {
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* First paragraph after headings */
.prose h1 + p, 
.prose h2 + p, 
.prose h3 + p, 
.prose h4 + p, 
.prose h5 + p, 
.prose h6 + p,
article h1 + p, 
article h2 + p, 
article h3 + p, 
article h4 + p, 
article h5 + p, 
article h6 + p,
.post-content h1 + p, 
.post-content h2 + p, 
.post-content h3 + p, 
.post-content h4 + p, 
.post-content h5 + p, 
.post-content h6 + p {
    margin-top: 0;
}

/* Nested lists */
.prose ul ul, 
.prose ol ol, 
.prose ul ol, 
.prose ol ul,
article ul ul, 
article ol ol, 
article ul ol, 
article ol ul,
.post-content ul ul, 
.post-content ol ol, 
.post-content ul ol, 
.post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Figure and Caption */
.prose figure, 
article figure, 
.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.prose figcaption, 
article figcaption, 
.post-content figcaption {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.75rem;
    text-align: center;
}

/* WordPress specific classes */
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
    text-align: center;
}

.wp-caption {
    max-width: 100%;
    margin: 1rem 0;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .prose h1, article h1, .post-content h1 {
        font-size: 1.875rem;
    }
    
    .prose h2, article h2, .post-content h2 {
        font-size: 1.5rem;
    }
    
    .prose h3, article h3, .post-content h3 {
        font-size: 1.25rem;
    }
    
    .prose p, article p, .post-content p {
        font-size: 1rem;
    }
    
    .alignleft, .alignright {
        float: none;
        margin: 1rem 0;
        max-width: 100%;
        display: block;
    }
}

/* Custom utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Amazon button styles */
a[rel*="sponsored"] {
    @apply inline-flex items-center justify-center;
}

/* Loading animation for images */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Smooth animations */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2d5016;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3e6b27;
}

/* Focus styles for accessibility */
.focus\:ring-forest:focus {
    ring-color: #2d5016;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .prose {
        max-width: none;
    }
}