/*
Theme Name: Imajyn
Theme URI: https://imajyn.com
Author: Imajyn Team
Author URI: https://imajyn.com
Description: A bright, colorful, and playful WordPress theme perfect for middle graders. Features a cartoony design with vibrant colors and kid-friendly typography.
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imajyn
Tags: custom-colors, custom-menu, featured-images, translation-ready, blog, education, kid-friendly
*/

/* Color Variables */
:root {
    /* Primary Colors */
    --primary-blue: #4A90E2;    /* Bright, friendly blue */
    --primary-green: #50E3C2;   /* Fresh, minty green */
    --primary-yellow: #F5A623;  /* Warm, sunny yellow */
    --primary-pink: #FF6B6B;    /* Playful, coral pink */
    --primary-purple: #9B51E0;  /* Fun, vibrant purple */

    /* Secondary Colors */
    --secondary-blue: #5C6BC0;  /* Softer blue */
    --secondary-green: #66BB6A; /* Muted green */
    --secondary-yellow: #FFCA28; /* Light yellow */
    --secondary-pink: #FF8A80;  /* Soft pink */
    --secondary-purple: #B39DDB; /* Light purple */

    /* Accent Colors */
    --accent-orange: #FF9800;   /* Bright orange */
    --accent-teal: #26A69A;     /* Fresh teal */
    --accent-red: #EF5350;      /* Vibrant red */
    --accent-lime: #CDDC39;     /* Bright lime */
    --accent-indigo: #7986CB;   /* Soft indigo */

    /* Neutral Colors */
    --neutral-white: #FFFFFF;
    --neutral-light: #F5F5F5;
    --neutral-gray: #9E9E9E;
    --neutral-dark: #424242;
    --neutral-black: #212121;

    /* Background Colors */
    --bg-primary: var(--neutral-white);
    --bg-secondary: var(--neutral-light);
    --bg-accent: var(--primary-yellow);
    --bg-highlight: var(--primary-pink);
    --content-bg: rgba(255, 245, 230, 0.40); /* Slightly more opaque whitish-beige */

    /* Text Colors */
    --text-primary: var(--neutral-black);
    --text-secondary: var(--neutral-dark);
    --text-light: var(--neutral-white);
    --text-accent: var(--primary-blue);
    --text-highlight: var(--primary-pink);

    /* Border Colors */
    --border-light: var(--neutral-light);
    --border-medium: var(--neutral-gray);
    --border-dark: var(--neutral-dark);
    --border-accent: var(--primary-blue);

    /* Theme version */
    --theme-version: '4.0';
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Quicksand:wght@400;500;600;700&display=swap');

body {
    font-family: 'Quicksand', sans-serif;
    color: #2d1e4a;
    line-height: 1.6;
    background: linear-gradient(135deg, #fffbe7 0%, #ffe0fb 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Comic Neue', cursive;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Basic Layout */
.site-header {
    background: linear-gradient(90deg, var(--primary-blue) 60%, var(--primary-purple) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: var(--neutral-white);
}

.site-title {
    font-family: 'Comic Neue', cursive;
    font-size: 2.5rem;
    color: #2d1e4a;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px 0 #fffbe7;
}

.site-description {
    color: #2d1e4a;
    text-align: center;
    margin: 0.5rem 0 0;
    text-shadow: 1px 1px 0 #fffbe7;
}

/* Navigation */
.main-navigation {
    background: linear-gradient(90deg, #fffbe7 60%, #ffe0fb 100%);
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

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

.main-navigation a {
    color: #2d1e4a;
    font-family: 'Comic Neue', cursive;
    font-size: 1.3rem;
    font-weight: bold;
    background: none;
    border-radius: 12px;
    padding: 0.5rem 1.2rem;
    transition: background 0.2s, color 0.2s;
    text-shadow: 1px 1px 0 #fffbe7;
}

.main-navigation a:hover, .main-navigation .current-menu-item > a {
    color: #fff;
    background: #f5a623;
    text-shadow: none;
}

/* Content Area */
.site-content {
    max-width: 1900px;
    margin: 2rem auto;
    padding: 2rem 1rem 3rem 1rem;
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Posts */
.post {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-title {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
}

/* Footer */
.site-footer {
    background-color: var(--primary-purple);
    color: var(--neutral-white);
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: var(--primary-yellow);
}

.site-footer a:hover {
    color: var(--primary-pink);
}

/* Widgets */
.widget {
    background: var(--content-bg);
    padding: 1.5rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.widget-title {
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.widget a {
    color: var(--primary-blue);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-content {
        padding: 1rem 0.5rem 2rem 0.5rem;
        margin: 1rem auto;
    }
}

/* Content link styles */
a {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: underline wavy var(--primary-yellow);
    transition: color 0.3s;
}
a:hover {
    color: var(--primary-pink);
    text-decoration: underline wavy var(--primary-pink);
}

/* Header image styling */
.custom-header-image {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.custom-header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: 4px solid var(--primary-yellow);
}

.menu-icon-img-only {
    height: 48px !important;
    width: auto !important;
    max-height: 56px;
    display: block;
    margin: 0 auto;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.main-navigation li.menu-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 56px;
    padding: 0;
    font-size: 0 !important; /* Hide text */
}

.site-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}
.site-logo img {
    max-width: 140px;
    max-height: 140px;
    border-radius: 24px;
    background: var(--neutral-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 8px;
    display: block;
    margin: 0 auto;
}

/* Cloud content container for text inside the cloud */
.cloud-content {
    max-width: 60ch;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: transparent;
    text-align: center;
    display: block;
}

@media (max-width: 700px) {
  .cloud-content {
    max-width: 90vw;
    padding: 1.2rem 0.5rem;
  }
}

/* Tree content container for single post text inside the tree image */
.single .site-content {
    background: none !important;
}

.tree-content {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    color: #222;
    font-weight: 600;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 700px) {
  .tree-content {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
  }
}

.carpet-content {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto 2rem auto;
    padding: 2.5rem 2rem 14rem 2rem;
    background-image: url('assets/icons/carpet.png');
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: contain;
    background-color: rgba(255, 245, 230, 0.65);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    text-align: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.carpet-content .post-thumbnail img {
    width: 100%;
    max-width: 60ch;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.carpet-content-img {
    position: relative;
    z-index: 0;
    max-width: 60ch;
    width: 100%;
    margin: 0 auto 2rem auto;
    padding: 2.5rem 2rem 14rem 2rem;
    background: none;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    text-align: center;
    box-sizing: border-box;
    background-color: rgba(255, 245, 230, 0.40);
}

.carpet-content-img .post-thumbnail img {
    max-width: 100%;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.carpet-bg-anim {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 832/736;
    max-height: 100%;
    background: url('assets/icons/carpet.png') no-repeat center bottom / 100% auto;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    background-color: rgba(255, 245, 230, 0.40);
}

.carpet-text-content {
    position: relative;
    z-index: 1;
    background: transparent;
    max-width: 60ch;
    margin: 0 auto;
    width: 100%;
}

.single-post .carpet-bg-anim {
    animation: carpet-fly 12s ease-in-out infinite alternate;
}

@keyframes carpet-fly {
    0%   { transform: translateX(-50%) rotate(-2deg) scale(1.00, 1.00); }
    20%  { transform: translateX(-50%) rotate(-4deg) scale(1.03, 0.98); }
    40%  { transform: translateX(-50%) rotate(-7deg) scale(1.06, 1.01); }
    60%  { transform: translateX(-50%) rotate(-10deg) scale(1.04, 1.04); }
    80%  { transform: translateX(-50%) rotate(-6deg) scale(1.01, 1.02); }
    100% { transform: translateX(-50%) rotate(-2deg) scale(1.00, 1.00); }
}

.flower-bg-anim {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 22vh; /* Smaller and more proportionate */
    z-index: 0;
    pointer-events: none;
    animation: flower-sway 5s ease-in-out infinite alternate;
    opacity: 0.95;
}

.bee-bg-anim {
    position: fixed;
    left: -120px;
    bottom: 32vh;
    width: 90px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.98;
    animation: bee-fly 10s linear infinite;
}

@keyframes flower-sway {
    0%   { transform: translateY(0) rotate(-3deg); }
    50%  { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0) rotate(-3deg); }
}

@keyframes bee-fly {
    0%   { left: -120px; bottom: 32vh; }
    30%  { left: 16vw; bottom: 38vh; }
    45%  { left: 18vw; bottom: 38vh; }
    55%  { left: 18vw; bottom: 38vh; }
    70%  { left: 80vw; bottom: 60vh; }
    100% { left: 110vw; bottom: 70vh; }
}

.sun-bg-anim {
    position: fixed;
    top: 2vh;
    right: 2vw;
    width: 14vw;
    max-width: 180px;
    min-width: 80px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.97;
    animation: sun-sip 3.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 32px #ffe06688);
}

@keyframes sun-sip {
    0%   { transform: translateY(0) rotate(-2deg) scale(1); filter: drop-shadow(0 0 32px #ffe06688); }
    10%  { transform: translateY(-2px) rotate(-2deg) scale(1.01); filter: drop-shadow(0 0 40px #ffe066cc); }
    20%  { transform: translateY(-4px) rotate(-4deg) scale(1.02); filter: drop-shadow(0 0 48px #ffe066ff); }
    30%  { transform: translateY(-6px) rotate(-6deg) scale(1.03); filter: drop-shadow(0 0 56px #ffe066ff); }
    40%  { transform: translateY(-8px) rotate(-8deg) scale(1.04); filter: drop-shadow(0 0 64px #ffe066ff); }
    50%  { transform: translateY(-10px) rotate(-10deg) scale(1.05); filter: drop-shadow(0 0 80px #ffe066ff); }
    60%  { transform: translateY(-8px) rotate(-8deg) scale(1.04); filter: drop-shadow(0 0 64px #ffe066ff); }
    70%  { transform: translateY(-6px) rotate(-6deg) scale(1.03); filter: drop-shadow(0 0 56px #ffe066ff); }
    80%  { transform: translateY(-4px) rotate(-4deg) scale(1.02); filter: drop-shadow(0 0 48px #ffe066ff); }
    90%  { transform: translateY(-2px) rotate(-2deg) scale(1.01); filter: drop-shadow(0 0 40px #ffe066cc); }
    100% { transform: translateY(0) rotate(-2deg) scale(1); filter: drop-shadow(0 0 32px #ffe06688); }
}

/* Main content text area */
.entry-content {
    background: var(--content-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cloud-content-img {
    position: relative;
    z-index: 0;
}

.cloud-bg-anim {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 832/736;
    max-height: 100%;
    background: url('assets/icons/cloud.png') no-repeat center bottom / 100% auto;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    animation: cloud-squish 4s ease-in-out infinite alternate;
    background-color: rgba(255, 245, 230, 0.40);
}

.cloud-text-content {
    position: relative;
    z-index: 2;
}

@keyframes cloud-squish {
    0%   { transform: translateX(-50%) scaleX(1) scaleY(1); }
    20%  { transform: translateX(-50%) scaleX(1.04) scaleY(0.97); }
    40%  { transform: translateX(-50%) scaleX(0.97) scaleY(1.05); }
    60%  { transform: translateX(-50%) scaleX(1.06) scaleY(0.96); }
    80%  { transform: translateX(-50%) scaleX(0.98) scaleY(1.03); }
    100% { transform: translateX(-50%) scaleX(1) scaleY(1); }
}

.page .post-thumbnail img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 60ch;
    width: 100%;
    height: auto;
}

@media (max-width: 700px) {
  .carpet-content,
  .carpet-content-img,
  .carpet-text-content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 8rem 0.5rem;
  }
  .carpet-content .post-thumbnail img {
    max-width: 90vw;
  }
}

/* Unified Content Layout - Responsive for all devices */
.content-container {
    position: relative;
    z-index: 0;
    max-width: 1800px;
    width: 99vw;
    margin: 0 auto 2rem auto;
    padding: 2.5rem 5rem 14rem 5rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    text-align: center;
    box-sizing: border-box;
    background-color: rgba(255, 245, 230, 0.40);
    display: block;
}

.bg-anim {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 832/736;
    max-height: 100%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    background-color: rgba(255, 245, 230, 0.40);
}

.bg-anim.cloud-bg-anim {
    background: url('assets/icons/cloud.png') no-repeat center bottom / 100% auto;
    animation: cloud-squish 4s ease-in-out infinite alternate;
}

.bg-anim.carpet-bg-anim {
    background: url('assets/icons/carpet.png') no-repeat center bottom / 100% auto;
    animation: carpet-fly 12s ease-in-out infinite alternate;
}

.text-content {
    position: relative;
    z-index: 2;
    background: transparent;
    max-width: 156ch;
    margin: 0 auto;
    width: 100%;
}

.text-content .post-thumbnail img {
    width: 100%;
    max-width: 156ch;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Tablet responsive design */
@media (max-width: 1024px) {
    .content-container {
        max-width: 100vw;
        width: 100vw;
        padding: 2rem 2rem 12rem 2rem;
        margin: 0 auto 2rem auto;
    }
    
    .text-content {
        max-width: 143ch;
        margin: 0 auto;
    }
    
    .text-content .post-thumbnail img {
        max-width: 143ch;
        margin: 0 auto;
    }
}

/* Mobile responsive design */
@media (max-width: 700px) {
    .content-container {
        max-width: 100vw;
        width: 100vw;
        padding: 1.5rem 0rem 8rem 0rem;
        margin: 0 auto 1rem auto;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
    }
    
    .text-content {
        max-width: 95vw;
        padding: 0 1rem;
        margin: 0 auto;
    }
    
    .text-content .post-thumbnail img {
        max-width: 90vw;
        margin: 0 auto;
    }
    
    .bg-anim {
        max-height: 80%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .content-container {
        max-width: 100vw;
        width: 100vw;
        padding: 1rem 0rem 6rem 0rem;
        border-radius: 16px;
        left: 50%;
        transform: translateX(-50%);
        position: relative;
    }
    
    .text-content {
        max-width: 92vw;
        padding: 0 0.5rem;
        margin: 0 auto;
    }
    
    .text-content .post-thumbnail img {
        max-width: 85vw;
        margin: 0 auto;
    }
}

/* NEW KID-FRIENDLY ANIMATIONS */

/* Floating Bubbles Animation */
.floating-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(0,100,255,0.8));
    box-shadow: inset 0 0 25px rgba(255,255,255,0.8), 0 0 30px rgba(0,100,255,0.6), 0 0 15px rgba(0,150,255,0.4);
    border: 2px solid rgba(0,150,255,0.3);
    animation: float-up 8s infinite linear;
}

.bubble:nth-child(1) {
    left: 10%;
    width: 30px;
    height: 30px;
    animation-delay: 0s;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    left: 25%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 10s;
}

.bubble:nth-child(3) {
    left: 50%;
    width: 35px;
    height: 35px;
    animation-delay: 4s;
    animation-duration: 9s;
}

.bubble:nth-child(4) {
    left: 75%;
    width: 25px;
    height: 25px;
    animation-delay: 6s;
    animation-duration: 11s;
}

.bubble:nth-child(5) {
    left: 90%;
    width: 40px;
    height: 40px;
    animation-delay: 3s;
    animation-duration: 7s;
}

@keyframes float-up {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}



/* Wiggling Caterpillar Animation */
.wiggling-caterpillar {
    position: fixed;
    bottom: 5vh;
    left: -200px;
    width: 150px;
    height: 30px;
    z-index: 0;
    pointer-events: none;
    animation: caterpillar-crawl 20s linear infinite;
}

.caterpillar-body {
    display: flex;
    align-items: center;
    height: 100%;
}

.caterpillar-segment {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(45deg, #32CD32, #228B22);
    margin-right: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: segment-wiggle 1.5s ease-in-out infinite;
}

.caterpillar-segment:nth-child(1) {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    animation-delay: 0s;
}

.caterpillar-segment:nth-child(2) {
    animation-delay: 0.1s;
}

.caterpillar-segment:nth-child(3) {
    animation-delay: 0.2s;
}

.caterpillar-segment:nth-child(4) {
    animation-delay: 0.3s;
}

.caterpillar-segment:nth-child(5) {
    animation-delay: 0.4s;
}

.caterpillar-segment:nth-child(6) {
    animation-delay: 0.5s;
}

.caterpillar-head {
    position: relative;
}

.caterpillar-head::before {
    content: '••';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #000;
}

.caterpillar-head::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background: #000;
    border-radius: 1px;
}

@keyframes caterpillar-crawl {
    0% {
        left: -200px;
    }
    100% {
        left: 100vw;
    }
}

@keyframes segment-wiggle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(1deg);
    }
    75% {
        transform: translateY(2px) rotate(-1deg);
    }
}

/* Responsive adjustments for new animations */
@media (max-width: 768px) {
    .bubble {
        transform: scale(0.8);
        box-shadow: inset 0 0 20px rgba(255,255,255,0.9), 0 0 25px rgba(0,100,255,0.7), 0 0 12px rgba(0,150,255,0.5);
    }
    
    .wiggling-caterpillar {
        transform: scale(0.8);
        bottom: 3vh;
    }
}

/* Theme-matching comment form and recent comments widget */
.comment-respond, .recent-comments-theme-widget, .recent-comments-theme-widget ul {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-pink) 100%);
    border-radius: 24px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 0 0 3px var(--primary-yellow);
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    border: none;
    position: relative;
    overflow: visible;
}

.comment-respond::before {
    content: '💬';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2.5em;
    background: var(--primary-yellow);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.comment-respond::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 30px;
    font-size: 2em;
    background: var(--accent-orange);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: sparkle 2s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(10deg) scale(1.1); }
}

/* Comment form title */
.comment-respond .comment-reply-title {
    color: var(--neutral-white);
    font-family: 'Comic Neue', cursive;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

/* Comment form inputs and textarea */
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--secondary-yellow) 100%);
    border: 3px solid var(--primary-green);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    font-size: 1.1rem;
    color: var(--neutral-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond input[type="url"]:focus,
.comment-respond textarea:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15), 0 0 0 4px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

/* Comment form submit button */
.comment-respond input[type="submit"] {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-pink) 100%);
    color: var(--neutral-white);
    border: none;
    border-radius: 20px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-family: 'Comic Neue', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.comment-respond input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.comment-respond input[type="submit"]:active {
    transform: translateY(-1px) scale(1.02);
}

/* Comment list styling */
.comments-area {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    border-radius: 24px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
}

.comments-title {
    color: var(--neutral-white);
    font-family: 'Comic Neue', cursive;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.comment-list li {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--secondary-pink) 20%, var(--neutral-white) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary-yellow);
    position: relative;
}

.comment-list li::before {
    content: '👤';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 1.5em;
    background: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.comment-author {
    color: var(--primary-purple);
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: var(--neutral-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.comment-meta {
    color: var(--neutral-gray);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Recent comments widget */
.recent-comments-theme-widget {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-indigo) 100%);
    position: relative;
}

.recent-comments-theme-widget::before {
    content: '🎨';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2.5em;
    background: var(--accent-lime);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.recent-comments-theme-widget ul {
    background: transparent;
    padding: 0;
    margin: 0;
}

.recent-comments-theme-widget li {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--secondary-blue) 20%, var(--neutral-white) 100%);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--neutral-dark);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    transition: transform 0.2s ease;
}

.recent-comments-theme-widget li:hover {
    transform: translateX(5px);
}

.recent-comments-theme-widget li::before {
    content: '💭';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.recent-comments-theme-widget .widget-title,
.recent-comments-theme-widget h2,
.recent-comments-theme-widget h3 {
    color: var(--neutral-white);
    font-family: 'Comic Neue', cursive;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-respond,
    .comments-area,
    .recent-comments-theme-widget {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .comment-respond .comment-reply-title,
    .comments-title {
        font-size: 1.6rem;
    }
    
    .comment-respond input[type="submit"] {
        width: 100%;
        padding: 1rem;
    }
} 