/* One Take Manual Page Styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}
.one-take-manual-page {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Primary button */
.primary-button {
    background-color: #ffcb00;
    color: #111827;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
}

.primary-button:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Hero Section */
.hero-section {
    padding: 4rem 1.5rem;
    position: relative;
}
.hero-content {
    display: grid;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-text {
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.hero-text h1 {
    line-height: 1.2;
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}
.highlight-text {
    background-color: #FFD54F;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero-visual {
    margin-top: 3rem;
}

/* Phone Styles & Animations */
.angled-phone-frame {
    width: 100%;
    max-width: 280px;
    height: 570px;
    background-color: #1C1C1E;
    border-radius: 3rem;
    padding: 0.75rem;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    border: 2px solid #444;
    transition: transform 0.3s ease;
    animation: animate-in-upright 1s ease-out forwards;
}
.angled-phone-frame:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Desktop layout */
@media (min-width: 1024px) {
    .hero-section {
        padding: 6rem 1.5rem;
    }
    .hero-content {
        grid-template-columns: 55% 45%;
        align-items: center;
    }
    .hero-text {
        grid-column: 1 / 2;
        grid-row: 1;
        justify-self: end;
        text-align: left;
        max-width: 550px;
        padding-right: 2rem;
    }
    .hero-text h1 {
        font-size: 3.75rem;
    }
    .hero-visual {
        grid-column: 2 / 3;
        grid-row: 1;
        justify-self: center;
        margin-top: 0;
    }
    .angled-phone-frame {
        animation: animate-in-angled 1s ease-out forwards;
    }
    .angled-phone-frame:hover {
        transform: rotate(12deg) scale(1.02);
    }
}

@keyframes animate-in-upright {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}
@keyframes animate-in-angled {
    from {
        opacity: 0;
        transform: translateX(30%) rotate(25deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(15deg);
    }
}

.angled-phone-screen {
    background-color: #fff;
    height: 100%;
    border-radius: 2.25rem;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}
.angled-phone-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Loading State Overlay */
.creator-flow-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.creator-flow-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #ffcb00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 1rem;
    color: #4b5563;
    font-weight: 600;
}

/* Upload box content styling */
.upload-box-content {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* Tab Styles */
.tab-nav {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0.5rem 0.5rem 0 0;
}
.tab-button {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: #9ca3af;
    background-color: transparent;
    cursor: not-allowed;
}
.tab-button.clickable {
    cursor: pointer;
    color: #4b5563;
}
.active-tab {
    color: #111827;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: default;
}
.disabled-tab {
    color: #9ca3af;
    cursor: not-allowed;
}

/* Section styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Upload box */
.upload-box {
    border: 2px dashed #D1D5DB;
    border-radius: 0.75rem;
    padding: 4rem 2rem;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.upload-box:hover, .upload-box.drag-over {
    border-color: #ffcb00;
    background-color: #FFFBEB;
}

/* Style the file input to be hidden but still functional */
#videoUpload {
    display: none;
}

/* Video thumbnails */
.video-thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.video-thumbnail {
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Remove iOS tap highlight */
    aspect-ratio: 16/9;
    background-color: #f3f4f6;
}

/* Simple hover effect for desktop only */
.video-thumbnail:hover {
    transform: scale(1.05);
    border-color: #ffcb00;
}

/* Active state for all devices */
.video-thumbnail:active {
    transform: scale(0.98);
    border-color: #ffcb00;
}

/* On touch devices, disable transform on hover to prevent sticky hover */
@media (hover: none) and (pointer: coarse) {
    .video-thumbnail:hover {
        transform: none;
    }
}

.video-thumbnail img,
.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover overlay for video thumbnails */
.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Show overlay on hover for desktop */
.video-thumbnail:hover .video-thumbnail-overlay {
    opacity: 1;
}

/* Hide overlay on touch devices */
@media (hover: none) and (pointer: coarse) {
    .video-thumbnail-overlay {
        display: none;
    }
}
.video-thumbnail-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 0 .5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.try-video-button {
    background-color: #ffcb00;
    color: #111827;
    font-weight: 600;
    padding: 0.1rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    border: none;
    font-size: 0.875rem;
}
.try-video-button:hover {
    background-color: #ffcb00;
}

/* Progress bar */
#progressContainer {
    width: 100%;
    background-color: #E5E7EB;
    border-radius: 9999px;
    height: 0.625rem;
    max-width: 28rem;
    margin: 0 auto;
    overflow: hidden;
}
#progressBar {
    background-color: #ffcb00;
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

/* Infinite progress bar animation */
.progress-infinite #progressBar {
    width: 30% !important;
    animation: progress-infinite 1.5s ease-in-out infinite;
}

@keyframes progress-infinite {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #D1D5DB;
    margin-bottom: 1rem;
}

/* Share section */
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    color: white;
}

#copyButton {
    white-space: nowrap;
    font-size: .9rem;
}

/* Grid utilities */
.grid {
    display: grid;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.gap-4 {
    gap: 1rem;
}
.gap-8 {
    gap: 2rem;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.text-center {
    text-align: center;
}
.max-w-4xl {
    max-width: 56rem;
}
.max-w-xl {
    max-width: 36rem;
}
.max-w-lg {
    max-width: 32rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mb-12 {
    margin-bottom: 3rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-8 {
    margin-top: 2rem;
}
.p-8 {
    padding: 2rem;
}
.w-full {
    width: 100%;
}
.block {
    display: block;
}
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.bg-gray-50 {
    background-color: #f9fafb;
}
.bg-white {
    background-color: #ffffff;
}
.bg-gray-800 {
    background-color: #1f2937;
}
.bg-blue-500 {
    background-color: #3b82f6;
}
.bg-green-500 {
    background-color: #10b981;
}
.text-white {
    color: #ffffff;
}
.text-gray-600 {
    color: #4b5563;
}
.text-gray-700 {
    color: #374151;
}
.text-green-600 {
    color: #059669;
}
.font-bold {
    font-weight: 700;
}
.font-semibold {
    font-weight: 600;
}
.text-lg {
    font-size: 1.125rem;
}
.text-sm {
    font-size: 0.875rem;
}
.rounded-lg {
    border-radius: 0.5rem;
}
.rounded-md {
    border-radius: 0.375rem;
}
.border {
    border-width: 1px;
}
.border-gray-300 {
    border-color: #d1d5db;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.underline {
    text-decoration: underline;
}

/* Video Modal Styles */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-modal-close:hover {
    background-color: #f3f4f6;
}

.video-modal-video-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.video-modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.modal-play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.modal-play-button.hidden {
    display: none;
}

.modal-create-button {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .video-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .video-modal-close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .modal-create-button {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive text display for upload box */
@media (max-width: 767px) {
    .desktop-text {
        display: none !important;
    }
    .mobile-text {
        display: block !important;
    }

    #sampleVideosGrid {
        gap: 0.75rem;
    }
    .video-thumbnail {
        aspect-ratio: 16/10;
    }
}
@media (min-width: 768px) {
    .desktop-text {
        display: block !important;
    }
    .mobile-text {
        display: none !important;
    }
}