/* ═══════════════════════════════════════════════════════════════════════════════
   STUDIO.CSS — AI Studio Page Specific Styles
   Extracted from studio.php inline <style> blocks
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── STUDIO HERO ───────────────────────────────────────────────────────────── */
.hero-studio {
    background: linear-gradient(135deg, #0a0a0c 0%, #1a0f20 50%, #0a0a0c 100%);
}

.ai-neural-net {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    animation: neuralPulse 8s ease-in-out infinite;
}

.floating-ai {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ai-float {
    position: absolute;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-subtle);
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-circle);
    color: var(--primary-purple);
    font-size: 1.5rem;
    animation: aiFloat 7s ease-in-out infinite;
    backdrop-filter: blur(10px);
}


/* ─── HERO FEATURES MINI ────────────────────────────────────────────────────── */
.hero-features-mini {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--purple-subtle);
    border: 1px solid var(--purple-border);
    border-radius: var(--radius-md);
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-mini i {
    font-size: 1.1rem;
}


/* ─── VISUAL GLOW ───────────────────────────────────────────────────────────── */
.visual-glow-studio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    filter: blur(80px);
    animation: glowPulse 4s ease-in-out infinite;
}


/* ─── COMPARISON CARDS ──────────────────────────────────────────────────────── */
.comparison-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.comparison-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.comparison-label.before {
    background: rgba(255, 95, 87, 0.2);
    border: 1px solid rgba(255, 95, 87, 0.4);
    color: #ff5f57;
}

.comparison-label.after {
    background: var(--purple-subtle);
    border: 1px solid rgba(138, 43, 226, 0.4);
    color: var(--primary-purple);
}

.comparison-content {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-features {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    border-top: 1px solid var(--glass-border);
}

.comparison-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.comparison-features i {
    font-size: 0.9rem;
}


/* ─── PROCESS CARDS (Studio) ────────────────────────────────────────────────── */
.process-card {
    padding: 2rem;
    text-align: center;
}

.process-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.process-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.process-number.gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}


/* ─── BENEFIT LIST ──────────────────────────────────────────────────────────── */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-list h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


/* ─── USE CASE CARDS ────────────────────────────────────────────────────────── */
.usecase-card {
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s var(--ease-bounce);
}

.usecase-card span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   5-STAGE RESPONSIVE — STUDIO PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .ai-float { width: 45px; height: 45px; font-size: 1rem; }
    .process-icon { width: 80px; height: 80px; }
    .process-number { font-size: 1.75rem; }
    .feature-mini { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .hero-features-mini { gap: 0.75rem; }
    .comparison-content { padding: 1rem; }
    .comparison-features { padding: 1rem; }
    .usecase-card { padding: 1.5rem 1rem; }
    .benefit-list { gap: 1.5rem; }
    .benefit-list li { gap: 1rem; }
}

@media (min-width: 768px) {
    .process-icon { width: 100px; height: 100px; }
}

