/* Educational Component Styles for Mobile */

/* Education Block - Main educational content container */
.education-block {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border-left: 3px solid var(--rose-gold);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-block p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
}

.education-block p:last-child {
    margin-bottom: 0;
}

.education-block strong {
    color: var(--ink);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

/* Educational Video Block */
.educational-video-block {
    margin: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

.video-placeholder.educational {
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.08) 0%, rgba(184, 197, 214, 0.08) 100%);
    border: 1px solid rgba(232, 180, 184, 0.2);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-placeholder.educational:active {
    transform: scale(0.98);
}

.video-placeholder.educational .video-visual {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.video-placeholder.educational .avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rose-gold) 0%, var(--dusty-blue) 100%);
    border-radius: 50%;
    position: relative;
    opacity: 0.3;
}

.video-placeholder.educational .avatar-circle::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
}

.video-placeholder.educational .video-label {
    margin-bottom: 8px;
}

.video-placeholder.educational .pill {
    background: var(--rose-gold);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.education-preview {
    text-align: center;
    font-style: italic;
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1.4;
    padding: 0 16px;
    max-width: 280px;
}

/* Tile Expanded Content Container */
.tile-expanded-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.protection-tile.expanded .tile-expanded-content {
    max-height: 1000px;
}

/* Fix tile options spacing when inside expanded content */
.tile-expanded-content .tile-options {
    padding: 16px 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Educational option chips with subtitle */
.option-chip.educational {
    padding: 0;
    height: auto;
    background: white;
    border: 2px solid var(--dusty-blue-light);
}

.option-chip.educational .option-content {
    padding: 12px 16px;
}

.option-chip.educational .option-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 4px;
}

.option-chip.educational .option-subtitle {
    font-size: 12px;
    color: var(--ink-light);
    font-weight: 400;
}

.option-chip.educational.active {
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.15) 0%, rgba(184, 197, 214, 0.15) 100%);
    border-color: var(--rose-gold);
}

/* Review Screen Educational Enhancements */
.education-summary {
    background: var(--gradient-warm);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.education-summary .summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.learning-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-light);
}

.learning-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: 700;
}

.recommendation-summary {
    background: white;
    border: 1px solid var(--dusty-blue-light);
    border-radius: 12px;
    padding: 20px;
}

.recommendation-summary .summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

/* Confirmation Screen Educational Content */
.education-value {
    background: linear-gradient(135deg, rgba(168, 192, 154, 0.08) 0%, rgba(232, 180, 184, 0.08) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid var(--sage);
}

.education-value .value-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.education-value p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-light);
    margin: 0;
}

.application-guide {
    background: white;
    border: 1px solid var(--dusty-blue-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.application-guide .guide-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}

/* Modal Educational Updates */
.alert-preview .alert-header {
    background: linear-gradient(135deg, var(--sage) 0%, var(--dusty-blue) 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 14px;
}

.alert-section strong {
    color: var(--ink);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.alert-section div {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-light);
    margin-bottom: 12px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .education-block {
        padding: 16px;
        margin: 12px 0;
    }
    
    .education-block p {
        font-size: 13px;
    }
    
    .educational-video-block {
        margin: 16px 0;
    }
    
    .video-placeholder.educational {
        min-height: 160px;
        padding: 12px;
    }
    
    .education-preview {
        font-size: 13px;
        padding: 0 12px;
    }
    
    .option-chip.educational .option-title {
        font-size: 13px;
    }
    
    .option-chip.educational .option-subtitle {
        font-size: 11px;
    }
}

/* Fix for tile expansion on mobile */
.protection-tile {
    transition: all 0.3s ease;
}

.protection-tile.expanded {
    margin-bottom: 20px;
}

.protection-tile.expanded .chevron {
    transform: rotate(180deg);
}

/* Ensure proper spacing for expanded content */
.protection-tile.expanded .tile-header {
    border-bottom: 1px solid rgba(232, 180, 184, 0.2);
    margin-bottom: 0;
}