/* Vision Board Generator v1.4.2 */

.vbg-wrapper {
    max-width: 1220px;
    margin: 40px auto;
    padding: 24px;
    font-family: Inter, Arial, sans-serif;
    color: #1f2937;
}

.vbg-wrapper * {
    box-sizing: border-box;
}

.vbg-header {
    text-align: center;
    margin-bottom: 28px;
}

.vbg-header h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 10px;
    letter-spacing: -0.04em;
}

.vbg-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.vbg-app {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    height: min(860px, calc(100vh - 120px));
    min-height: 720px;
    overflow: visible !important;
}

.vbg-panel {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.vbg-section {
    margin-bottom: 24px;
}

.vbg-section h3 {
    font-size: 15px;
    margin: 0 0 12px;
    color: #111827;
}

.vbg-theme-grid,
.vbg-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vbg-theme,
.vbg-style-btn {
    min-height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.vbg-theme:hover,
.vbg-style-btn:hover {
    transform: translateY(-1px);
    border-color: #c4b5fd;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.12);
}

.vbg-theme.active,
.vbg-style-btn.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 10px 24px rgba(236, 72, 153, .22);
}

.vbg-inline {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}

#vbg-title-input,
#vbg-goal-input,
#vbg-quote {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    font-size: 14px;
    background: #fff;
}

#vbg-title-input:focus,
#vbg-goal-input:focus,
#vbg-quote:focus {
    outline: none;
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, .12);
}

.vbg-small-btn {
    border: 0;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

#vbg-goal-list {
    padding-left: 18px;
    margin: 12px 0 0;
    color: #4b5563;
}

#vbg-goal-list li {
    cursor: pointer;
    margin: 5px 0;
}

.vbg-note {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
    line-height: 1.5;
}

.vbg-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 96px;
    padding: 14px;
    border: 1.5px dashed #d8b4fe;
    border-radius: 18px;
    background: linear-gradient(135deg, #faf5ff, #fff1f2);
    cursor: pointer;
    text-align: center;
}

.vbg-upload-box span {
    font-weight: 800;
    color: #7c3aed;
}

.vbg-upload-box small {
    color: #6b7280;
    font-size: 12px;
}

#vbg-image-upload {
    display: none;
}

.vbg-editor-control {
    margin-top: 13px;
}

.vbg-editor-control label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #4b5563;
    margin-bottom: 6px;
}

.vbg-editor-control input[type="range"] {
    width: 100%;
}

.vbg-delete-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 11px 12px;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
    font-weight: 800;
    margin-top: 14px;
}

.vbg-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

#vbg-generate,
#vbg-download {
    border: 0;
    border-radius: 16px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

#vbg-generate {
    background: #111827;
    color: #ffffff;
}

#vbg-download {
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd);
    color: #581c87;
}

#vbg-generate:hover,
#vbg-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

/* Sticky is applied directly to the right preview column for better WordPress compatibility. */
.vbg-preview-area {
    position: relative;
    align-self: stretch;
    background: linear-gradient(135deg, #fdf2f8, #eef2ff);
    border-radius: 30px;
    padding: 22px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
}

.vbg-board {
    width: 100%;
    max-width: 760px;
    min-height: 680px;
    margin: 0 auto;
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    transition: background .25s ease, color .25s ease, border .25s ease;
}

.vbg-board::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.32), transparent 22%),
        radial-gradient(circle at 85% 12%, rgba(255,255,255,.26), transparent 20%),
        radial-gradient(circle at 70% 90%, rgba(255,255,255,.22), transparent 24%);
}

.vbg-board-glow {
    position: absolute;
    inset: auto -90px -120px auto;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,.35);
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.vbg-board-title {
    position: relative;
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 18px;
    z-index: 2;
    word-break: break-word;
}

.vbg-canvas {
    position: relative;
    height: 430px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.45);
    z-index: 2;
}

