/* Course Page Styles */

:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --secondary-color: #8b5cf6;
    --accent-color: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #808080;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --border-color: #333333;
    --border-light: #444444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

/* Course Hero Section */
.course-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.course-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%2300ff88" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.course-hero-content {
    position: relative;
    z-index: 2;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-breadcrumb a:hover {
    color: #00cc6a;
}

.course-breadcrumb span {
    color: var(--text-secondary);
}

.course-hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.course-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.course-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), #00cc6a, var(--primary-color));
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.course-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.course-stat:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.course-stat i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.course-stat span {
    font-weight: 600;
    color: var(--text-primary);
}

.course-actions {
    display: flex;
    gap: 1rem;
}

.course-actions .btn-primary {
    background: var(--primary-color) !important;
    color: #000000 !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4) !important;
}

.course-actions .btn-primary:hover {
    background: #00cc6a !important;
    color: #000000 !important;
    border: 2px solid #00cc6a !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.6) !important;
}

.course-actions .btn-secondary {
    background: var(--secondary-color) !important;
    color: #000000 !important;
    border: 2px solid var(--secondary-color) !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4) !important;
}

.course-actions .btn-secondary:hover {
    background: #ffcc00 !important;
    color: #000000 !important;
    border: 2px solid #ffcc00 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6) !important;
}

.course-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.course-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.course-image-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Course Overview */
.course-overview {
    padding: 80px 0;
    background: var(--bg-primary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #00cc6a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.overview-card:hover::before {
    transform: scaleX(1);
}

.overview-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.overview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #000;
    font-size: 2rem;
}

.overview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.overview-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Course Program */
.course-program {
    padding: 80px 0;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #111111 100%);
}

.program-timeline {
    margin-top: 3rem;
    position: relative;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), #00cc6a);
}

.program-module {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.module-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.module-content {
    flex: 1;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.module-content:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
    transform: translateX(10px);
}

.module-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.module-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-topics {
    list-style: none;
    padding: 0;
}

.module-topics li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.module-topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Course Features */
.course-features {
    padding: 80px 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 106, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #000;
    font-size: 1.75rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Course CTA */
.course-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    text-align: center;
}

.course-cta .btn-primary {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.course-cta .btn-primary:hover {
    background: #333333 !important;
    color: #ffffff !important;
    border: 2px solid #333333 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

.course-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    backdrop-filter: blur(10px);
}

.course-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Course Teacher */
.course-teacher {
    padding: 80px 0;
    background: var(--bg-primary);
}

.teacher-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.teacher-photo {
    position: relative;
}

.teacher-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.3);
}

.teacher-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.teacher-position {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.teacher-experience {
    margin-bottom: 2rem;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.experience-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 20px;
}

.experience-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.teacher-skills h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.skill {
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.teacher-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.125rem;
}

/* Course Requirements */
.course-requirements {
    padding: 80px 0;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #111111 100%);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #00cc6a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.requirement-card:hover::before {
    transform: scaleX(1);
}

.requirement-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.requirement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #000;
    font-size: 2rem;
}

.requirement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.requirement-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Course Bonuses */
.course-bonuses {
    padding: 80px 0;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #111111 100%);
}

.bonus-highlight {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border-radius: 1.5rem;
    border: 3px solid #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    animation: pulse-glow 2s infinite;
}

.bonus-highlight h2 {
    font-size: 2.5rem !important;
    font-weight: 800;
    color: #000;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 255, 136, 0.5);
        transform: scale(1.02);
    }
}

.bonuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.bonus-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bonus-card::after {
    content: 'БОНУС';
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--primary-color);
    color: #000;
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    border-radius: 0.5rem;
}

.bonus-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.bonus-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #000;
    font-size: 1.75rem;
}

.bonus-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.bonus-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bonus-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

.bonuses-total {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.total-card {
    background: linear-gradient(135deg, var(--primary-color), #00cc6a);
    color: #000;
    padding: 2rem 3rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
}

.total-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.total-amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.total-card p {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-hero {
        padding: 100px 0 60px;
    }
    
    .course-hero-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .course-title {
        font-size: 2.5rem;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
    }
    
    .course-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .course-image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .program-timeline::before {
        left: 1.5rem;
    }
    
    .program-module {
        gap: 1rem;
    }
    
    .module-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .module-content {
        padding: 1.5rem;
    }
    
    .overview-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Teacher Profile */
    .teacher-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .teacher-image {
        height: 250px;
    }
    
    .experience-item {
        justify-content: center;
    }
    
    .skills-list {
        justify-content: center;
    }
    
    /* Requirements */
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bonuses */
    .bonuses-grid {
        grid-template-columns: 1fr;
    }
    
    .total-card {
        padding: 1.5rem 2rem;
    }
    
    .total-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .course-title {
        font-size: 2rem;
    }
    
    .course-subtitle {
        font-size: 1.125rem;
    }
    
    .course-image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .course-image-placeholder i {
        font-size: 3rem;
    }
    
    .course-image-placeholder span {
        font-size: 1.25rem;
    }
}
