/*
Theme Name: CanvasCubs
Theme URI: https://canvascubs.com
Author: CanvasCubs Team
Author URI: https://canvascubs.com
Description: A premium WordPress theme with Pinterest-style layouts, complete Customizer controls, header/footer builders, and modern design. Perfect for craft blogs, DIY enthusiasts, and creative content creators.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: canvascubs
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, pinterest-style, masonry, one-column, two-columns, right-sidebar, footer-widgets, custom-colors, editor-style, theme-options
*/

/* -------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------

   1. CSS Variables (Customizer-driven)
   2. Base Styles & Typography
   3. Layout & Container
   4. Preloader
   5. Scroll to Top
   6. Header Builder Styles
   7. Navigation Menus
   8. Hero Section
   9. Blog Posts & Grids
   10. Single Post & Page
   11. Sidebar & Widgets
   12. Footer Builder
   13. Homepage Sections
   14. Components (Buttons, Cards, etc.)
   15. Comment Styling
   16. Responsive Design
   17. Reading Progress Bar
   18. Social Share Buttons
   19. Table of Contents
   20. WP Specific Styles
   21. Custom Animations

   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   1. CSS Variables (Customizer-driven)
   ------------------------------------------------------------------------- */

:root {
    /* Colors - Will be overridden by Customizer */
    --cc-primary: #f94144;
    --cc-primary-hover: #e63946;
    --cc-secondary: #0d9488;
    --cc-secondary-hover: #0f766e;
    --cc-accent: #8b5cf6;
    --cc-background: #fef7ed;
    --cc-header-bg: #ffffff;
    --cc-footer-bg: #18181b;

    /* Category Badge Colors */
    --cc-badge-easy-bg: #f0fdf4;
    --cc-badge-easy-text: #15803d;
    --cc-badge-easy-border: #dcfce7;
    --cc-badge-medium-bg: #fefce8;
    --cc-badge-medium-text: #a16207;
    --cc-badge-medium-border: #fef9c3;
    --cc-badge-hard-bg: #fff5f5;
    --cc-badge-hard-text: #e63946;
    --cc-badge-hard-border: #ffe0e0;
    --cc-badge-tutorial-bg: #f0fdfa;
    --cc-badge-tutorial-text: #0d9488;
    --cc-badge-tutorial-border: #ccfbf1;

    /* Typography */
    --cc-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cc-font-menu: 'Inter', sans-serif;
    --cc-font-button: 'Inter', sans-serif;

    /* Font Sizes */
    --cc-font-size-base: 16px;
    --cc-font-size-h1: 3.75rem;
    --cc-font-size-h2: 3rem;
    --cc-font-size-h3: 2.25rem;
    --cc-font-size-h4: 1.5rem;
    --cc-font-size-h5: 1.25rem;
    --cc-font-size-h6: 1rem;

    /* Mobile Font Sizes */
    --cc-mobile-font-size-h1: 2.5rem;
    --cc-mobile-font-size-h2: 2rem;
    --cc-mobile-font-size-h3: 1.5rem;

    /* Font Weights */
    --cc-font-weight-heading: 700;
    --cc-font-weight-body: 400;
    --cc-font-weight-menu: 500;
    --cc-font-weight-button: 600;

    /* Line Heights */
    --cc-line-height-heading: 1.2;
    --cc-line-height-body: 1.6;
    --cc-line-height-menu: 1.5;

    /* Letter Spacing */
    --cc-letter-spacing-heading: 0;
    --cc-letter-spacing-body: 0;

    /* Spacing */
    --cc-container-width: 80rem;
    --cc-spacing-xs: 0.25rem;
    --cc-spacing-sm: 0.5rem;
    --cc-spacing-md: 1rem;
    --cc-spacing-lg: 1.5rem;
    --cc-spacing-xl: 2rem;
    --cc-spacing-2xl: 3rem;
    --cc-spacing-3xl: 4rem;
    --cc-section-padding: 5rem;
    --cc-header-height: 80px;
    --cc-header-height-mobile: 64px;

    /* Border Radius */
    --cc-radius-sm: 0.25rem;
    --cc-radius-md: 0.5rem;
    --cc-radius-lg: 1rem;
    --cc-radius-xl: 1.5rem;
    --cc-radius-full: 9999px;

    /* Shadows */
    --cc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --cc-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --cc-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --cc-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --cc-transition-fast: 150ms ease;
    --cc-transition-normal: 300ms ease;
    --cc-transition-slow: 500ms ease;
}

