/* Languages Widget Styles - Light Mode Only */

.languages-widget {
    padding: 60px 0;
    background: transparent;
}

.languages-header {
    text-align: center;
    margin-bottom: 50px;
}

.languages-header .subtitle {
    color: #ff014f;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: inherit;
}

.languages-header .maintitle {
    color: #1d1d1d;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: inherit;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .languages-header .maintitle {
        font-size: 32px;
    }
}

@media only screen and (max-width: 575px) {
    .languages-header .maintitle {
        font-size: 28px;
    }
}

@media only screen and (max-width: 479px) {
    .languages-header .maintitle {
        font-size: 24px;
    }
}

.languages-header .description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

/* Grid Layout */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styles */
.language-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 45px 40px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.language-item:hover::before {
    transform: scaleX(1);
}

.language-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #ff014f;
}

/* Content Layout */
.language-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* When no icon is present, center all content */
.language-item.no-icon .language-content {
    justify-content: center;
    padding: 20px 0;
    min-height: 120px;
}

.language-item.no-icon .language-content.no-icon {
    gap: 0;
}

.language-item.no-icon {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
}

.language-item.no-icon:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #ff014f;
    transform: translateY(-3px);
}

/* Icon Styles */
.language-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff014f, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

/* Hide icon when no icon is present */
.language-item.no-icon .language-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

.language-item:hover .language-icon {
    transform: scale(1.1);
    box-shadow: none !important;
}

.language-item .language-icon {
    box-shadow: none !important;
}

.language-item:focus .language-icon {
    box-shadow: none !important;
}

.language-item:active .language-icon {
    box-shadow: none !important;
}

.language-icon i,
.language-icon svg {
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
}

.language-icon[style*="background"] i,
.language-icon[style*="background"] svg {
    color: #ffffff;
}

.language-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-item:hover .language-icon::before {
    opacity: 1;
}

/* Text Content */
.language-info {
    flex: 1;
    width: 100%;
}

.language-name {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1d;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.language-item:hover .language-name {
    color: #ff014f;
}

.proficiency-level {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* Proficiency level colors */
.proficiency-native {
    background: rgba(255, 1, 79, 0.1);
    color: #ff014f;
}

.proficiency-fluent {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.proficiency-advanced {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.proficiency-intermediate {
    background: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.proficiency-basic {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

.language-description {
    font-size: 14px;
    color: #666;
    margin: 10px 0 0 0;
    line-height: 1.5;
}

/* Responsive Design */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .languages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .language-item {
        padding: 30px 25px;
    }
    
    .language-item.no-icon .language-content {
        min-height: 100px;
        padding: 15px 0;
    }
    
    .language-item.no-icon {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border: 2px dashed #dee2e6;
    }
    
    .language-name {
        font-size: 16px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .languages-header .maintitle {
        font-size: 32px;
    }
    
    .language-item {
        padding: 30px;
    }
    
    .language-item.no-icon .language-content {
        min-height: 100px;
        padding: 15px 0;
    }
    
    .language-item.no-icon {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border: 2px dashed #dee2e6;
    }
}

@media only screen and (max-width: 767px) {
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .languages-header .maintitle {
        font-size: 28px;
    }
    
    .languages-header .description {
        font-size: 14px;
    }
    
    .language-icon {
        width: 50px;
        height: 50px;
        box-shadow: none !important;
    }
    
    .language-icon i,
    .language-icon svg {
        font-size: 20px;
    }
    
    .language-item:hover .language-icon {
        box-shadow: none !important;
    }
    
    .language-item.no-icon .language-content {
        min-height: 80px;
        padding: 10px 0;
    }
    
    .language-item.no-icon {
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border: 2px dashed #dee2e6;
    }
    
    .language-name {
        font-size: 16px;
    }
}

@media only screen and (max-width: 575px) {
    .languages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .languages-header .maintitle {
        text-align: center;
        margin: 0;
        font-size: 34px;
    }
    
    .language-name {
        font-size: 15px;
    }
}

/* Animation Classes */
.language-item[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.language-item[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Icon Colors */
.language-item[data-language-color] .language-icon {
    background: var(--language-color, #ff014f);
}

/* Loading State */
.languages-grid.loading {
    position: relative;
    min-height: 200px;
}

.languages-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e8e8e8;
    border-top: 3px solid #ff014f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 