/* Course Catalog Styles - Enhanced Discovery Interface */
:root {
    --primary-yellow: #facc4c;
    --primary-yellow-hover: #f4c035;
    --dark-bg: #0b0804;
    --text-dark: #0b0804;
    --text-light: #655238;
    --text-lighter: #8a7a5a;
    --border-color: #d4c4a6;
    --white: #FFFFFF;
    --yellow-star: #facc4c;
    --red-timer: #d93b04;
    --green-success: #28A745;
    --blue-info: #17A2B8;
    --orange-warning: #FFC107;
    --shadow: 0 2px 4px rgba(11, 8, 4, 0.08);
    --shadow-hover: 0 4px 8px rgba(11, 8, 4, 0.12);
    --shadow-card: 0 4px 12px rgba(11, 8, 4, 0.1);
    --gradient-primary: linear-gradient(135deg, #facc4c 0%, #f4c035 100%);
    --gradient-secondary: linear-gradient(135deg, #655238 0%, #8a7a5a 100%);
    --gradient-success: linear-gradient(135deg, #28A745 0%, #20C997 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles (Same as dashboard) */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-right: 16px;
}

.logo:hover {
    color: var(--udemy-purple-hover);
}

.logo i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--udemy-purple);
    background-color: rgba(164, 53, 240, 0.1);
}

.main-nav i {
    margin-right: 8px;
    font-size: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 9999px;
    padding: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-bar:focus-within {
    background-color: var(--white);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 76, 0.1);
    transform: translateY(-1px);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.search-bar input::placeholder {
    color: var(--text-lighter);
    font-weight: 400;
}

.search-bar input:focus {
    outline: none;
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-hover) 100%);
    border: none;
    color: var(--text-dark);
    padding: 10px;
    margin-left: -44px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(250, 204, 76, 0.3);
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-yellow-hover) 0%, var(--primary-yellow) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(250, 204, 76, 0.4);
}

.search-bar button:active {
    transform: scale(0.95);
}

.user-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 16px;
}

.user-nav a {
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.user-nav a:hover {
    background-color: rgba(164, 53, 240, 0.1);
    color: var(--udemy-purple);
}

.badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--red-timer);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background-color: rgba(164, 53, 240, 0.1);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile span {
    font-weight: 500;
    color: var(--text-dark);
}

