/**
 * CSS стили для плагина Ausbildungen Manager
 * Файл: assets/css/ausbildungen.css
 */

/* Основной контейнер */
.ausbildungen-container {
    margin: 0 auto;
    padding: 20px;
}

/* Заголовок секции */
.ausbildungen-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #333;
}

/* Фильтр */
.ausbildungen-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background-color: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Сетка курсов */
.ausbildungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

/* Карточка курса */
.ausbildung-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e9ecef;
}

.ausbildung-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Заголовок карточки */
.ausbildung-card-header {
    position: relative;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Тип курса */
.ausbildung-typ {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ausbildung-typ-online {
    background-color: #28a745;
    color: white;
}

.ausbildung-typ-praesenz {
    background-color: #6f42c1;
    color: white;
}

.typ-icon::before {
    content: "●";
    margin-right: 4px;
}

.ausbildung-typ-online .typ-icon::before {
    content: "💻";
}

.ausbildung-typ-praesenz .typ-icon::before {
    content: "🏢";
}

/* Прейс-бейдж */
.ausbildung-preis {
    background-color: #ff6b35;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Изображение */
.ausbildung-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ausbildung-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ausbildung-card:hover .ausbildung-image img {
    transform: scale(1.05);
}

/* Контент карточки */
.ausbildung-content {
    padding: 25px;
}

.ausbildung-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.ausbildung-beschreibung {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка */
.ausbildung-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ausbildung-button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
    color: white;
    text-decoration: none;
}

/* Состояние "нет курсов" */
.no-courses {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: 2rem 0;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

/* Анимация при загрузке */
.ausbildungen-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.ausbildungen-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive дизайн */
@media (max-width: 1200px) {
    .ausbildungen-container {
        max-width: 100%;
        padding: 15px;
    }
    
    .ausbildungen-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .ausbildungen-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .ausbildungen-filter {
        margin-bottom: 2rem;
        padding: 15px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .ausbildungen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ausbildung-card {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .ausbildung-content {
        padding: 20px;
    }
    
    .ausbildung-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ausbildungen-container {
        padding: 10px;
    }
    
    .ausbildungen-title {
        font-size: 1.8rem;
    }
    
    .ausbildungen-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .ausbildung-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .ausbildung-preis {
        align-self: flex-end;
    }
}

/* Дополнительные стили для Elementor */
.elementor-widget-ausbildungen_grid .ausbildungen-container {
    width: 100%;
}

/* Анимация появления карточек */
.ausbildung-card {
    animation: fadeInUp 0.6s ease forwards;
}

.ausbildung-card:nth-child(1) { animation-delay: 0.1s; }
.ausbildung-card:nth-child(2) { animation-delay: 0.2s; }
.ausbildung-card:nth-child(3) { animation-delay: 0.3s; }
.ausbildung-card:nth-child(4) { animation-delay: 0.4s; }
.ausbildung-card:nth-child(5) { animation-delay: 0.5s; }
.ausbildung-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для single post */
.single-ausbildung .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-ausbildung .ausbildung-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.single-ausbildung .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Цветовые схемы для разных категорий */
.category-basis .ausbildung-card {
    border-left: 4px solid #28a745;
}

.category-spezialisierungen .ausbildung-card {
    border-left: 4px solid #007cba;
}

.category-weiterbildungen .ausbildung-card {
    border-left: 4px solid #6f42c1;
}

.category-workshops .ausbildung-card {
    border-left: 4px solid #fd7e14;
}

/* Улучшенные тени при наведении для разных категорий */
.category-basis .ausbildung-card:hover {
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.2);
}

.category-spezialisierungen .ausbildung-card:hover {
    box-shadow: 0 15px 35px rgba(0, 124, 186, 0.2);
}

.category-weiterbildungen .ausbildung-card:hover {
    box-shadow: 0 15px 35px rgba(111, 66, 193, 0.2);
}

.category-workshops .ausbildung-card:hover {
    box-shadow: 0 15px 35px rgba(253, 126, 20, 0.2);
}