/* LanguageLearningDifficulty.css - Calculator-specific styles ONLY
 * DO NOT redefine global classes from layout.css
 * See GLOBAL_CSS_CLASSES.md for reference
 */

/* Result Display Styling */
.language-result-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.language-result-value.small {
    font-size: 2rem;
}

.language-result-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.language-result-unit {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
}

/* Difficulty Level Bar */
.language-difficulty-container {
    margin: 15px 0;
}

.language-difficulty-bar {
    height: 12px;
    background: linear-gradient(90deg, #48bb78 0%, #f6e05e 33%, #ed8936 66%, #e53e3e 100%);
    border-radius: 6px;
    position: relative;
    margin: 10px 0;
}

.language-difficulty-marker {
    position: absolute;
    top: -8px;
    width: 28px;
    height: 28px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.language-difficulty-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 5px;
}

/* Milestone Timeline */
.language-milestone-list {
    position: relative;
    padding-left: 30px;
}

.language-milestone-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #48bb78 0%, #667eea 50%, #764ba2 100%);
    border-radius: 2px;
}

.language-milestone-item {
    position: relative;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.language-milestone-item:last-child {
    border-bottom: none;
}

.language-milestone-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
}

.language-milestone-item.completed::before {
    background: #48bb78;
    border-color: #48bb78;
}

.language-milestone-hours {
    font-weight: 700;
    color: #667eea;
    font-size: 0.9rem;
}

.language-milestone-desc {
    color: #4a5568;
    font-size: 0.85rem;
    margin-top: 3px;
}

.language-milestone-progress {
    font-size: 0.75rem;
    color: #48bb78;
    font-weight: 600;
}

/* Study Plan Cards */
.language-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.language-plan-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.language-plan-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.language-plan-label {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 3px;
}

/* Language Comparison Bar Chart */
.language-comparison-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-comparison-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-comparison-name {
    width: 80px;
    font-size: 0.85rem;
    color: #4a5568;
    text-align: right;
    flex-shrink: 0;
}

.language-comparison-bar-container {
    flex: 1;
    height: 24px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.language-comparison-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
}

.language-comparison-bar.highlight {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

.language-comparison-hours {
    width: 70px;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
}

/* Chart Container */
.language-chart-container {
    position: relative;
    height: 280px;
    margin: 15px 0;
}

/* Disclaimer Box */
.language-disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.language-disclaimer-title {
    font-weight: 600;
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.language-disclaimer-item {
    font-size: 0.85rem;
    color: #856404;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.language-disclaimer-item:last-child {
    margin-bottom: 0;
}

.language-disclaimer-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Category Badge */
.language-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.language-category-badge.cat-1 {
    background: #c6f6d5;
    color: #276749;
}

.language-category-badge.cat-2 {
    background: #fefcbf;
    color: #975a16;
}

.language-category-badge.cat-3 {
    background: #fed7aa;
    color: #c05621;
}

.language-category-badge.cat-4 {
    background: #fed7d7;
    color: #c53030;
}

.language-category-badge.cat-5 {
    background: #e9d8fd;
    color: #6b46c1;
}

/* Select Optgroup Styling */
.language-select optgroup {
    font-weight: 700;
    color: #667eea;
    background: #f7fafc;
}

.language-select option {
    font-weight: 400;
    color: #2d3748;
    padding: 8px 12px;
}

/* Input Group Custom for this calculator */
.language-input-group {
    margin-bottom: 20px;
}

.language-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.language-input-label i {
    color: #667eea;
}

.language-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    font-size: 0.7rem;
    cursor: help;
    position: relative;
}

.language-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    max-width: 250px;
    white-space: normal;
    z-index: 100;
    margin-bottom: 5px;
}

/* Result Card Gradient Background */
.language-result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.language-result-card .card-title {
    color: white;
}

.language-result-card .language-result-value {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-result-card .language-result-label {
    color: rgba(255, 255, 255, 0.8);
}

.language-result-card .language-result-unit {
    color: rgba(255, 255, 255, 0.9);
}

/* Weekly Hours Visual Reference */
.language-hours-reference {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 5px;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-result-value {
        font-size: 2.5rem;
    }

    .language-result-value.small {
        font-size: 1.8rem;
    }

    .language-plan-grid {
        grid-template-columns: 1fr;
    }

    .language-comparison-name {
        width: 60px;
        font-size: 0.75rem;
    }

    .language-comparison-hours {
        width: 55px;
        font-size: 0.75rem;
    }

    .language-chart-container {
        height: 250px;
    }

    .language-difficulty-labels {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .language-result-value {
        font-size: 2rem;
    }

    .language-plan-item {
        padding: 10px;
    }

    .language-plan-value {
        font-size: 1.2rem;
    }
}
