/* ==========================================================================
   Orbital Canva-Style Circular Category Navigation Bar
   Matches Canva's iconic single-row circular icon + label bar.
   Pure Solid Colors (No Gradients) - Flat Minimalist (No Shadows)
   ========================================================================== */

.orbital-canva-menu-section {
    width: 100%;
    margin: 14px auto 26px auto;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hide default phrase as requested */
.canva-menu-header {
    display: none !important;
}

.canva-menu-title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.canva-menu-heading {
    display: none !important;
}

/* Admin Bar & Config Button */
.canva-admin-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
}

.btn-canva-menu-config {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.btn-canva-menu-config:hover {
    background: #7d2ae8;
    color: #ffffff;
    border-color: #7d2ae8;
}

.canva-menu-admin-empty {
    padding: 24px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    color: #475569;
    margin: 0 auto;
}

/* ==========================================================================
   Carousel Track & Scroll Area (Always Centered)
   ========================================================================== */

.canva-carousel-outer {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canva-carousel-scroll-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 6px 4px 12px 4px;
    box-sizing: border-box;
    display: flex;
    justify-content: safe center;
}

.canva-carousel-scroll-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.canva-carousel-track {
    display: flex;
    flex-direction: row;
    gap: 22px;
    width: max-content;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    padding: 2px 10px;
}

/* ==========================================================================
   Canva Circular Item (Icon on top + Label below)
   Zero Shadows - Clean Flat Finish
   ========================================================================== */

.canva-circle-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    width: 86px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    box-shadow: none !important;
    filter: none !important;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.canva-circle-item:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
    filter: none !important;
}

/* Circular Badge - PURE SOLID COLOR, ABSOLUTELY NO SHADOWS */
.canva-circle-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
    transition: transform 0.18s ease;
    overflow: hidden;
    flex-shrink: 0;
    background: #7d2ae8; /* Default fallback */
}

.canva-circle-item:hover .canva-circle-badge {
    transform: scale(1.06);
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
}

/* Hide raster images inside circle so clean vector SVG icon always shows */
.canva-circle-img {
    display: none !important;
}

/* Crisp White SVG Icon (Zero drop-shadow, always centered) */
.canva-circle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    line-height: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.canva-circle-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    filter: none !important;
    display: block !important;
    color: #ffffff !important;
}

/* Category Label Below */
.canva-circle-label {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
    text-align: center;
    max-width: 88px;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.18s ease;
}

.canva-circle-item:hover .canva-circle-label {
    color: #7d2ae8;
}

/* "Ver más" Hint below label - Canva Style */
.canva-circle-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 600;
    line-height: 1;
    margin-top: 3px;
    height: 14px;
    color: #7d2ae8;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
    pointer-events: none;
    white-space: nowrap;
}

.canva-circle-item:hover .canva-circle-action {
    opacity: 1;
    transform: translateY(0);
}

