/* Ventones Tool Styles - Shared across all tools */
/* Used by: mp3-cutter, tiktok-to-ringtone, video-to-ringtone, etc. */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.page-intro {
    color: #B8C5D6;
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.trust-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.trust-badge {
    background: rgba(46, 109, 255, 0.15);
    color: #2E6DFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tool-container {
    background: #0E1A2B;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 48px;
}

.tool-section-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.tool-section-text {
    color: #8B95A5;
    font-size: 15px;
    margin: 0 0 20px 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #2E6DFF;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0B1220;
}

    .upload-area:hover {
        border-color: #7A4DFF;
        background: #0E1A2B;
    }

    .upload-area.dragover {
        border-color: #7A4DFF;
        background: rgba(46, 109, 255, 0.1);
    }

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232E6DFF" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>') center/contain no-repeat;
}

.upload-text {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-hint {
    color: #8B95A5;
    font-size: 14px;
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #2E6DFF;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46, 109, 255, 0.2);
    border-top: 3px solid #2E6DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
}

.loading-sub {
    font-size: 13px;
    color: #8B95A5;
}

.replace-file-btn {
    background: transparent;
    color: #2E6DFF;
    border: 1px solid #2E6DFF;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 16px;
    transition: all 0.2s ease;
    display: inline-block;
}

    .replace-file-btn:hover {
        background: #2E6DFF;
        color: #fff;
    }

/* Waveform Container */
.waveform-container {
    display: none;
    margin-top: 24px;
}

#waveform {
    background: #0B1220;
    border-radius: 8px;
    overflow: hidden;
    min-height: 150px;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    #waveform {
        min-height: 200px;
    }
}

#timeline {
    background: #0B1220;
    margin-top: 2px;
}

/* Drag handles for mobile */
#waveform .wavesurfer-region-handle {
    width: 8px !important;
    cursor: ew-resize !important;
}

@media (max-width: 768px) {
    #waveform .wavesurfer-region-handle {
        width: 20px !important;
        min-height: 180px !important;
    }
}

#waveform .wavesurfer-region {
    touch-action: none !important;
    cursor: move !important;
}

.mobile-tip {
    color: #7A9FFF;
    font-size: 13px;
    margin-top: 4px;
    padding: 8px;
    background: rgba(46, 109, 255, 0.1);
    border-radius: 6px;
    display: none;
}

@media (max-width: 768px) {
    .mobile-tip {
        display: block;
    }
}

.waveform-tip {
    color: #7A9FFF;
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 6px;
    text-align: center;
}

/* Playback Controls */
.playback-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.primary-play-btn {
    background: #19D1FF;
    color: #0B1220;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 52px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .primary-play-btn:hover {
        background: #3DD8FF;
        transform: translateY(-1px);
    }

    .primary-play-btn.playing {
        background: #7A4DFF;
        color: #fff;
    }

.loop-toggle-btn {
    background: transparent;
    color: #2E6DFF;
    border: 2px solid #2E6DFF;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 52px;
    white-space: nowrap;
    flex-shrink: 0;
    width: 120px;
}

    .loop-toggle-btn:hover {
        background: rgba(46, 109, 255, 0.1);
    }

    .loop-toggle-btn.active {
        background: #2E6DFF;
        color: #fff;
        box-shadow: 0 0 12px rgba(46, 109, 255, 0.4);
    }

/* Time Display */
.time-input {
    background: #0B1220;
    color: #fff;
    border: 1px solid #2E6DFF;
    padding: 6px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

/* Controls */
.controls-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    background: #1A2332;
    color: #fff;
    border: 1px solid #2E6DFF;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
    min-height: 44px;
}

    .preset-btn:hover {
        background: #2E6DFF;
        transform: translateY(-1px);
    }

@media (max-width: 768px) {
    .preset-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
}

.cta-microcopy {
    color: #7A9FFF;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.action-btn {
    background: #2E6DFF;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 48px;
}

    .action-btn:hover {
        background: #7A4DFF;
    }

    .action-btn:disabled {
        background: #1A2332;
        color: #5A6775;
        cursor: not-allowed;
    }

.secondary-btn {
    background: #0B1220;
    color: #fff;
    border: 1px solid #2E6DFF;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    min-height: 48px;
}

    .secondary-btn:hover {
        background: #2E6DFF;
    }

    .secondary-btn.active {
        background: #2E6DFF;
        border-color: #7A4DFF;
    }

/* Advanced Controls */
.advanced-controls {
    margin-top: 16px;
}