/* Dark Mode */
.cc-dark-mode {
    --cc-background: #18181b;
    --cc-header-bg: #1f1f23;
    --cc-footer-bg: #0a0a0b;
}

/* -------------------------------------------------------------------------
   2. Base Styles & Typography
   ------------------------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--cc-font-size-base);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--cc-font-body);
    font-size: inherit;
    font-weight: var(--cc-font-weight-body);
    line-height: var(--cc-line-height-body);
    letter-spacing: var(--cc-letter-spacing-body);
    color: #27272a;
    background-color: var(--cc-background);
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cc-font-heading);
    font-weight: var(--cc-font-weight-heading);
    line-height: var(--cc-line-height-heading);
    letter-spacing: var(--cc-letter-spacing-heading);
    color: #18181b;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: var(--cc-font-size-h1); }
h2 { font-size: var(--cc-font-size-h2); }
h3 { font-size: var(--cc-font-size-h3); }
h4 { font-size: var(--cc-font-size-h4); }
h5 { font-size: var(--cc-font-size-h5); }
h6 { font-size: var(--cc-font-size-h6); }

@media (max-width: 768px) {
    h1 { font-size: var(--cc-mobile-font-size-h1); }
    h2 { font-size: var(--cc-mobile-font-size-h2); }
    h3 { font-size: var(--cc-mobile-font-size-h3); }
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--cc-primary);
    text-decoration: none;
    transition: color var(--cc-transition-fast);
}

a:hover {
    color: var(--cc-primary-hover);
}

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

/* -------------------------------------------------------------------------
   3. Layout & Container
   ------------------------------------------------------------------------- */

.cc-container {
    max-width: var(--cc-container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .cc-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cc-container {
        padding: 0 2rem;
    }
}

.cc-boxed-layout {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    box-shadow: var(--cc-shadow-lg);
    border-radius: var(--cc-radius-lg);
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   4. Preloader
   ------------------------------------------------------------------------- */

.cc-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cc-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.cc-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--cc-background);
    border-top-color: var(--cc-primary);
    border-radius: 50%;
    animation: cc-spin 0.8s linear infinite;
}

@keyframes cc-spin {
    to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------
   5. Scroll to Top
   ------------------------------------------------------------------------- */

.cc-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--cc-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--cc-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--cc-transition-normal);
    z-index: 999;
}

.cc-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.cc-scroll-top:hover {
    background: var(--cc-primary-hover);
    transform: translateY(-3px);
}

.cc-scroll-top svg {
    width: 24px;
    height: 24px;
}

/* -------------------------------------------------------------------------
   6. Header Builder Styles
   ------------------------------------------------------------------------- */

.cc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cc-header-bg);
    transition: all var(--cc-transition-normal);
}

.cc-header.sticky {
    box-shadow: var(--cc-shadow-md);
}

.cc-header.transparent {
    background: transparent;
    position: absolute;
}

.cc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--cc-header-height);
    max-width: var(--cc-container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 1023px) {
    .cc-header-inner {
        height: var(--cc-header-height-mobile);
    }
}

.cc-header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-header-logo img {
    max-height: 50px;
    width: auto;
}

.cc-header-logo-text {
    font-family: var(--cc-font-heading);
    font-size: 1.5rem;
    font-weight: var(--cc-font-weight-heading);
    color: #18181b;
    margin: 0;
}

.cc-header-logo-text span {
    color: var(--cc-primary);
}

