/* KiddoPlay Plugin Stylesheet */

.kiddoplay-canvas-wrapper {
    background: linear-gradient(135deg, #fef2f2 0%, #f0fdf4 50%, #eff6ff 100%);
    border: 5px solid #ffccd5;
    border-radius: 30px;
    padding: 25px;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

/* Toolbar */
.kiddoplay-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.kiddoplay-toolbar button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 3px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #4b3f8c;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    min-width: 65px;
}

.kiddoplay-toolbar button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.kiddoplay-toolbar button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    border-color: #ffccd5;
}

.kiddoplay-toolbar button:active {
    transform: translateY(1px);
}

.kiddoplay-toolbar button.active {
    background: #4b3f8c;
    color: #ffffff;
    border-color: #3f3380;
    box-shadow: 0 4px 10px rgba(75, 63, 140, 0.2);
}

/* Canvas Container */
.kiddoplay-canvas-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/3;
    background: #ffffff;
    border: 4px solid #bce6ff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

#kiddoplay-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
    background: #ffffff;
    touch-action: none; /* Prevents scrolling on mobile touch screens when drawing */
}

/* Palette & Settings */
.kiddoplay-palette {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    gap: 15px;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 20px;
    border-radius: 20px;
    border: 2px dashed #bce6ff;
}

.brush-size-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #4b3f8c;
    font-size: 0.9rem;
}

.brush-size-slider input[type="range"] {
    cursor: pointer;
    accent-color: #4b3f8c;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #4b3f8c;
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Stickers */
.kiddoplay-stickers-panel {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    border: 3px solid #ffe8cc;
}

.sticker-btn {
    font-size: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 2px;
}

.sticker-btn:hover {
    transform: scale(1.3) rotate(5deg);
}

.sticker-btn:active {
    transform: scale(0.9);
}

.sticker-btn.active {
    outline: 3px solid #ffa502;
    border-radius: 8px;
    background: #ffe8cc;
}

/* Sound Board Styles */
.kiddoplay-soundsboard-wrapper {
    max-width: 480px;
    margin: 20px auto;
    font-family: 'Poppins', sans-serif;
}

.soundsboard-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
    border: 4px solid #99f6e4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.sound-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.soundsboard-card:hover .sound-img-wrapper img {
    transform: scale(1.05);
}

.sound-details {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sound-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f766e;
    margin: 0;
}

.sound-spelled {
    font-size: 1rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 2px;
    background: #ffffff;
    padding: 4px 16px;
    border-radius: 12px;
    border: 2px dashed #99f6e4;
}

.sound-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    color: #ffffff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
    transition: all 0.2s ease;
}

.sound-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.sound-play-btn:active {
    transform: translateY(1px);
}

.sound-play-btn svg {
    transition: transform 0.2s ease;
}

.sound-play-btn:hover svg {
    transform: scale(1.1);
}

/* ============================================= */
/* CATEGORY SHOWCASE CARD GALLERY STYLES
/* ============================================= */
.rgb-category-wrapper {
    width: 100%;
    margin: 20px auto;
    font-family: 'Poppins', sans-serif;
}

.rgb-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.rgb-category-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.rgb-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.rgb-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: #f7fafc;
}

.rgb-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rgb-category-card:hover .rgb-card-image-wrapper img {
    transform: scale(1.06);
}

.rgb-card-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rgb-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.rgb-card-content h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.rgb-card-content p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 8px;
}

.rgb-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.rgb-card-btn,
.rgb-print-collection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1;
}

.rgb-card-btn {
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.rgb-card-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    color: #ffffff;
}

.rgb-print-collection-btn {
    background: #ffffff;
}

.rgb-print-collection-btn:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
}

@media (max-width: 480px) {
    .rgb-category-grid {
        grid-template-columns: 1fr;
    }
}