/* AI Assistant (Same as dashboard) */
.ai-assistant {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 320px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.minimize-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.ai-chat {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.ai {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-content {
    background: var(--udemy-purple);
    color: var(--white);
}

.message.ai .message-content {
    background: #f1f3f4;
    color: var(--text-dark);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

.chat-input {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
}

.chat-input input:focus {
    border-color: var(--udemy-purple);
}

.chat-input button {
    background: var(--udemy-purple);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-input button:hover {
    background: var(--udemy-purple-hover);
}

/* Catalog Main */
.catalog-main {
    padding: 32px 0;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.catalog-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 48px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    width: 400px;
    height: 300px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--white);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 80px;
    right: 40px;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 40px;
    left: 60px;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 2rem;
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* Advanced Filters */
.advanced-filters {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filters-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.save-filters-btn, .clear-filters-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-filters-btn:hover {
    background: var(--udemy-purple);
    color: var(--white);
    border-color: var(--udemy-purple);
}

.clear-filters-btn:hover {
    background: var(--red-timer);
    color: var(--white);
    border-color: var(--red-timer);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.category-chips, .level-chips, .duration-chips, .language-chips, .feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip:hover {
    border-color: var(--udemy-purple);
    color: var(--udemy-purple);
}

.chip.active {
    background: var(--udemy-purple);
    color: var(--white);
    border-color: var(--udemy-purple);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-range input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--udemy-purple);
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Skill Paths */
.skill-paths {
    margin-bottom: 40px;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.path-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--udemy-purple);
}

.path-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.path-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.path-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.path-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.path-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.path-progress span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.path-courses {
    margin-bottom: 20px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.course-item.completed {
    color: var(--green-success);
}

.course-item.current {
    color: var(--udemy-purple);
    font-weight: 600;
}

.course-item i {
    width: 16px;
}

.continue-path-btn, .start-path-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-path-btn {
    background: var(--gradient-primary);
    color: var(--white);
}

.continue-path-btn:hover {
    background: var(--udemy-purple-hover);
}

.start-path-btn {
    background: var(--white);
    color: var(--udemy-purple);
    border: 2px solid var(--udemy-purple);
}

.start-path-btn:hover {
    background: var(--udemy-purple);
    color: var(--white);
}

/* Course Results */
.course-results {
    margin-bottom: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.results-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-dark);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    outline: none;
    cursor: pointer;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.course-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.course-card:hover .course-preview img {
    transform: scale(1.05);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .preview-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--udemy-purple);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.play-btn:hover {
    background: var(--udemy-purple-hover);
    transform: scale(1.1);
}

.preview-text {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
}

.course-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
}

.badge.bestseller {
    background: var(--orange-warning);
}

.badge.hot {
    background: var(--red-timer);
}

.badge.new {
    background: var(--green-success);
}

.badge.trending {
    background: var(--blue-info);
}

.learning-style-tags {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.tag.video {
    background: rgba(164, 53, 240, 0.8);
}

.tag.interactive {
    background: rgba(40, 167, 69, 0.8);
}

.tag.text {
    background: rgba(23, 162, 184, 0.8);
}

.tag.hands-on {
    background: rgba(255, 193, 7, 0.8);
}

.course-content {
    padding: 20px;
}

.course-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.3;
}

.instructor {
    color: var(--udemy-purple);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: var(--yellow-star);
    font-size: 0.8rem;
}

.rating-value {
    font-size: 0.8rem;
    color: var(--text-light);
}

.popularity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--red-timer);
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-features {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.course-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount {
    background: var(--green-success);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.add-to-cart-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-to-cart-btn:hover {
    background: var(--udemy-purple-hover);
    transform: translateY(-1px);
}

.load-more {
    text-align: center;
}

.load-more-btn {
    background: var(--white);
    color: var(--udemy-purple);
    border: 2px solid var(--udemy-purple);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: var(--udemy-purple);
    color: var(--white);
}

/* Price Comparison Tool */
.price-comparison {
    margin-bottom: 40px;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.bundle-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--udemy-purple);
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bundle-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.bundle-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bundle-courses {
    margin-bottom: 20px;
}

.bundle-course {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.bundle-course:last-child {
    border-bottom: none;
}

.bundle-course img {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.bundle-course span {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.bundle-course .original-price {
    font-size: 0.8rem;
    color: var(--text-light);
}

.bundle-pricing {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.price-breakdown span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.bundle-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.savings {
    color: var(--green-success);
    font-weight: 600;
}

.buy-bundle-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-bundle-btn:hover {
    background: var(--udemy-purple-hover);
}

/* 3D Preview Modal */
.modal-3d {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content-3d {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-3d h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.close-3d {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-3d:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.modal-body-3d {
    padding: 20px;
}

.preview-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.preview-video {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.preview-video video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.preview-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.preview-info p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.preview-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.preview-features i {
    color: var(--udemy-purple);
    width: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .catalog-hero {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
    }

    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .paths-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .bundles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-bar {
        order: 3;
        max-width: none;
        margin: 0;
        width: 100%;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .search-bar:focus-within {
        border-color: var(--primary-yellow);
        box-shadow: 0 4px 16px rgba(250, 204, 76, 0.2);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .filters-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .preview-container {
        grid-template-columns: 1fr;
    }

    .ai-assistant {
        width: calc(100vw - 48px);
        left: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .search-bar {
        margin: 0;
        padding: 2px;
    }

    .search-bar input {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .search-bar button {
        width: 32px;
        height: 32px;
        margin-left: -36px;
    }

    .catalog-hero {
        padding: 24px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .advanced-filters {
        padding: 20px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .paths-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .ai-assistant {
        left: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.catalog-hero,
.path-card,
.course-card,
.bundle-card {
    animation: fadeInUp 0.6s ease-out;
}

.ai-assistant {
    animation: slideInRight 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
input:focus,
select:focus,
.chip:focus {
    outline: 2px solid var(--udemy-purple);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-light: #000000;
    }
}

/* AI Assistant Chat Widget */
.ai-assistant {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 350px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ai-assistant.minimized {
    width: auto;
    height: auto;
}

.ai-assistant.focused {
    box-shadow: 0 8px 32px rgba(250, 204, 76, 0.2);
    border-color: var(--primary-yellow);
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px 16px 0 0;
    cursor: pointer;
}

.ai-header:hover {
    background: var(--primary-yellow-hover);
}

.ai-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--white);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ai-chat {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 2px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageSlideIn 0.3s ease;
}

.message.user {
    align-self: flex-end;
}

.message.ai {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-content {
    background: var(--gradient-primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.message.ai .message-content {
    background: var(--border-color);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    align-self: flex-end;
}

.message.user .message-time {
    align-self: flex-end;
}

.message.ai .message-time {
    align-self: flex-start;
}

/* Typing Indicator */
.typing-indicator .message-content {
    background: var(--border-color);
    padding: 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0s;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 0 0 16px 16px;
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(250, 204, 76, 0.1);
}

.chat-input button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-input button:hover {
    background: var(--primary-yellow-hover);
    transform: scale(1.1);
}

.chat-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animations */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Minimized state */
.ai-assistant.minimized .ai-chat {
    display: none;
}

.ai-assistant.minimized .ai-header {
    border-radius: 16px;
    cursor: pointer;
}

.ai-assistant.minimized:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 8, 4, 0.15);
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: var(--white);
    margin-top: 80px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom .logo {
    color: var(--white);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a {
    color: #b5b5b5;
    text-decoration: none;
    font-size: 0.9rem;
}

.language-selector {
    background: none;
    border: 1px solid #333;
    color: #b5b5b5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}