/**
 * Frontend styles for Beauty Video Courses
 */

/* General Styles */
.bvc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.bvc-section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.bvc-section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #e91e63, #9c27b0);
    border-radius: 3px;
}

/* Course Grid Shortcode */
.bvc-courses-shortcode {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.bvc-columns-1 {
    grid-template-columns: 1fr;
}

.bvc-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bvc-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bvc-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bvc-course-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bvc-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.bvc-course-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bvc-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bvc-course-card:hover .bvc-course-thumbnail img {
    transform: scale(1.1);
}

.bvc-no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8bbd0, #ce93d8);
}

.bvc-video-icon {
    font-size: 48px;
    color: white;
}

.bvc-course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.bvc-course-meta {
    display: flex;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.bvc-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bvc-difficulty {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bvc-difficulty-anfaenger {
    background-color: #4caf50;
    color: white;
}

.bvc-difficulty-fortgeschritten {
    background-color: #ff9800;
    color: white;
}

.bvc-difficulty-experte {
    background-color: #f44336;
    color: white;
}

.bvc-course-content {
    padding: 20px;
}

.bvc-course-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.bvc-instructor {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.bvc-course-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.bvc-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.bvc-price {
    font-size: 20px;
    font-weight: bold;
    color: #e91e63;
}

.bvc-course-button {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(to right, #e91e63, #9c27b0);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bvc-course-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    color: white;
}

/* Featured Courses Shortcode */
.bvc-featured-section {
    margin: 50px 0;
}

.bvc-featured-courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.bvc-featured-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bvc-featured-item:hover {
    transform: translateY(-10px);
}

.bvc-featured-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.bvc-featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bvc-featured-item:hover .bvc-featured-thumbnail img {
    transform: scale(1.1);
}

.bvc-placeholder-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8bbd0, #ce93d8);
}

.bvc-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bvc-featured-item:hover .bvc-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.bvc-featured-content {
    padding: 20px;
}

.bvc-featured-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.bvc-featured-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.bvc-featured-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.bvc-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bvc-btn-small {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(to right, #e91e63, #9c27b0);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bvc-btn-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    color: white;
}

/* Course Grid Shortcode */
.bvc-course-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.bvc-featured-course {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bvc-featured-course:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.bvc-course-image {
    flex: 0 0 40%;
    position: relative;
}

.bvc-course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bvc-course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.bvc-category-badge {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(233, 30, 99, 0.8);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bvc-course-info {
    flex: 1;
    padding: 20px;
}

.bvc-course-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.bvc-course-details {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.bvc-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.bvc-course-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bvc-btn {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bvc-btn-primary {
    background: linear-gradient(to right, #e91e63, #9c27b0);
    color: white;
}

.bvc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    color: white;
}

/* WooCommerce Product Page */
.bvc-course-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.bvc-course-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bvc-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bvc-meta-icon {
    font-size: 20px;
}

.bvc-meta-label {
    font-weight: 500;
    color: #666;
}

.bvc-meta-value {
    font-weight: 500;
    color: #333;
}

.bvc-course-features {
    margin-top: 20px;
}

.bvc-course-features h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.bvc-course-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bvc-course-features li {
    margin-bottom: 10px;
    color: #666;
}

/* Course Details Tab */
.bvc-course-details-tab {
    padding: 20px 0;
}

.bvc-course-details-tab h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.bvc-course-description {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.6;
}

.bvc-course-specs {
    margin-bottom: 30px;
}

.bvc-course-specs h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.bvc-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.bvc-specs-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.bvc-specs-table td:first-child {
    width: 30%;
    color: #666;
}

.bvc-course-benefits {
    margin-bottom: 30px;
}

.bvc-course-benefits h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.bvc-course-benefits ul {
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

.bvc-course-benefits li {
    margin-bottom: 10px;
}

/* My Courses Page */
.bvc-my-courses {
    margin-bottom: 40px;
}

.bvc-my-courses h3 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
}

.bvc-no-courses {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 10px;
}

.bvc-no-courses p {
    margin-bottom: 20px;
    color: #666;
}

.bvc-courses-list {
    display: grid;
    gap: 20px;
}

.bvc-course-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bvc-course-thumbnail {
    flex: 0 0 200px;
    position: relative;
}

.bvc-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bvc-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bvc-course-item:hover .bvc-play-overlay {
    opacity: 1;
}

.bvc-play-icon {
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.bvc-course-details {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.bvc-course-details h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.bvc-course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.bvc-progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.bvc-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #e91e63, #9c27b0);
    border-radius: 5px;
}

.bvc-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.bvc-course-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* Video Player */
.bvc-video-player-container {
    margin-top: 30px;
}

.bvc-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bvc-video-header h3 {
    margin: 0;
    color: #333;
}

.bvc-back-link {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.bvc-video-player {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.bvc-video-player video {
    width: 100%;
    display: block;
}

.bvc-youtube-player,
.bvc-vimeo-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.bvc-youtube-player iframe,
.bvc-vimeo-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .bvc-courses-shortcode,
    .bvc-featured-courses,
    .bvc-course-grid {
        grid-template-columns: 1fr;
    }
    
    .bvc-featured-course,
    .bvc-course-item {
        flex-direction: column;
    }
    
    .bvc-course-image,
    .bvc-course-thumbnail {
        flex: 0 0 200px;
    }
    
    .bvc-course-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .bvc-courses-shortcode,
    .bvc-featured-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}