/* Header Layout: Logo Left, Menu Right (Default) */
.cc-header-layout-1 .cc-header-inner {
    flex-direction: row;
}

/* Header Layout: Logo Center, Menu Below */
.cc-header-layout-2 .cc-header-inner {
    flex-direction: column;
    height: auto;
    padding: 1rem;
}

.cc-header-layout-2 .cc-header-logo {
    margin-bottom: 1rem;
}

/* Header Layout: Logo Left, Menu Center */
.cc-header-layout-3 .cc-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.cc-header-layout-3 .cc-header-logo {
    justify-self: start;
}

.cc-header-layout-3 .cc-header-navigation {
    justify-self: center;
}

.cc-header-layout-3 .cc-header-actions {
    justify-self: end;
}

/* -------------------------------------------------------------------------
   7. Navigation Menus
   ------------------------------------------------------------------------- */

.cc-nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    font-family: var(--cc-font-menu);
    font-weight: var(--cc-font-weight-menu);
}

@media (min-width: 1024px) {
    .cc-nav-menu {
        display: flex;
    }
}

.cc-nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: #52525b;
    transition: all var(--cc-transition-fast);
    border-radius: var(--cc-radius-md);
}

.cc-nav-menu li a:hover,
.cc-nav-menu li.current-menu-item a {
    color: var(--cc-primary);
    background: rgba(249, 65, 68, 0.05);
}

/* Mobile Menu */
.cc-mobile-menu-toggle {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #52525b;
}

@media (min-width: 1024px) {
    .cc-mobile-menu-toggle {
        display: none;
    }
}

.cc-mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e4e4e7;
    margin-top: 0.5rem;
}

.cc-mobile-nav.active {
    display: block;
}

@media (min-width: 1024px) {
    .cc-mobile-nav {
        display: none !important;
    }
}

.cc-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-mobile-nav li a {
    display: block;
    padding: 0.75rem 1rem;
    color: #52525b;
    transition: all var(--cc-transition-fast);
    border-radius: var(--cc-radius-md);
}

.cc-mobile-nav li a:hover {
    color: var(--cc-primary);
    background: rgba(249, 65, 68, 0.05);
}

/* -------------------------------------------------------------------------
   8. Hero Section
   ------------------------------------------------------------------------- */

.cc-hero {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--cc-header-height) + 3rem);
    padding-bottom: var(--cc-section-padding);
    background: linear-gradient(135deg, #fef7ed, #fef3e2, #feecd8);
}

.cc-hero-inner {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cc-hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.cc-hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .cc-hero-content {
        text-align: left;
    }
}

.cc-hero-title {
    margin-bottom: 1.5rem;
}

.cc-hero-description {
    font-size: 1.125rem;
    color: #52525b;
    margin-bottom: 2rem;
    max-width: 40rem;
}

@media (min-width: 1024px) {
    .cc-hero-description {
        font-size: 1.25rem;
    }
}

.cc-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cc-hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .cc-hero-buttons {
        justify-content: flex-start;
    }
}

.cc-hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cc-hero-image-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cc-hero-image-column:nth-child(2) {
    padding-top: 2rem;
}

.cc-hero-image-card {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--cc-shadow-lg);
    transform: rotate(0deg);
    transition: transform var(--cc-transition-normal);
}

.cc-hero-image-card:nth-child(1) {
    transform: rotate(1deg);
}

.cc-hero-image-card:nth-child(2) {
    transform: rotate(-2deg);
}

.cc-hero-image-card:nth-child(3) {
    transform: rotate(-2deg);
}

.cc-hero-image-card:nth-child(4) {
    transform: rotate(1deg);
}

.cc-hero-image-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.cc-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background: linear-gradient(to top, var(--cc-background), transparent);
}

/* -------------------------------------------------------------------------
   9. Blog Posts & Grids
   ------------------------------------------------------------------------- */

.cc-posts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cc-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Masonry Layout */
.cc-masonry-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

