/* Modern Sales Page Styles for Course Manager Pro */

/* Reset and Base Styles */
.cmp-sales-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--cmp-text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.cmp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.cmp-hero-section {
    background: linear-gradient(135deg, var(--cmp-primary-color) 0%, var(--cmp-secondary-color) 100%);
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.cmp-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cmp-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cmp-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cmp-course-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.cmp-level-badge,
.cmp-category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.cmp-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cmp-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    font-weight: 400;
}

.cmp-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.cmp-instructor-info,
.cmp-duration-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.cmp-instructor-label {
    opacity: 0.8;
    font-weight: 500;
}

.cmp-instructor-name {
    font-weight: 700;
}

.cmp-duration-icon {
    font-size: 1.2rem;
}

.cmp-hero-pricing {
    margin-bottom: 40px;
}

.cmp-price-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cmp-price-main {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
}

.cmp-free-price {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cmp-price-original {
    font-size: 1.5rem;
    text-decoration: line-through;
    opacity: 0.6;
    font-weight: 400;
}

.cmp-price-save {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cmp-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    color: var(--cmp-primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cmp-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cmp-cta-button:hover::before {
    left: 100%;
}

.cmp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cmp-cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cmp-cta-button:hover .cmp-cta-arrow {
    transform: translateX(4px);
}

.cmp-cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    text-align: center;
}

.cmp-hero-media {
    position: relative;
}

.cmp-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.cmp-hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.cmp-course-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.cmp-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 186, 0.1), rgba(0, 90, 135, 0.1));
}

/* Section Styles */
.cmp-video-section,
.cmp-content-section,
.cmp-tags-section,
.cmp-related-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.cmp-video-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cmp-content-section {
    background: #ffffff;
}

.cmp-tags-section {
    background: #f8f9fa;
}

.cmp-related-section {
    background: #ffffff;
}

.cmp-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.cmp-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--cmp-text-color);
}

.cmp-video-section .cmp-section-title {
    color: white;
}

.cmp-section-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Section */
.cmp-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.cmp-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.cmp-video-container iframe,
.cmp-video-container object,
.cmp-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Content Grid */
.cmp-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.cmp-main-content .cmp-section-header {
    text-align: left;
    margin-bottom: 40px;
}

.cmp-course-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cmp-text-color);
}

.cmp-course-description p {
    margin-bottom: 24px;
}

.cmp-course-description h2,
.cmp-course-description h3,
.cmp-course-description h4 {
    color: var(--cmp-primary-color);
    margin-top: 32px;
    margin-bottom: 16px;
}

/* Sidebar Card */
.cmp-course-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
    border: 1px solid #e9ecef;
}

.cmp-card-header {
    background: linear-gradient(135deg, var(--cmp-primary-color), var(--cmp-secondary-color));
    color: white;
    padding: 24px;
    text-align: center;
}

.cmp-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.cmp-card-body {
    padding: 32px 24px;
}

.cmp-course-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.cmp-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cmp-stat-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.cmp-stat-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.cmp-stat-content {
    display: flex;
    flex-direction: column;
}

.cmp-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.cmp-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cmp-text-color);
}

.cmp-card-cta {
    text-align: center;
}

.cmp-cta-secondary {
    background: var(--cmp-primary-color);
    color: white;
    width: 100%;
    justify-content: center;
}

.cmp-cta-secondary:hover {
    background: var(--cmp-secondary-color);
}

/* Tags Section */
.cmp-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.cmp-topic-tag {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: var(--cmp-primary-color);
    border: 2px solid var(--cmp-primary-color);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cmp-topic-tag:hover {
    background: var(--cmp-primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 186, 0.3);
}

/* Related Courses */
.cmp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.cmp-related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.cmp-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cmp-related-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cmp-related-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.cmp-related-content {
    padding: 24px;
}

.cmp-related-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--cmp-text-color);
    line-height: 1.3;
}

.cmp-related-instructor {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* Final CTA Section */
.cmp-final-cta-section {
    background: linear-gradient(135deg, var(--cmp-primary-color) 0%, var(--cmp-secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cmp-final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cmp-final-cta-content {
    position: relative;
    z-index: 2;
}

.cmp-final-cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cmp-final-cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cmp-cta-large {
    font-size: 1.3rem;
    padding: 24px 48px;
    border-radius: 60px;
}

/* Status Badges */
.cmp-hero-status {
    margin-bottom: 40px;
}

.cmp-status-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmp-status-active {
    background: #d4edda;
    color: #155724;
}

.cmp-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.cmp-status-coming_soon {
    background: #fff3cd;
    color: #856404;
}

.cmp-status-closed {
    background: #e2e3e5;
    color: #383d41;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cmp-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cmp-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cmp-course-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .cmp-hero-section {
        padding: 80px 0 60px;
    }
    
    .cmp-hero-title {
        font-size: 2.5rem;
    }
    
    .cmp-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cmp-price-main {
        font-size: 2rem;
    }
    
    .cmp-section-title {
        font-size: 2rem;
    }
    
    .cmp-final-cta-title {
        font-size: 2rem;
    }
    
    .cmp-video-section,
    .cmp-content-section,
    .cmp-tags-section,
    .cmp-related-section {
        padding: 60px 0;
    }
    
    .cmp-final-cta-section {
        padding: 60px 0;
    }
    
    .cmp-related-grid {
        grid-template-columns: 1fr;
    }
    
    .cmp-hero-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cmp-price-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cmp-container {
        padding: 0 16px;
    }
    
    .cmp-hero-title {
        font-size: 2rem;
    }
    
    .cmp-cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .cmp-course-badge {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

/* RTL Support */
[dir="rtl"] .cmp-sales-page {
    direction: rtl;
}

[dir="rtl"] .cmp-hero-content {
    direction: rtl;
}

[dir="rtl"] .cmp-content-grid {
    direction: rtl;
}

[dir="rtl"] .cmp-cta-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .cmp-cta-button:hover .cmp-cta-arrow {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .cmp-stat-item:hover {
    transform: translateX(-4px);
}

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

.cmp-sales-page * {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .cmp-sales-page {
        background: white !important;
    }
    
    .cmp-hero-section,
    .cmp-video-section,
    .cmp-final-cta-section {
        background: white !important;
        color: black !important;
    }
    
    .cmp-cta-button {
        border: 2px solid black !important;
        color: black !important;
        background: white !important;
    }
}

