/* Use Cases Page Styles */

/* Hero Section */
.use-cases-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.use-cases-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.use-cases-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Capability Section */
.capability-section {
    padding: 6rem 0;
    position: relative;
}

.seedance-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.seedream-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #1a202c);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary, #4a5568);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Showcase Video Container */
.showcase-video-container {
    margin-bottom: 5rem;
}

.video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.main-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.showcase-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.label-icon {
    font-size: 1.5rem;
}

.label-text {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Application Section */
.application-section {
    margin-bottom: 5rem;
}

.application-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-primary, #1a202c);
    position: relative;
    padding-bottom: 1rem;
}

.application-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Examples Section */
.examples-section {
    margin-bottom: 5rem;
}

.examples-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-primary, #1a202c);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Video Examples Grid - Larger layout */
.video-examples-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1800px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .video-examples-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .video-examples-grid {
        grid-template-columns: 1fr;
    }
}

/* Example Card */
.example-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Video Example Card - Larger size */
.video-example-card {
    padding: 2.5rem;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.example-header {
    margin-bottom: 1.5rem;
}

.example-header h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1a202c);
}

.example-description {
    color: var(--text-secondary, #4a5568);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Before After Container */
.before-after-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Vertical Layout for Video Examples */
.vertical-layout {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.multi-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.media-item {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

/* Large Media Item for Video Examples */
.large-media {
    flex: 1;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
}

.vertical-layout .large-media {
    width: 100%;
    max-width: 100%;
}

.media-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #4a5568);
    margin-bottom: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.example-image:hover {
    transform: scale(1.02);
}

.example-video {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Larger video and image for vertical layout */
.vertical-layout .example-image,
.vertical-layout .example-video {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.arrow-icon {
    font-size: 2rem;
    color: #667eea;
    font-weight: 300;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

/* Vertical Arrow for Video Examples */
.vertical-arrow {
    font-size: 2.5rem;
    transform: none;
    margin: 0.5rem 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.output-item {
    flex: 1.2;
    max-width: 450px;
}

/* Showcase Only Card */
.showcase-only {
    text-align: center;
}

.showcase-image-container {
    margin-top: 1rem;
}

.showcase-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.05);
}

/* Multi-input specific styles */
.multi-input .multi-input-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr) auto 1.2fr;
    gap: 1.5rem;
    align-items: center;
}

.multi-input .media-item {
    max-width: 100%;
}

.multi-input .arrow-icon {
    grid-column: 3;
}

.multi-input .output-item {
    grid-column: 4;
}

@media (max-width: 1024px) {
    .multi-input .multi-input-container {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .multi-input .arrow-icon {
        grid-column: 1;
        transform: rotate(90deg);
    }
    
    .multi-input .output-item {
        grid-column: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .examples-grid {
        gap: 2rem;
    }
    
    .example-card {
        padding: 1.5rem;
    }
    
    .video-example-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .before-after-container {
        flex-direction: column;
    }
    
    .vertical-layout {
        gap: 1.5rem;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
    }
    
    .vertical-arrow {
        transform: none;
    }
    
    .media-item {
        max-width: 100%;
    }
    
    .large-media {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .use-cases-hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .capability-section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .example-card {
        padding: 1.25rem;
    }
    
    .video-example-card {
        padding: 1.5rem;
    }
    
    .video-examples-grid {
        gap: 2rem;
    }
}

/* Dark Theme Support */
[data-theme='dark'] .seedance-section {
    background: linear-gradient(to bottom, #1a202c 0%, #2d3748 100%);
}

[data-theme='dark'] .seedream-section {
    background: linear-gradient(to bottom, #2d3748 0%, #1a202c 100%);
}

[data-theme='dark'] .video-card,
[data-theme='dark'] .example-card {
    background: #2d3748;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .section-title,
[data-theme='dark'] .application-title,
[data-theme='dark'] .examples-title,
[data-theme='dark'] .example-header h4 {
    color: #f7fafc;
}

[data-theme='dark'] .section-description,
[data-theme='dark'] .example-description,
[data-theme='dark'] .media-label {
    color: #cbd5e0;
}