.canva-circle-item.color-purple:hover .canva-circle-action { color: #7d2ae8; }
.canva-circle-item.color-orange:hover .canva-circle-action { color: #ff7200; }
.canva-circle-item.color-coral:hover .canva-circle-action  { color: #ff3b5c; }
.canva-circle-item.color-magenta:hover .canva-circle-action{ color: #e0298a; }
.canva-circle-item.color-blue:hover .canva-circle-action   { color: #0084ff; }
.canva-circle-item.color-green:hover .canva-circle-action  { color: #00b862; }
.canva-circle-item.color-yellow:hover .canva-circle-action { color: #d97706; }
.canva-circle-item.color-teal:hover .canva-circle-action   { color: #00b4b4; }
.canva-circle-item.color-indigo:hover .canva-circle-action { color: #4f46e5; }
.canva-circle-item.color-pink:hover .canva-circle-action   { color: #f43f5e; }
.canva-circle-item.color-mint:hover .canva-circle-action   { color: #00c49f; }
.canva-circle-item.color-peach:hover .canva-circle-action  { color: #ff8c5a; }

/* ==========================================================================
   PURE SOLID COLORS (NO GRADIENTS, NO SHADOWS)
   ========================================================================== */

.canva-circle-item.color-purple .canva-circle-badge   { background: #7d2ae8 !important; }
.canva-circle-item.color-orange .canva-circle-badge   { background: #ff7200 !important; }
.canva-circle-item.color-coral .canva-circle-badge    { background: #ff3b5c !important; }
.canva-circle-item.color-magenta .canva-circle-badge  { background: #e0298a !important; }
.canva-circle-item.color-blue .canva-circle-badge     { background: #0084ff !important; }
.canva-circle-item.color-green .canva-circle-badge    { background: #00b862 !important; }
.canva-circle-item.color-yellow .canva-circle-badge   { background: #ffb800 !important; }
.canva-circle-item.color-teal .canva-circle-badge     { background: #00b4b4 !important; }
.canva-circle-item.color-indigo .canva-circle-badge   { background: #4f46e5 !important; }
.canva-circle-item.color-pink .canva-circle-badge     { background: #f43f5e !important; }
.canva-circle-item.color-mint .canva-circle-badge     { background: #00c49f !important; }
.canva-circle-item.color-peach .canva-circle-badge    { background: #ff8c5a !important; }

/* Legacy keys compatibility */
.canva-circle-item.color-lavender .canva-circle-badge { background: #8b5cf6 !important; }
.canva-circle-item.color-sky .canva-circle-badge      { background: #0084ff !important; }
.canva-circle-item.color-rose .canva-circle-badge     { background: #ff3b5c !important; }
.canva-circle-item.color-violet .canva-circle-badge   { background: #7d2ae8 !important; }
.canva-circle-item.color-cyan .canva-circle-badge     { background: #00b4b4 !important; }

/* ==========================================================================
   Navigation Buttons (Desktop)
   ========================================================================== */

.canva-carousel-nav {
    position: absolute;
    top: 29px; /* Centered with 58px circle */
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.canva-carousel-nav:hover {
    background: #ffffff;
    color: #7d2ae8;
    border-color: #cbd5e1;
    transform: translateY(-50%) scale(1.08);
}

.canva-nav-prev {
    left: -14px;
}

.canva-nav-next {
    right: -14px;
}

/* ==========================================================================
   Admin Modal Configurator
   ========================================================================== */

.canva-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.canva-modal-overlay.is-active,
.canva-modal-overlay.is-open {
    display: flex !important;
}

.canva-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.canva-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
    animation: canvaModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes canvaModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.canva-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.canva-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.canva-modal-title-wrap h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
}

.canva-modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.canva-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.canva-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.canva-form-group {
    margin-bottom: 16px;
}

.canva-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #334155;
}

.canva-input-title {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.canva-input-title:focus {
    outline: none;
    border-color: #7d2ae8;
    box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
}

.canva-config-info {
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 4px solid #7d2ae8;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.4;
}

/* Items List */
.canva-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.canva-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.canva-item-row.is-disabled {
    background: #f8fafc;
    opacity: 0.65;
}

.canva-item-row:hover {
    border-color: #cbd5e1;
}

/* Switch Toggle */
.canva-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.canva-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.canva-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 24px;
}

.canva-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.canva-switch input:checked + .canva-slider {
    background-color: #00b862;
}

.canva-switch input:checked + .canva-slider:before {
    transform: translateX(20px);
}

/* Item Data */
.canva-item-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.canva-item-fields {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.canva-item-name {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
    width: 100%;
    box-sizing: border-box;
}

.canva-item-url-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.canva-item-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.canva-item-color-select {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.82rem;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}

/* Thumb Picker in Modal */
.canva-item-thumb-picker {
    display: flex;
    align-items: center;
    gap: 6px;
}

.canva-thumb-preview {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.canva-thumb-preview.has-image {
    border-style: solid;
    border-color: #7d2ae8;
}

.canva-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.canva-no-thumb {
    font-size: 0.65rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1;
}

.btn-canva-pick-img {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-canva-pick-img:hover {
    background: #7d2ae8;
    color: #ffffff;
    border-color: #7d2ae8;
}

.btn-canva-remove-img {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.canva-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.btn-canva-cancel {
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-canva-cancel:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.btn-canva-save {
    padding: 9px 22px;
    background: #7d2ae8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-canva-save:hover {
    background: #6a1fd0;
}

/* ==========================================================================
   Suppression of Rogue Plugin-Injected Buttons (MCPTP download buttons, etc.)
   ========================================================================== */

.canva-circle-badge .mcptp-single-card-wrap,
.canva-circle-badge .mcptp-single-img-card,
.canva-circle-badge .mcptp-single-dl-wrap,
.canva-circle-badge .mcptp-gallery-dl-btn,
.canva-circle-badge .mcptp-single-dl-btn,
.canva-circle-item .mcptp-single-card-wrap,
.canva-circle-item .mcptp-gallery-dl-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -9999px !important;
}

/* ==========================================================================
   Responsive adjustments (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 768px) {
    .canva-carousel-nav {
        display: none !important; /* Hide navigation arrows on touch screens */
    }

    .canva-carousel-track {
        gap: 14px;
    }

    .canva-circle-item {
        width: 74px;
    }

    .canva-circle-badge {
        width: 50px;
        height: 50px;
    }

    .canva-circle-icon svg {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }

    .canva-circle-label {
        font-size: 0.75rem;
        max-width: 76px;
        margin-top: 6px;
    }

    .canva-item-data {
        flex-direction: column;
        align-items: flex-start;
    }

    .canva-item-fields {
        width: 100%;
    }
}
