/* Transform Lab Page Styles */

/* Elegant gradient text for Transform Lab branding */
.gradient-text-purple {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Transform Lab Interface Section */
.transform-lab-interface {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #0f1428 0%, #1a1f3a 100%);
    position: relative;
    overflow: hidden;
}

.transform-lab-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.transform-lab-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Iframe Container */
.iframe-container {
    width: 100%;
    max-width: 650px;
    background: linear-gradient(135deg, rgba(15, 20, 40, 0.95), rgba(20, 25, 50, 0.9));
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 24px;
    padding: 0;
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.15),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset,
        0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.iframe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at 50% 0%, rgba(102, 126, 234, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.iframe-container:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow:
        0 25px 80px rgba(102, 126, 234, 0.25),
        0 0 0 1px rgba(102, 126, 234, 0.2) inset,
        0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

/* Iframe Styling */
#transformLabFrame {
    width: 100%;
    min-height: 900px;
    height: auto;
    border: none;
    border-radius: 24px;
    background: #0a0e27;
    display: block;
    position: relative;
    z-index: 1;
}

/* Custom Scrollbar for Iframe Content */
#transformLabFrame::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

#transformLabFrame::-webkit-scrollbar-track {
    background: rgba(15, 20, 40, 0.5);
    border-radius: 10px;
    margin: 4px;
}

#transformLabFrame::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 20, 40, 0.5);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

#transformLabFrame::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.8);
}

#transformLabFrame::-webkit-scrollbar-corner {
    background: rgba(15, 20, 40, 0.5);
}

/* Loading state for iframe */
.iframe-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(147, 51, 234, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Decorative elements */
.iframe-container .corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(147, 51, 234, 0.3);
    pointer-events: none;
}

.iframe-container .corner-decoration.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.iframe-container .corner-decoration.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.iframe-container .corner-decoration.bottom-left {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.iframe-container .corner-decoration.bottom-right {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .transform-lab-interface {
        padding: 2rem 0 4rem;
    }

    .iframe-container {
        max-width: 100%;
        padding: 0;
        border-radius: 16px;
    }

    #transformLabFrame {
        min-height: 800px;
        border-radius: 16px;
    }

    .corner-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .iframe-container {
        padding: 0;
        border-radius: 12px;
    }

    #transformLabFrame {
        min-height: 700px;
        border-radius: 12px;
    }
}

/* Smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}

/* Purple theme adjustments for buttons and elements on this page */
.transform-lab-interface .btn-gen-outline:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: #a855f7;
}

/* Additional purple accents */
.transform-lab-interface .feature-tag-gen {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
    color: #a855f7;
}

/* Glossy effect on hover */
.iframe-container::after:hover {
    opacity: 1;
}

