/* Personalised Branded Theme Styles */

.theme-personalized-1 {
    --theme-bg: #0a0a0c;
    --theme-text: #fff;
    --theme-text-muted: #ccc;
    --theme-accent: #00e5ff;
    --theme-overlay: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    --theme-border: none;
}

.theme-personalized-1 .content-overlay {
    padding-left: 80px;
}

.square-ratio .preview-canvas.theme-personalized-1 .content-overlay {
    padding-left: 50px;
}

.theme-personalized-2 {
    --theme-bg: #ffffff;
    --theme-text: #1a1a1a;
    --theme-text-muted: #4a4a4a;
    --theme-accent: #007bff; /* Vibrant Blue */
    --theme-overlay: rgba(255, 255, 255, 0.7);
    --theme-border: 12px solid var(--theme-accent);
    --theme-apply-bg: var(--theme-accent);
    --theme-apply-text: #fff;
    --theme-apply-subtext: #1a1a1a;
}

.theme-personalized-2 .theme-bg {
    background-image: url('../Theme background/6.jfif');
}

.theme-personalized-2 .list-item {
    border-left: 4px solid var(--theme-accent);
    padding-left: 12px;
}

.theme-personalized-2 .list-number {
    display: none;
}

/* Replicating any specific theme-2 overrides if they exist */
/* Based on styles.css, theme-2 mostly uses the variables above */

.theme-personalized-1 .theme-bg {
    background-image: url('../Theme background/2.jfif'); /* Using a default for theme 2 */
}

.curved-text-container {
    position: absolute;
    top: -40px;
    left: -50px;
    width: 160px;
    height: 280px;
    z-index: -1;
    pointer-events: none;
}

.curved-text-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.curved-text-container text {
    fill: var(--theme-accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

/* Ensure the layout matches theme 2's specific needs if any */

.personalized-logo-container {
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 100;
    width: 110px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo-inner-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 100px 0 0 100px; /* Perfect semicircle */
    border: 4px solid var(--theme-accent);
    border-right: none;
    overflow: hidden;
    background: #000;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 10px;
}

.logo-inner-wrapper img.hidden {
    display: none;
}

.logo-inner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#personalized-upload-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#personalized-upload-section:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 600px) {
    .theme-personalized-1 {
        --theme-border: 4px solid var(--theme-accent);
    }

    .curved-text-container {
        top: -10px;
        left: -15px;
        width: 70px;
        height: 130px;
    }

    .curved-text-container text {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .personalized-logo-container {
        top: 20px;
        right: 0;
        width: 60px;
        height: 110px;
    }

    .logo-inner-wrapper {
        border-radius: 55px 0 0 55px;
        border-width: 3px;
    }
}