@media (min-width: 640px) {
    .cc-masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .cc-masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1280px) {
    .cc-masonry-grid {
        column-count: 4;
    }
}

/* List Layout */
.cc-list-layout .cc-post-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .cc-list-layout .cc-post-card {
        grid-template-columns: 1fr;
    }
}

/* Post Card */
.cc-post-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--cc-shadow-md);
    overflow: hidden;
    transition: all var(--cc-transition-normal);
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.cc-masonry-grid .cc-post-card {
    display: inline-block;
    width: 100%;
}

.cc-post-card:hover {
    box-shadow: var(--cc-shadow-xl);
    transform: translateY(-4px);
}

.cc-post-card-thumbnail {
    position: relative;
    overflow: hidden;
}

.cc-post-card-thumbnail img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--cc-transition-slow);
}

.cc-post-card:hover .cc-post-card-thumbnail img {
    transform: scale(1.1);
}

.cc-post-card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity var(--cc-transition-normal);
}

.cc-post-card:hover .cc-post-card-overlay {
    opacity: 1;
}

.cc-post-card-badges {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--cc-transition-normal);
}

.cc-post-card:hover .cc-post-card-badges {
    opacity: 1;
}

.cc-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--cc-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.cc-badge-easy {
    background: var(--cc-badge-easy-bg);
    color: var(--cc-badge-easy-text);
    border: 1px solid var(--cc-badge-easy-border);
}

.cc-badge-medium {
    background: var(--cc-badge-medium-bg);
    color: var(--cc-badge-medium-text);
    border: 1px solid var(--cc-badge-medium-border);
}

.cc-badge-hard {
    background: var(--cc-badge-hard-bg);
    color: var(--cc-badge-hard-text);
    border: 1px solid var(--cc-badge-hard-border);
}

.cc-badge-tutorial {
    background: var(--cc-badge-tutorial-bg);
    color: var(--cc-badge-tutorial-text);
    border: 1px solid var(--cc-badge-tutorial-border);
}

.cc-post-card-content {
    padding: 1.25rem 1.5rem;
}

.cc-post-card-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .cc-post-card-title {
        font-size: 1.25rem;
    }
}

.cc-post-card-title a {
    color: #18181b;
    transition: color var(--cc-transition-fast);
}

.cc-post-card-title a:hover {
    color: var(--cc-primary);
}

.cc-post-card-excerpt {
    color: #52525b;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

@media (min-width: 1024px) {
    .cc-post-card-excerpt {
        font-size: 1rem;
    }
}

.cc-post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #71717a;
}

.cc-post-card-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cc-post-card-time svg {
    width: 16px;
    height: 16px;
}

/* -------------------------------------------------------------------------
   10. Single Post & Page
   ------------------------------------------------------------------------- */

.cc-single-post {
    padding-top: calc(var(--cc-header-height) + 2rem);
    padding-bottom: var(--cc-section-padding);
}

.cc-single-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cc-single-post-categories {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.cc-single-post-categories a {
    background: var(--cc-badge-easy-bg);
    color: var(--cc-badge-easy-text);
    border: 1px solid var(--cc-badge-easy-border);
    padding: 0.25rem 1rem;
    border-radius: var(--cc-radius-full);
    font-size: 0.875rem;
    transition: all var(--cc-transition-fast);
}

.cc-single-post-categories a:hover {
    background: var(--cc-primary);
    color: white;
    border-color: var(--cc-primary);
}

.cc-single-post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .cc-single-post-title {
        font-size: 2rem;
    }
}

.cc-single-post-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    color: #71717a;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.cc-single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-single-post-thumbnail {
    margin-bottom: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--cc-shadow-xl);
}

.cc-single-post-thumbnail img {
    width: 100%;
    height: auto;
}

.cc-single-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.cc-single-post-body {
    font-size: 1.125rem;
    line-height: 1.8;
}

.cc-single-post-body h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.cc-single-post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cc-single-post-body p {
    margin-bottom: 1.5rem;
}

