/* ============ Course Page Styles ============ */

:root {
    --primary-color: #ff8533;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 20px;
    padding-top: 90px;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.container {
    width: 100%;
    max-width: 500px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(5px);
    gap: 12px;
}

.course-header {
    text-align: center;
    margin-bottom: 30px;
}

.course-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 133, 51, 0.3) 0%, rgba(255, 133, 51, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 133, 51, 0.2);
}

.course-banner i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.8;
}

.course-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 133, 51, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    100% { transform: translate(100%, 100%) rotate(45deg); }
}

h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 15px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-subtitle {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0 20px 0;
}

.course-description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

.course-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 133, 51, 0.2);
}

.info-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.info-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.course-content {
    background-color: var(--card-bg);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 20px;
}

.course-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-content li {
    padding: 10px 0;
    padding-right: 25px;
    border-bottom: 1px solid #333;
    font-size: 14px;
    position: relative;
}

.course-content li:last-child {
    border-bottom: none;
}

.course-content li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b1a 100%);
    color: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 133, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 133, 51, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

footer {
    margin-top: auto;
    font-size: 12px;
    color: #555;
    text-align: center;
    width: 100%;
    padding-top: 20px;
}

.price-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b1a 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Light Mode */

body.light-mode {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    background: radial-gradient(circle at center, #ffffff 0%, #f2f2f2 100%);
    color: var(--text-color);
}

body.light-mode .info-card {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
}

body.light-mode .course-content {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
}

body.light-mode .course-content li {
    border-bottom-color: #eee;
}
