/* ================================================
   WEBINAR LEARNING PROGRESS SYSTEM
   Універсальний компонент для відстеження прогресу
   ================================================ */

:root {
    --progress-gradient: linear-gradient(135deg, #38A1DB, #32E1A9);
    --progress-bg: rgba(255, 255, 255, 0.05);
    --progress-border: rgba(255, 255, 255, 0.1);
    --step-completed: #32E1A9;
    --step-current: #38A1DB;
    --step-upcoming: #666;
}

/* ================================================
   PROGRESS BAR
   ================================================ */

.webinar-progress-container {
    background: var(--card-glass, rgba(255, 255, 255, 0.1));
    border: 1px solid var(--progress-border);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0 40px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light, #FFFFFF);
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-percentage {
    font-size: 24px;
    font-weight: 800;
    background: var(--progress-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fira Code', monospace;
}

.progress-bar-wrapper {
    position: relative;
    height: 12px;
    background: var(--progress-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--progress-border);
}

.progress-bar-fill {
    height: 100%;
    background: var(--progress-gradient);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 20px rgba(56, 161, 219, 0.5);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ================================================
   STEPS NAVIGATION
   ================================================ */

.progress-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--progress-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-secondary, #9CA3AF);
    position: relative;
}

.progress-step:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* Completed Step */
.progress-step.completed {
    border-color: var(--step-completed);
    background: rgba(50, 225, 169, 0.05);
}

.progress-step.completed .step-icon {
    background: var(--step-completed);
    color: #000;
}

.progress-step.completed .step-number {
    color: var(--step-completed);
}

/* Current Step */
.progress-step.current {
    border-color: var(--step-current);
    background: rgba(56, 161, 219, 0.1);
    box-shadow: 0 8px 25px rgba(56, 161, 219, 0.3);
}

.progress-step.current .step-icon {
    background: var(--progress-gradient);
    color: #fff;
    animation: pulse 2s infinite;
}

.progress-step.current .step-number {
    color: var(--step-current);
}

/* Upcoming Step */
.progress-step.upcoming {
    opacity: 0.6;
}

.progress-step.upcoming .step-icon {
    background: var(--step-upcoming);
    color: #999;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 161, 219, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(56, 161, 219, 0); }
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-number {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-family: 'Fira Code', monospace;
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.step-subtitle {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 3px;
}

/* Completed Checkmark */
.progress-step.completed .step-icon::after {
    content: '✓';
    position: absolute;
    font-size: 28px;
    font-weight: 700;
}

/* ================================================
   NEXT STEP CTA
   ================================================ */

.next-step-cta {
    background: linear-gradient(135deg,
        rgba(56, 161, 219, 0.15) 0%,
        rgba(50, 225, 169, 0.15) 100%);
    border: 2px solid var(--brand-blue, #38A1DB);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 50px 0 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.next-step-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(56, 161, 219, 0.1) 0%,
        transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.next-step-cta h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--progress-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.next-step-cta p {
    font-size: 16px;
    color: var(--text-secondary, #9CA3AF);
    margin-bottom: 25px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--progress-gradient);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(56, 161, 219, 0.4);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(56, 161, 219, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button::after {
    content: '→';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

/* Wrapper for multiple CTA buttons */
.cta-buttons-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Secondary button (for "back" or alternative actions) */
.cta-button-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--brand-blue, #38A1DB);
    color: var(--brand-blue, #38A1DB);
    box-shadow: none;
    margin-left: 15px;
}

.cta-button-secondary:hover {
    background: rgba(56, 161, 219, 0.1);
    box-shadow: 0 8px 25px rgba(56, 161, 219, 0.3);
}

/* ================================================
   BREADCRUMBS
   ================================================ */

.webinar-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--brand-blue, #38A1DB);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: var(--brand-green, #32E1A9);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-secondary, #9CA3AF);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text-light, #FFFFFF);
    font-weight: 600;
}

.breadcrumb-upcoming {
    color: var(--text-secondary, #9CA3AF);
    opacity: 0.5;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .webinar-progress-container {
        padding: 20px 15px;
        margin: 20px 0 30px 0;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-title {
        font-size: 14px;
    }

    .progress-percentage {
        font-size: 20px;
    }

    .progress-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .progress-step {
        padding: 12px 8px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .step-title {
        font-size: 11px;
    }

    .step-subtitle {
        font-size: 9px;
    }

    .next-step-cta {
        padding: 30px 20px;
        margin: 30px 0 20px 0;
    }

    .next-step-cta h3 {
        font-size: 20px;
    }

    .next-step-cta p {
        font-size: 14px;
    }

    .cta-buttons-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .cta-button-secondary {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .webinar-breadcrumbs {
        font-size: 12px;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        grid-template-columns: 1fr;
    }

    .progress-step {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }

    .step-icon {
        margin-bottom: 0;
    }

    .step-content {
        flex: 1;
    }
}

/* ================================================
   ACHIEVEMENT BADGE (bonus feature)
   ================================================ */

.achievement-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--progress-gradient);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(56, 161, 219, 0.5);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    animation: slideInRight 0.5s ease, bounce 1s ease 0.5s;
    cursor: pointer;
}

.achievement-badge:hover {
    transform: scale(1.05);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