.cc-single-post-body ul,
.cc-single-post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.cc-single-post-body li {
    margin-bottom: 0.5rem;
}

.cc-single-post-body img {
    border-radius: var(--cc-radius-lg);
    margin: 2rem 0;
}

.cc-single-post-body a {
    text-decoration: underline;
}

/* Author Box */
.cc-author-box {
    margin-top: 4rem;
    padding: 2rem;
    background: #fef7ed;
    border-radius: 1rem;
}

.cc-author-box-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 640px) {
    .cc-author-box-inner {
        flex-direction: column;
        text-align: center;
    }
}

.cc-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cc-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-author-info h4 {
    margin: 0 0 0.5rem;
}

.cc-author-info p {
    margin: 0;
    color: #52525b;
}

/* Related Posts */
.cc-related-posts {
    margin-top: 4rem;
}

.cc-related-posts-title {
    margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------
   11. Sidebar & Widgets
   ------------------------------------------------------------------------- */

.cc-sidebar {
    padding: 2rem 0;
}

.cc-widget {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cc-shadow-sm);
}

.cc-widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cc-primary);
}

.cc-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-widget li {
    padding: 0.5rem 0;
}

.cc-widget li a {
    color: #52525b;
}

.cc-widget li a:hover {
    color: var(--cc-primary);
}

/* Newsletter Widget */
.cc-newsletter-widget {
    background: linear-gradient(135deg, var(--cc-primary), var(--cc-secondary));
    color: white;
    text-align: center;
}

.cc-newsletter-widget .cc-widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* -------------------------------------------------------------------------
   12. Footer Builder
   ------------------------------------------------------------------------- */

.cc-footer {
    background: var(--cc-footer-bg);
    color: #a1a1aa;
    padding: 4rem 0 0;
}

.cc-footer-widgets {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .cc-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cc-footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cc-footer-widget h4 {
    color: white;
    margin-bottom: 1rem;
}

.cc-footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-footer-widget li {
    margin-bottom: 0.5rem;
}

.cc-footer-widget a {
    color: #a1a1aa;
    transition: color var(--cc-transition-fast);
}

.cc-footer-widget a:hover {
    color: var(--cc-primary);
}

.cc-footer-social {
    display: flex;
    gap: 0.75rem;
}

.cc-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #27272a;
    border-radius: 50%;
    transition: all var(--cc-transition-normal);
}

.cc-footer-social a:hover {
    background: var(--cc-primary);
    transform: translateY(-3px);
}

.cc-footer-social svg {
    width: 20px;
    height: 20px;
}

.cc-footer-bottom {
    border-top: 1px solid #27272a;
    padding: 1.5rem 0;
    text-align: center;
}

.cc-footer-copyright {
    font-size: 0.875rem;
}

/* -------------------------------------------------------------------------
   13. Homepage Sections
   ------------------------------------------------------------------------- */

.cc-section {
    padding: var(--cc-section-padding) 0;
}

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

.cc-section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .cc-section-title {
        font-size: 2.5rem;
    }
}

.cc-section-description {
    color: #71717a;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.cc-category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .cc-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cc-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cc-category-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--cc-shadow-md);
    height: 250px;
    transition: transform var(--cc-transition-normal);
}

.cc-category-card:hover {
    transform: translateY(-4px);
}

.cc-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--cc-transition-slow);
}

.cc-category-card:hover img {
    transform: scale(1.1);
}

.cc-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.cc-category-title {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    color: white;
}

.cc-category-count {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Pinterest CTA */
.cc-pinterest-cta {
    background: linear-gradient(135deg, #fff5f5, #f0fdfa);
    text-align: center;
    padding: 4rem 0;
}

/* Newsletter Section */
.cc-newsletter-section {
    background: #18181b;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cc-newsletter-section h2 {
    color: white;
}

.cc-newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cc-newsletter-form {
        flex-direction: row;
    }
}

.cc-newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--cc-radius-lg);
    font-size: 1rem;
}