/* ─── AI STUDIO DASHBOARD UI ─────────────────────────────────────────────────── */
.ai-dashboard-ui {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    font-family: 'Inter', sans-serif;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.dash-dots span:nth-child(1) { background: #ff5f56; }
.dash-dots span:nth-child(2) { background: #ffbd2e; }
.dash-dots span:nth-child(3) { background: #27c93f; }

.dash-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-purple);
}

.dash-status {
    font-size: 0.7rem;
    font-weight: 600;
    color: #27c93f;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: pulse 2s infinite;
}

.dashboard-body {
    display: flex;
    height: 450px;
}

.dash-sidebar {
    width: 180px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-item {
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-item i { width: 16px; }

.side-item:hover, .side-item.active {
    color: #fff;
    background: rgba(138, 43, 226, 0.15);
    border-right: 3px solid var(--primary-purple);
}

.side-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 20px;
}

.side-item.small {
    font-size: 0.75rem;
    padding: 6px 20px;
    opacity: 0.7;
}

.side-item.small.active-step {
    color: var(--primary-gold);
    opacity: 1;
    font-weight: 600;
}

.dash-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.dash-viewport {
    flex: 1;
    background: #050507;
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.viewport-overlay-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 20px 8px rgba(138, 43, 226, 0.8), 0 0 40px rgba(255, 255, 255, 0.5);
    animation: scanUpDown 3s linear infinite;
    z-index: 10;
}

@keyframes scanUpDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.generating-image-container {
    position: relative;
    width: 200px;
    height: 250px;
}

.gen-image-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.base-layer {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.final-layer {
    opacity: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

/* CSS Generating Overlay */
.generating-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 5;
    border-radius: 8px;
}

.gen-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

.bounding-box {
    position: absolute;
    inset: -15px; /* Automatically perfectly wraps the container with padding */
    pointer-events: none;
    z-index: 10;
}

.corner {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--primary-purple);
    border-style: solid;
}
.top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
.top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.analysis-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--primary-purple);
    color: #fff;
    font-size: 0.7rem;
    padding: 6px 12px;
    font-family: monospace;
    border-radius: 4px;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.dash-progress-area {
    margin-top: 10px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #d16bff);
    position: relative;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
}

.progress-glow {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: #fff;
    filter: blur(5px);
}

.config-matrix {
    display: flex;
    gap: 10px;
}

.config-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.config-chip i { color: var(--primary-gold); filter: drop-shadow(0 0 5px rgba(212,175,55,0.4)); }

/* ─── WORKFLOW GRID ──────────────────────────────────────────────────────────── */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.4s ease;
}

.workflow-card:hover {
    transform: translateY(-5px);
    background: rgba(138, 43, 226, 0.05);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wf-number {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.wf-icon {
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.workflow-card h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.workflow-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ─── NEW STUDIO SECTIONS (PRO GRADE) ─────────────────────────────────── */

/* Advantage Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.bento-card {
    background: rgba(20, 15, 30, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 250px;
}
.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 20px rgba(138, 43, 226, 0.1);
}
.bento-span-4 { grid-column: span 4; }
.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
@media (max-width: 991px) {
    .bento-span-4, .bento-span-8, .bento-span-6 { grid-column: span 12; }
}
.bento-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: auto; /* Pushes text to bottom */
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}
.bento-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, transparent 70%);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.5s ease;
}
.bento-card:hover .bento-glow {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
    transform: scale(1.2);
}
.bento-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}
.bento-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Neural Timeline */
.neural-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
}
.timeline-spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(138,43,226,0.3) 10%, rgba(138,43,226,0.8) 50%, rgba(138,43,226,0.3) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}
.timeline-item {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-content {
    width: calc(50% - 60px);
    background: rgba(15, 10, 20, 0.8);
    border: 1px solid rgba(138,43,226,0.3);
    border-radius: 16px;
    padding: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(138,43,226,0.5);
    z-index: -1;
}
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}
.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}
.timeline-node {
    width: 70px;
    height: 70px;
    background: #0a0a0c;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-gold);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-item:hover .timeline-node {
    background: var(--primary-purple);
    color: #fff;
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 0 40px var(--primary-gold);
    border-color: var(--primary-gold);
}
.step-num {
    font-size: 0.8rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}
@media (max-width: 768px) {
    .timeline-spine { left: 40px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; padding-left: 100px; }
    .timeline-node { left: 40px; }
    .timeline-content { width: 100%; }
    .timeline-content::before { display: none; }
}

/* Side-by-Side Comparison */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 60px; /* space for buttons */
}
@media (max-width: 991px) {
    .comparison-container { flex-direction: column; }
}
.comparison-col {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 1px solid rgba(138,43,226,0.4);
    background: #050507;
}
.comp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.comp-img.raw {
    object-fit: contain;
    background: #ffffff;
    padding: 20px;
}
.comp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 2.5rem;
}
@media (max-width: 991px) {
    .comp-divider { transform: rotate(90deg); padding: 20px 0; }
}
.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 4;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.ba-label-raw {
    left: 20px;
}
.ba-label-final {
    right: 20px;
}
.ba-controls {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}
.ba-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}
.ba-btn.active, .ba-btn:hover {
    background: var(--primary-purple);
    color: #fff;
}

/* Premium CTA */
.cta-premium {
    background: linear-gradient(to right, rgba(20,10,30,0.95), rgba(10,5,15,0.95)), url('../../images/hero/digital_bg.webp') center/cover;
    padding: 120px 0;
    border-top: 1px solid rgba(138,43,226,0.3);
    position: relative;
    overflow: hidden;
}
.cta-glow-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(138,43,226,0.4) 0%, transparent 60%);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: pulseOpacity 4s infinite;
}