.advanced-toggle {
    background: transparent;
    color: #2E6DFF;
    border: 1px solid #2E6DFF;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

    .advanced-toggle:hover {
        background: rgba(46, 109, 255, 0.1);
    }

    .advanced-toggle.active {
        background: #2E6DFF;
        color: #fff;
    }

.advanced-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0;
}

    .advanced-panel.visible {
        max-height: 600px;
        opacity: 1;
        margin-top: 12px;
    }

@media (min-width: 769px) {
    .advanced-toggle {
        display: none;
    }

    .advanced-panel {
        max-height: none;
        opacity: 1;
        margin-top: 12px;
    }
}

.nudge-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.nudge-group {
    background: #0B1220;
    padding: 12px;
    border-radius: 8px;
}

.nudge-label {
    color: #8B95A5;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.nudge-buttons {
    display: flex;
    gap: 8px;
}

.nudge-btn {
    background: #1A2332;
    color: #fff;
    border: 1px solid #2E6DFF;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    flex: 1;
    transition: all 0.2s ease;
}

    .nudge-btn:hover {
        background: #2E6DFF;
    }

.move-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.move-btn {
    background: #1A2332;
    color: #fff;
    border: 1px solid #2E6DFF;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-height: 44px;
    transition: all 0.2s ease;
}

    .move-btn:hover {
        background: #2E6DFF;
    }

.fade-controls {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding: 16px;
    background: #0B1220;
    border-radius: 8px;
    flex-wrap: wrap;
}

.fade-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #B8C5D6;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    min-width: 150px;
}

    .fade-option input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        accent-color: #2E6DFF;
    }

.info-text {
    color: #8B95A5;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* Messages */
.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid #FF3B30;
    color: #FF6B6B;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    display: none;
}

.success-message {
    background: #0E1A2B;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    display: none;
    margin-top: 24px;
}

.success-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.success-text {
    color: #B8C5D6;
    font-size: 15px;
    margin: 0 0 24px 0;
}

/* VCC 2026-03-23: Download buttons */

/* Legacy - kept for any other uses */
.download-link {
    display: block;
    width: 100%;
    background: #2E6DFF;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 12px;
}

    .download-link:hover {
        background: #7A4DFF;
        transform: translateY(-2px);
    }

/* VCC 2026-03-23: Outlined secondary download button
   Used for "Download MP3 Instead" on iPhone page */
.download-link-outline {
    display: block;
    width: 100%;
    background: transparent;
    color: #2E6DFF;
    padding: 14px 32px;
    border-radius: 8px;
    border: 2px solid #2E6DFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 12px;
}

    .download-link-outline:hover {
        background: rgba(46, 109, 255, 0.1);
        transform: translateY(-1px);
    }

/* VCC 2026-03-23: Success state action button system
   Replaces ad-hoc link styling with clear visual hierarchy */

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Primary action - gradient fill, high contrast, shadow */
.btn-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #19D1FF, #7A4DFF);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(122, 77, 255, 0.35);
    transition: all 0.2s ease;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(122, 77, 255, 0.5);
    }

/* Secondary action - subtle border, lower visual weight */
.btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: #7A9FFF;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(122, 157, 255, 0.4);
    opacity: 0.85;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

    .btn-secondary:hover {
        opacity: 1;
        border-color: rgba(122, 157, 255, 0.7);
        background: rgba(122, 157, 255, 0.05);
    }

.make-another-btn {
    background: transparent;
    color: #2E6DFF;
    border: 1px solid #2E6DFF;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

    .make-another-btn:hover {
        background: #2E6DFF;
        color: #fff;
    }

.success-footer {
    color: #8B95A5;
    font-size: 14px;
    margin: 24px 0 12px 0;
}

.play-badge-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.play-badge-img {
    height: 80px;
    width: auto;
}

@media (max-width: 768px) {
    .play-badge-img {
        height: 60px;
    }
}

/* Related Tools */
.related-tools {
    margin-top: 64px;
}

.related-tools-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.tool-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.tool-link {
    background: #0E1A2B;
    border: 1px solid #2E6DFF;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

    .tool-link:hover {
        background: #2E6DFF;
        transform: translateY(-2px);
    }

.tool-link-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 4px 0;
}

.tool-link-desc {
    color: #8B95A5;
    font-size: 13px;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-top: 64px;
}

.faq-item {
    margin-bottom: 24px;
}

    .faq-item h3 {
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 8px 0;
    }

    .faq-item p {
        color: #B8C5D6;
        font-size: 15px;
        line-height: 1.6;
        margin: 0;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-title {
        font-size: 26px;
    }

    .page-intro {
        font-size: 16px;
    }

    .trust-badges {
        gap: 12px;
    }

    .trust-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .tool-container {
        padding: 24px 16px;
    }

    .controls-row {
        gap: 8px;
    }
}
