/* 
 * AI Twerk Generator - Main Stylesheet
 * Additional styles for the interactive generator interface
 */

/* Hero Section Styles */
.hero {
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-image video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
}

/* How It Works Steps */
.step img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.step:hover img {
    transform: translateY(-5px);
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

/* Video Generation Progress Indicator */
.progress-indicator {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    text-align: center;
    display: none;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4776E6 0%, #8E54E9 100%);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.progress-message {
    font-size: 16px;
    margin: 10px 0;
    font-weight: 500;
    color: #333;
}

.progress-tip {
    font-size: 14px;
    color: #ff6b6b;
    margin: 5px 0;
    font-style: italic;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.progress-indicator.processing .progress-message {
    animation: pulse 2s infinite;
}

/* Feature Icons */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Generator Section Styles */
.generator {
    padding: 80px 0;
    background-color: var(--light);
}

.generator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.upload-container, .options-container {
    flex: 1;
    min-width: 300px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: var(--gray);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.upload-area.highlight {
    border-color: var(--primary);
    background-color: rgba(255, 107, 107, 0.05);
}

.upload-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.file-input {
    display: none;
}

.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#imagePreview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#imagePreview:hover {
    transform: scale(1.02);
}

.option-group {
    margin-bottom: 25px;
}

.option-group h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 18px;
}

.template-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.template-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.template-option img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.template-option span {
    display: block;
    font-size: 14px;
}

.template-option.active {
    border-color: var(--primary);
    background-color: rgba(255, 107, 107, 0.05);
}

.mode-options, .background-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mode-option, .background-option {
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.mode-option.active, .background-option.active {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--light);
}

.generate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
}

.btn-icon {
    margin-right: 8px;
}

.result-container {
    margin-top: 50px;
    text-align: center;
}

.result-container h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.video-result {
    max-width: 500px;
    margin: 0 auto 30px;
}

.video-result video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Example Cards */
.example-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.example-card-new {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.example-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.example-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.example-card-image img, .example-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 107, 107, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.play-button:hover {
    background-color: rgba(255, 107, 107, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.play-button.playing svg {
    display: none;
}

.play-button.playing::before {
    content: "❚❚";
    color: white;
    font-size: 20px;
}

.example-card-content {
    padding: 20px;
}

.example-card-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.example-card-content p {
    color: #666;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item.active {
    border-left: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-question:hover {
    background-color: rgba(255, 107, 107, 0.05);
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 107, 107, 0.1);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background-color: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    background-color: rgba(255, 107, 107, 0.03);
}

/* Footer Styles */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.footer-column h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 100%;
}

.footer-links a {
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

/* Animation Classes */
.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--light);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .generator-container {
        flex-direction: column;
    }
    
    .upload-container, .options-container {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

/* Header Scroll Effect */
header.scrolled {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: var(--light);
}

header {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
