@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --mentoria-primary: #ff6600;
    --mentoria-bg: #0a0a0a;
    --mentoria-card-bg: #1a1a1a;
    --mentoria-text: #ffffff;
    --mentoria-text-dim: #a0a0a0;
    --mentoria-border: rgba(255, 102, 0, 0.3);
}

.mentoria-timeline-container {
    font-family: 'Outfit', sans-serif;
    color: var(--mentoria-text);
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2); /* Aproximadamente #00000035 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.mentoria-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Vertical Line */
.mentoria-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed var(--mentoria-primary);
    transform: translateX(-50%);
    opacity: 0.5;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--mentoria-bg);
    border: 2px solid var(--mentoria-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}

.timeline-dot span {
    color: var(--mentoria-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Content Layout */
.timeline-content {
    display: flex;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.timeline-text {
    width: 45%;
}

.timeline-video {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item.left .timeline-text {
    text-align: right;
    order: 1;
}

.timeline-item.left .timeline-video {
    order: 2;
    margin-left: auto;
}

.timeline-item.right .timeline-text {
    text-align: left;
    order: 2;
    margin-left: auto;
}

.timeline-item.right .timeline-video {
    order: 1;
}

/* Text Styles */
.timeline-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mentoria-primary);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--mentoria-text-dim);
}

/* Video Styling */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.timeline-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(90deg, #ff6600 0%, #ff8533 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    border: none;
}

.timeline-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
    color: white;
}

.video-protection-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Protege a área do título */
    z-index: 10;
    background: transparent;
}

.video-wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background: transparent;
}

/* Edit Button */
#mentoria-edit-trigger {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 102, 0, 0.1) !important;
    color: var(--mentoria-primary) !important;
    border: 1px solid var(--mentoria-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    backdrop-filter: blur(5px) !important;
}

#mentoria-edit-trigger:hover {
    background: var(--mentoria-primary) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4) !important;
}

#mentoria-edit-trigger svg {
    width: 20px;
    height: 20px;
}

/* Popup Styles */
.mentoria-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100000 !important;
    padding: 20px !important;
}

.mentoria-popup-content {
    background: var(--mentoria-card-bg);
    width: 100%;
    max-width: 1000px !important;
    height: 80vh;
    border-radius: 20px;
    border: 1px solid var(--mentoria-border);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
}

.popup-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--mentoria-primary);
}

.close-popup {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    opacity: 0.5 !important;
    transition: all 0.2s !important;
    line-height: 1 !important;
}

.close-popup:hover {
    opacity: 1 !important;
    color: var(--mentoria-primary) !important;
    transform: scale(1.1);
}

.popup-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Custom Scrollbar */
.popup-body::-webkit-scrollbar {
    width: 8px;
}

.popup-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.popup-body::-webkit-scrollbar-thumb {
    background: #8b4513; /* Tom laranja escuro/terroso */
    border-radius: 10px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
    background: var(--mentoria-primary);
}

.popup-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Form Styles inside Popup */
.timeline-item-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 25px 25px 25px 60px;
    margin-bottom: 25px;
    position: relative;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    align-items: flex-end;
}

.form-group.half {
    flex: 1;
}

.file-upload-wrapper {
    display: flex;
    gap: 10px;
}

.file-upload-wrapper input {
    flex-grow: 1;
}

.file-upload-wrapper .btn-secondary {
    margin-top: 0 !important;
    padding: 0 15px !important;
    white-space: nowrap;
    font-size: 0.8rem !important;
}

.item-number-circle {
    position: absolute !important;
    top: 25px !important;
    left: 15px !important;
    background: var(--mentoria-primary) !important;
    color: white !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.3) !important;
    z-index: 5 !important;
}

.timeline-item-form .form-group:first-of-type {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--mentoria-text-dim);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--mentoria-primary);
    outline: none;
}

.remove-item {
    position: absolute !important;
    top: 10px !important;
    right: 20px !important;
    background: transparent !important;
    color: var(--mentoria-primary) !important;
    border: 1px solid var(--mentoria-primary) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    transition: all 0.2s !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

.remove-item:hover {
    background: #ff4444 !important;
    border-color: #ff4444 !important;
    color: white !important;
}

/* Button Styles */
.btn-primary {
    background: var(--mentoria-primary) !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background: transparent !important;
    color: var(--mentoria-primary) !important;
    border: 1px solid var(--mentoria-primary) !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    width: auto !important;
    margin-top: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    display: inline-block !important;
}

.btn-secondary:hover {
    background: var(--mentoria-primary) !important;
    color: white !important;
}

/* Responsividade */
@media (max-width: 991px) {
    .timeline-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-text, .timeline-video {
        width: 100% !important;
        text-align: left !important;
    }

    .timeline-item.left .timeline-text, .timeline-item.left .timeline-video,
    .timeline-item.right .timeline-text, .timeline-item.right .timeline-video {
        order: unset;
    }

    .timeline-video {
        order: 1 !important;
    }

    .timeline-text {
        order: 2 !important;
    }
}

@media (max-width: 768px) {
    .mentoria-timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        padding-left: 50px;
    }

    .timeline-title {
        font-size: 1.5rem;
    }
}