.vbg-placeholder {
    position: absolute;
    inset: 20px;
    border: 2px dashed rgba(15, 23, 42, 0.18);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-align: center;
    padding: 20px;
}

.vbg-photo {
    position: absolute;
    width: 180px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20);
    cursor: move;
    user-select: none;
    transition: box-shadow .15s ease, outline .15s ease;
}

.vbg-photo:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.vbg-photo.selected {
    outline: 4px solid rgba(236, 72, 153, .75);
    outline-offset: 3px;
    z-index: 10;
}

.vbg-board-goals {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    justify-content: center;
}

.vbg-board-goals span {
    background: rgba(255,255,255,0.78);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(15, 23, 42, .08);
}

.vbg-board-quote {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.45;
}

/* Theme now changes actual visual mood, not just icon. */
.vbg-theme-dream {
    background: linear-gradient(135deg, #fff1f2 0%, #f5d0fe 52%, #ddd6fe 100%);
    color: #581c87;
}

.vbg-theme-career {
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 50%, #93c5fd 100%);
    color: #1e3a8a;
}

.vbg-theme-fitness {
    background: linear-gradient(135deg, #ecfdf5 0%, #bbf7d0 48%, #86efac 100%);
    color: #14532d;
}

.vbg-theme-travel {
    background: linear-gradient(135deg, #ecfeff 0%, #bae6fd 46%, #fde68a 100%);
    color: #164e63;
}

.vbg-theme-money {
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 50%, #bbf7d0 100%);
    color: #713f12;
}

.vbg-theme-study {
    background: linear-gradient(135deg, #eef2ff 0%, #c7d2fe 50%, #e0e7ff 100%);
    color: #312e81;
}

/* Style changes layout accents on top of theme. */
.vbg-style-minimal {
    background: #fafafa !important;
    color: #111827;
}

.vbg-style-minimal .vbg-canvas {
    background: #ffffff;
    border-color: #e5e7eb;
}

.vbg-style-soft .vbg-photo {
    border-radius: 28px;
    filter: saturate(.95) brightness(1.03);
}

.vbg-style-dark {
    background: linear-gradient(135deg, #111827, #312e81) !important;
    color: #ffffff;
}

.vbg-style-dark .vbg-canvas {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.20);
}

.vbg-style-dark .vbg-placeholder {
    color: #d1d5db;
    border-color: rgba(255,255,255,.25);
}

.vbg-style-dark .vbg-board-goals span {
    background: rgba(255,255,255,.16);
    color: #fff;
}

.vbg-style-polaroid .vbg-photo {
    padding: 8px 8px 28px;
    background: #ffffff;
    border-radius: 8px;
    box-sizing: content-box;
}

.vbg-style-magazine .vbg-board-title {
    text-transform: uppercase;
    letter-spacing: .02em;
}

.vbg-style-magazine .vbg-photo {
    border-radius: 4px;
}

@media (max-width: 1180px) {
    .vbg-board {
        width: 100%;
        max-width: 760px;
    }
}

@media (max-width: 980px) {
    .vbg-app {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .vbg-panel {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .vbg-preview-area {
        position: relative !important;
        top: auto !important;
        min-height: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 0;
    }
}

@media (max-width: 560px) {
    .vbg-wrapper {
        padding: 14px;
    }

    .vbg-preview-area {
        padding: 14px;
    }

    .vbg-board {
        min-height: 600px;
        padding: 18px;
    }

    .vbg-canvas {
        height: 360px;
    }

    .vbg-board-title {
        font-size: 26px;
    }

    .vbg-theme-grid,
    .vbg-style-grid {
        grid-template-columns: 1fr;
    }
}



.vbg-panel::-webkit-scrollbar,
.vbg-preview-area::-webkit-scrollbar {
    width: 8px;
}

.vbg-panel::-webkit-scrollbar-thumb,
.vbg-preview-area::-webkit-scrollbar-thumb {
    background: #ddd6fe;
    border-radius: 999px;
}