/* -------------------------------------------------------------------------
   14. Components (Buttons, Cards, etc.)
   ------------------------------------------------------------------------- */

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-family: var(--cc-font-button);
    font-weight: var(--cc-font-weight-button);
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: var(--cc-radius-full);
    cursor: pointer;
    transition: all var(--cc-transition-normal);
    text-decoration: none;
}

.cc-btn-primary {
    background: var(--cc-primary);
    color: white;
    box-shadow: var(--cc-shadow-sm);
}

.cc-btn-primary:hover {
    background: var(--cc-primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--cc-shadow-md);
}

.cc-btn-secondary {
    background: var(--cc-secondary);
    color: white;
}

.cc-btn-secondary:hover {
    background: var(--cc-secondary-hover);
    color: white;
    transform: translateY(-2px);
}

.cc-btn-outline {
    background: transparent;
    border: 2px solid var(--cc-primary);
    color: var(--cc-primary);
}

.cc-btn-outline:hover {
    background: var(--cc-primary);
    color: white;
}

/* Input Fields */
.cc-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e4e4e7;
    border-radius: var(--cc-radius-md);
    font-size: 1rem;
    transition: all var(--cc-transition-fast);
    outline: none;
}

.cc-input:focus {
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(249, 65, 68, 0.1);
}

/* -------------------------------------------------------------------------
   15. Comment Styling
   ------------------------------------------------------------------------- */

.cc-comments {
    margin-top: 4rem;
}

.cc-comment {
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.cc-comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cc-comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.cc-comment-author {
    font-weight: 600;
}

.cc-comment-date {
    font-size: 0.875rem;
    color: #71717a;
}

/* -------------------------------------------------------------------------
   16. Responsive Design
   ------------------------------------------------------------------------- */

@media (max-width: 1023px) {
    :root {
        --cc-section-padding: 3rem;
    }
}

@media (max-width: 639px) {
    :root {
        --cc-section-padding: 2rem;
    }
}

/* -------------------------------------------------------------------------
   17. Reading Progress Bar
   ------------------------------------------------------------------------- */

.cc-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cc-primary);
    z-index: 9999;
    transition: width 100ms ease;
}

/* -------------------------------------------------------------------------
   18. Social Share Buttons
   ------------------------------------------------------------------------- */

.cc-social-share {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e4e4e7;
}

.cc-social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--cc-radius-md);
    font-size: 0.875rem;
    transition: all var(--cc-transition-fast);
}

.cc-social-share-btn.pinterest {
    background: #e63946;
    color: white;
}

.cc-social-share-btn.facebook {
    background: #1877f2;
    color: white;
}

.cc-social-share-btn.twitter {
    background: #1da1f2;
    color: white;
}

/* Floating Share Bar */
.cc-floating-share {
    position: fixed;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100;
}

@media (max-width: 1023px) {
    .cc-floating-share {
        display: none;
    }
}

.cc-floating-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: var(--cc-shadow-md);
    transition: all var(--cc-transition-fast);
}

.cc-floating-share a:hover {
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------
   19. Table of Contents
   ------------------------------------------------------------------------- */

.cc-toc {
    background: #fafafa;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cc-toc-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cc-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cc-toc-list li {
    margin-bottom: 0.5rem;
}

.cc-toc-list li a {
    color: #52525b;
    padding-left: 1rem;
    display: block;
}

.cc-toc-list li a:hover {
    color: var(--cc-primary);
}

/* -------------------------------------------------------------------------
   20. WP Specific Styles
   ------------------------------------------------------------------------- */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

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

.wp-caption {
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #71717a;
    font-style: italic;
}

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

.gallery-item {
    margin: 0;
}

/* -------------------------------------------------------------------------
   21. Custom Animations
   ------------------------------------------------------------------------- */

@keyframes cc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cc-animate-fadeIn {
    animation: cc-fadeIn 0.6s ease forwards;
}

/* Lazy Load Images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}
