/* Product Photography Specialized Styles — Aligned with Ad Creative Pipeline */

.badge-required {
    background: rgba(0, 255, 209, 0.1);
    color: #C1FF72;
    border: 1px solid rgba(0, 255, 209, 0.2);
}

.badge-optional {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Vertical Stepper — Aligned with prompt-based-generation.css */
.welcome-container.flow-active {
    padding-top: 100px;
    padding-bottom: 60px;
}

.product-page .welcome-container .container {
    max-width: none;
    padding-left: 3rem;
    padding-right: 3rem;
}

.product-page .stepper-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.stepper-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.product-page .stepper-sidebar {
    width: 260px;
}

.vertical-stepper {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
}

.stepper-item {
    position: relative;
    padding-bottom: 3.5rem;
}

.stepper-item:last-child {
    padding-bottom: 0;
}

.step-connector {
    position: absolute;
    left: 18px;
    top: 36px;
    bottom: 0px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.stepper-item.completed .step-connector {
    background: var(--bs-primary);
}

.step-inner {
    display: flex;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.step-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d1117;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.stepper-item.active .step-node {
    background: #0d1117;
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    box-shadow: 0 0 15px rgba(193, 255, 114, 0.15);
}

.stepper-item.completed .step-node {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #1a2025;
}

.step-main-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.stepper-item.active .step-main-label {
    color: white;
}

.stepper-item.completed .step-main-label {
    color: white;
    opacity: 0.8;
}

.step-sub-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
    max-width: 260px;
    transition: color 0.3s ease;
}

.stepper-item.active .step-sub-label {
    color: rgba(255, 255, 255, 0.5);
}

.step-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Content Area — Compact spacing as requested */
.stepper-main-area {
    flex-grow: 1;
}

.step-content-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.25rem 2rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.step-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.step-header-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

/* Grid Layout — Aligned with prompt-based-generation.css */
.step-pane-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .step-pane-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 2.5rem;
        align-items: stretch !important;
    }

    .description-column {
        display: flex;
        flex-direction: column;
    }

    .creative-brief-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
    }
}

.upload-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.upload-slot {
    position: relative;
    overflow: hidden;
    height: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-slot:hover {
    border-color: var(--bs-primary);
    background: rgba(20, 184, 166, 0.04);
}

.slot-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.88);
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    z-index: 5;
    justify-content: center;
    align-items: center;
}

.upload-slot:hover .slot-actions-overlay {
    display: flex;
}

.upload-slot.has-image .slot-actions-overlay {
    display: none !important;
}

.slot-action-btn {
    width: 100%;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    pointer-events: all;
    font-family: inherit;
    outline: none;
}

.slot-action-btn:hover {
    background: var(--bs-primary);
    color: #1a2025;
    border-color: var(--bs-primary);
}

.slot-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.slot-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.slot-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.upload-slot.has-image .slot-icon,
.upload-slot.has-image .slot-label {
    display: none;
}

.slot-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 12;
    transition: all 0.2s ease;
}

.upload-slot.has-image .slot-remove {
    display: flex;
}

.slot-remove:hover {
    background: #ff4747;
}

/* Summary thumbs */
.summary-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brief Textarea — Aligned */
.brief-textarea {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    color: white !important;
    padding: 1.25rem;
    font-size: 0.95rem;
    resize: none;
    outline: none !important;
    transition: border-color 0.2s ease;
}

.brief-textarea:focus {
    border-color: var(--bs-primary) !important;
}

/* Nav Buttons — Aligned */
.btn-step-nav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-step-nav:hover:not(.disabled) {
    color: white;
    transform: translateY(-2px);
}

.btn-step-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#btn-next {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-dark);
    padding: 0.75rem 2.5rem;
}

#btn-next:hover:not(.disabled) {
    background: #C1FF72;
    border-color: #C1FF72;
}

.btn-back-step {
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 0;
}

.btn-back-step:hover {
    color: white;
}

/* Result Styles — Compact */
.ad-result-img {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

/* Generating State — Aligned */
.loading-animation-wrapper {
    width: 100px;
    height: 100px;
}

.loading-icon-circle {
    width: 100px;
    height: 100px;
    background: rgba(20, 184, 166, 0.1);
    border: 1.5px solid rgba(20, 184, 166, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.loading-icon-circle iconify-icon {
    animation: icon-pulse 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.35));
}

.circular-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes icon-pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.92);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

@media (max-width: 991px) {
    .product-page .welcome-container .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .product-page .stepper-layout {
        display: block;
    }

    .stepper-sidebar {
        display: none;
    }

    .step-content-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .product-page .welcome-container .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .step-header-title {
        font-size: 1.4rem;
    }

    .step-content-card {
        padding: 1rem;
        min-height: auto;
    }

    .product-info-card {
        align-items: flex-start !important;
    }

    .product-info-content {
        width: 100%;
        text-align: left;
    }

    .product-info-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .product-info-header .step-main-label {
        display: inline-flex;
        align-items: center;
        gap: 0;
        margin: 0;
    }

    .product-info-list {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        width: 100%;
    }

    .product-info-item {
        display: grid;
        grid-template-columns: 1.5rem minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        width: 100%;
        text-align: left;
    }

    .product-info-number {
        margin: 0 !important;
        display: block;
        text-align: left;
    }

    .product-info-text {
        display: block;
        text-align: left;
    }

    .upload-slots-grid {
        grid-template-columns: 1fr;
    }

    .upload-slot {
        height: 180px;
    }

    .slot-action-btn {
        min-width: 0;
        width: 100%;
    }
}








