/* PG Video Generator - Glassmorphism Landing Page */

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Enhanced Gradient Background */
.video-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 2rem 40px;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A259FF 0%, #764ba2 50%, #17D1FF 100%);
    z-index: -2;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 40%, rgba(162, 89, 255, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 60% 60%, rgba(23, 209, 255, 0.3) 0%, transparent 50%);
    animation: pulse 12s ease-in-out infinite;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1.15) translate(5%, 5%) rotate(3deg); }
}

/* Enhanced Floating Play Icon */
.floating-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(162, 89, 255, 0.4));
}

@keyframes float {
    0%, 100% { 
        transform: translate(-50%, -50%) translateY(0px) rotate(0deg); 
        filter: drop-shadow(0 10px 30px rgba(162, 89, 255, 0.4));
    }
    50% { 
        transform: translate(-50%, -50%) translateY(-25px) rotate(5deg); 
        filter: drop-shadow(0 15px 40px rgba(23, 209, 255, 0.5));
    }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.hero-content {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 32px;
    padding: 3.5rem 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1),
                0 20px 60px rgba(0, 0, 0, 0.2),
                0 10px 30px rgba(162, 89, 255, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* Hero Text - Enhanced */
.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                 0 2px 10px rgba(162, 89, 255, 0.5);
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-button {
    background: linear-gradient(90deg, #8a63ff, #4bc4ff);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(138, 99, 255, 0.4);
    margin-bottom: 1rem;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(138, 99, 255, 0.5);
}

.cta-button:active {
    transform: scale(0.98);
}

.secondary-cta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 1.2rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 1s ease-out;
}

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

/* Features Section */
.features-section {
    padding: 3rem 2rem 4rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05));
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Feature Cards - Enhanced */
.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5),
                0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6),
                0 12px 30px rgba(138, 99, 255, 0.3),
                0 6px 15px rgba(75, 196, 255, 0.2);
    border-color: rgba(138, 99, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2A2F45;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-description {
    font-size: 1rem;
    color: #6A6F85;
    line-height: 1.6;
}

/* Trust Text */
.trust-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

/* Footer */
.video-footer {
    background: transparent;
    padding: 32px 2rem;
    text-align: center;
}

.video-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.video-footer .footer-copyright {
    color: #000000;
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.video-footer .instagram-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.video-footer .instagram-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    padding: 4px;
    transition: all 0.25s ease;
}

.video-footer .instagram-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.video-footer .instagram-icon-link:hover .instagram-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 85, 200, 0.4);
}

.video-footer .footer-links {
    color: #000000;
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.5;
}

.video-footer .footer-links a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-footer .footer-links a:hover {
    color: #6A5ACD;
}

.video-footer .footer-links .separator {
    color: rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Desktop Large Screens */
@media (min-width: 1024px) {
    .video-hero {
        padding: 60px 2rem 40px;
    }
    
    .features-section {
        padding: 3rem 2rem 4rem;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-hero {
        padding: 40px 1.5rem 32px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 0.9rem 2.5rem;
        width: 100%;
        max-width: 300px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-section {
        padding: 2.5rem 1.5rem 3rem;
    }

    .floating-icon {
        width: 80px;
        height: 80px;
    }

    .floating-icon svg {
        width: 80px;
        height: 80px;
    }
    
    .video-footer {
        padding: 28px 1.5rem;
    }
    
    .video-footer .footer-copyright {
        flex-direction: column;
        gap: 12px;
    }
    
    .video-footer .footer-links {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .video-hero {
        padding: 40px 1rem 24px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .features-section {
        padding: 2rem 1rem 3rem;
    }
    
    .video-footer {
        padding: 24px 1rem;
    }
    
    .video-footer .instagram-icon {
        width: 20px;
        height: 20px;
    }
    
    .video-footer .footer-copyright,
    .video-footer .footer-links {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .video-hero {
        padding: 36px 0.75rem 20px;
    }
    
    .hero-content {
        padding: 1.25rem 0.875rem;
    }
    
    .features-section {
        padding: 1.5rem 0.75rem 2.5rem;
    }
}

/* Loading State */
.cta-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance Optimization */
.video-hero,
.features-section {
    will-change: transform;
}

.feature-card,
.cta-button {
    will-change: transform, box-shadow;
}

/* ============================================
   VIDEO REQUEST FORM STYLES (text-to-video.html)
   ============================================ */
.header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
}

.header h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Form Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.section {
    margin-bottom: 2rem;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group textarea,
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    box-sizing: border-box;
}

.form-group textarea::placeholder,
.form-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 0.875rem;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 90, 111, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Messages */
.message {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.5rem;
}

.success-message {
    background: rgba(72, 187, 120, 0.2);
    border: 2px solid rgba(72, 187, 120, 0.4);
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #68d391;
}

.success-message h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.success-message p {
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.error-message {
    background: rgba(245, 101, 101, 0.2);
    border: 2px solid rgba(245, 101, 101, 0.4);
    color: #fc8181;
}

.hidden {
    display: none !important;
}

/* Request Cards */
.request-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.request-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.request-date {
    font-size: 0.875rem;
    opacity: 0.7;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(237, 137, 54, 0.2);
    color: #fbd38d;
    border: 1px solid rgba(237, 137, 54, 0.4);
}

.status-processing {
    background: rgba(66, 153, 225, 0.2);
    color: #90cdf4;
    border: 1px solid rgba(66, 153, 225, 0.4);
}

.status-completed {
    background: rgba(72, 187, 120, 0.2);
    color: #68d391;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.request-prompt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.request-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Loader */
.loader {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

.loader i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    opacity: 0.7;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.feature-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Daily Limit Warning */
.limit-warning {
    background: rgba(245, 101, 101, 0.15);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.limit-warning i {
    font-size: 1.5rem;
    color: #fc8181;
}

.limit-warning p {
    margin: 0;
    font-size: 0.95rem;
}

/* Video Container */
.video-container {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-container video {
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .header .subtitle {
        font-size: 0.95rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .glass-card h2 {
        font-size: 1.4rem;
    }

    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .request-actions {
        width: 100%;
    }

    .request-actions .btn {
        flex: 1;
        justify-content: center;
    }
}
