/**
 * PinkCode Course Home - Main Styles
 * 
 * Professional course home page layout with ocean-inspired design
 * Colors: #01cfdd (Cyan) / #457b9d (Steel Blue) / #1d3557 (Navy)
 * 
 * @package PinkCodeCourseHome
 * @version 1.0.0
 * @author Pink Code Queen - Nariman Jafari
 */

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --color-primary: #01cfdd;
    --color-secondary: #457b9d;
    --color-dark: #1d3557;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-text: #2d3748;
    --color-text-light: #718096;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ============================================
   MAIN WRAPPER - BREAK OUT OF DIVI CONTAINER
   ============================================ */
.pinkcode-course-home-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -104px; /* Compensate for Divi's nested padding (24+30+50) */
    background: var(--color-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   HEADER BANNER WITH WAVE
   ============================================ */
.pinkcode-course-header {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated background pattern */
.pinkcode-course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: headerShimmer 15s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pinkcode-course-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--spacing-md);
}

.pinkcode-course-header-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important; /* Force white color */
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* Wave Decoration */
.pinkcode-wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 3;
}

.pinkcode-wave-decoration svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.pinkcode-course-home-content {
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* Featured section removed per user request */

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.pinkcode-course-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-lg);
    align-items: start;
}

/* ============================================
   MAIN CONTENT COLUMN
   ============================================ */
.pinkcode-course-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Section Titles */
.pinkcode-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

/* Progress Section */
.pinkcode-progress-section {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.pinkcode-progress-wrapper {
    margin-top: 10px;
}

/* Compact section title for progress */
.pinkcode-progress-section .pinkcode-section-title {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

/* ============================================
   LEARNDASH PROGRESS BAR FIX
   ============================================ */
/* Fix for LearnDash progress bar height to show all child elements */
.learndash-wrapper .ld-progress.ld-progress-inline {
    height: auto !important;
    overflow: visible !important;
    min-height: 40px; /* Maintain minimum height for consistency */
}

/* Ensure child elements have proper spacing */
.learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-heading {
    margin-bottom: 8px;
}

/* Progress bar container (track) styling */
.learndash-wrapper .ld-progress.ld-progress-inline .ld-progress-bar {
    margin-top: 8px;
    background-color: #e0e0e0 !important; /* Light grey track */
    border-radius: 8px !important;
    height: 12px !important; /* Slightly taller for better visibility */
    overflow: hidden !important;
}

/* Progress bar fill (percentage) styling */
.learndash-wrapper .ld-progress-bar-percentage.ld-secondary-background {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%) !important;
    border-radius: 8px !important;
    height: 100% !important;
    transition: width 0.8s ease-out !important;
    box-shadow: 0 2px 6px rgba(1, 207, 221, 0.3);
}

/* Add shimmer animation to progress fill */
.learndash-wrapper .ld-progress-bar-percentage.ld-secondary-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmerProgress 2s infinite;
}

@keyframes shimmerProgress {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Course Content Section */
.pinkcode-content-section {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.pinkcode-content-wrapper {
    margin-top: var(--spacing-md);
}

/* ============================================
   SIDEBAR
   ============================================ */
.pinkcode-course-sidebar {
    position: sticky;
    top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.pinkcode-sidebar-section {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.pinkcode-sidebar-section:hover {
    box-shadow: var(--shadow-md);
}

.pinkcode-sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* ============================================
   QUICK LINKS
   ============================================ */
.pinkcode-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.pinkcode-quick-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.pinkcode-quick-link:hover {
    background: linear-gradient(135deg, rgba(1, 207, 221, 0.1), rgba(69, 123, 157, 0.1));
    color: var(--color-secondary);
    transform: translateX(4px);
}

.pinkcode-quick-link svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ============================================
   RELATED COURSES - CUTE CARD STYLE
   ============================================ */
.pinkcode-related-courses-section {
    background: linear-gradient(135deg, rgba(1, 207, 221, 0.05) 0%, rgba(69, 123, 157, 0.08) 100%);
    border-left: 3px solid var(--color-primary);
}

.pinkcode-related-courses-section .pinkcode-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
    font-weight: 700;
}

.pinkcode-related-courses-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pinkcode-related-course-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Featured (First) Course - Special Highlighting */
.pinkcode-related-course-item:first-child {
    background: linear-gradient(135deg, #01cfdd 0%, #457b9d 100%);
    box-shadow: 0 4px 12px rgba(1, 207, 221, 0.3);
    transform: scale(1.02);
    animation: featuredPulse 2s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(1, 207, 221, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(1, 207, 221, 0.5); }
}

.pinkcode-related-course-item:first-child .pinkcode-related-course-link {
    color: white;
    font-weight: 600;
    padding: 16px;
}

.pinkcode-related-course-item:first-child .pinkcode-related-course-icon {
    background: rgba(255, 255, 255, 0.25);
    width: 40px;
    height: 40px;
}

.pinkcode-related-course-item:first-child .pinkcode-related-course-icon svg {
    color: white;
    width: 20px;
    height: 20px;
}

.pinkcode-related-course-item:first-child::before {
    content: '⭐ Next Course';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Regular Courses */
.pinkcode-related-course-item:not(:first-child) {
    background: white;
    border: 2px solid rgba(1, 207, 221, 0.15);
}

.pinkcode-related-course-item:not(:first-child):hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(1, 207, 221, 0.2);
    transform: translateX(4px);
}

.pinkcode-related-course-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 12px;
    transition: all 0.3s ease;
}

.pinkcode-related-course-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 207, 221, 0.15), rgba(69, 123, 157, 0.15));
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pinkcode-related-course-item:not(:first-child):hover .pinkcode-related-course-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.pinkcode-related-course-icon svg {
    color: var(--color-secondary);
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.pinkcode-related-course-item:not(:first-child):hover .pinkcode-related-course-icon svg {
    color: white;
}

.pinkcode-related-course-title {
    flex: 1;
    line-height: 1.4;
}

.pinkcode-no-related-courses {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0;
    text-align: center;
    padding: var(--spacing-md) 0;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.pinkcode-error {
    background: #fee;
    color: #c33;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 4px solid #c33;
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

/* ============================================
   QUIZ SECTION STYLES - ACCORDION DESIGN
   ============================================ */

/* Quiz Section Container */
.pinkcode-quizzes-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(124, 58, 237, 0.08) 100%);
    border-left-color: #8b5cf6 !important;
}

.pinkcode-quizzes-section .pinkcode-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7c3aed;
    font-weight: 700;
}

/* Accordion Toggle Button */
.pinkcode-quizzes-accordion {
    margin-top: 12px;
}

.pinkcode-quizzes-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.pinkcode-quizzes-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
}

.pinkcode-quizzes-toggle:active {
    transform: translateY(0);
}

.pinkcode-quizzes-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.pinkcode-next-quiz-hint {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
}

.pinkcode-accordion-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pinkcode-quizzes-toggle[aria-expanded="true"] .pinkcode-accordion-icon {
    transform: rotate(180deg);
}

/* Quiz Content (Accordion Body) */
.pinkcode-quizzes-content {
    margin-top: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz List */
.pinkcode-quiz-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Quiz Item Base Styles */
.pinkcode-quiz-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.pinkcode-quiz-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quiz Link & Locked State */
.pinkcode-quiz-link,
.pinkcode-quiz-locked {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}

.pinkcode-quiz-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quiz Icon */
.pinkcode-quiz-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
}

/* Quiz Info */
.pinkcode-quiz-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pinkcode-quiz-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.pinkcode-quiz-lesson {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.2;
}

.pinkcode-quiz-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

/* Status-Specific Styles */

/* Completed Quiz - Green */
.pinkcode-quiz-completed {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.08) 100%);
}

.pinkcode-quiz-completed .pinkcode-quiz-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.pinkcode-quiz-completed .pinkcode-quiz-status-text {
    color: #059669;
}

/* Available Quiz - Purple */
.pinkcode-quiz-available {
    border-color: rgba(139, 92, 246, 0.2);
}

.pinkcode-quiz-available:hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.pinkcode-quiz-available .pinkcode-quiz-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Locked Quiz - Gray */
.pinkcode-quiz-locked {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.pinkcode-quiz-locked .pinkcode-quiz-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.pinkcode-quiz-locked .pinkcode-quiz-status-text {
    color: #6b7280;
    font-style: italic;
}

/* Highlighted Next Quiz */
.pinkcode-quiz-highlighted {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(124, 58, 237, 0.12) 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
    }
}

.pinkcode-quiz-highlighted .pinkcode-quiz-status-text {
    color: #7c3aed;
    font-weight: 600;
}

/* Compact Style - Single Next Quiz */
.pinkcode-quiz-compact {
    margin-top: 12px;
}

.pinkcode-quiz-compact .pinkcode-quiz-item {
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* All Quizzes Complete Message */
.pinkcode-all-quizzes-complete {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-radius: 10px;
    color: #059669;
    font-weight: 600;
    margin-top: 12px;
}

/* No Quizzes Message */
.pinkcode-no-quizzes {
    text-align: center;
    padding: 16px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .pinkcode-course-layout {
        grid-template-columns: 1fr 300px;
        gap: var(--spacing-md);
    }
    
    .pinkcode-course-header-title {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pinkcode-course-home-content {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .pinkcode-course-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .pinkcode-course-sidebar {
        position: static;
    }
    
    .pinkcode-course-header {
        height: 80px;
    }
    
    .pinkcode-course-header-title {
        font-size: 1.5rem;
    }
    
    .pinkcode-section-title {
        font-size: 1.25rem;
    }
    
    .pinkcode-sidebar-section {
        padding: var(--spacing-md);
    }
    
    /* Quiz Section Mobile Styles */
    .pinkcode-quiz-item {
        padding: 14px;
        border-radius: 10px;
    }
    
    .pinkcode-quiz-link,
    .pinkcode-quiz-locked {
        gap: 12px;
    }
    
    .pinkcode-quiz-icon {
        font-size: 1.75rem;
        min-width: 36px;
    }
    
    .pinkcode-quiz-title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
    
    .pinkcode-quiz-lesson {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    .pinkcode-quiz-status-text {
        font-size: 0.75rem;
        margin-top: 4px;
    }
    
    /* Accordion Button Mobile */
    .pinkcode-quizzes-toggle {
        padding: 14px;
        font-size: 0.9375rem;
        touch-action: manipulation;
    }
    
    .pinkcode-quizzes-toggle-icon {
        font-size: 1rem;
    }
    
    /* Related Courses Mobile Styles */
    .pinkcode-related-course-item {
        margin-bottom: 8px;
    }
    
    .pinkcode-related-course-item:first-child::before {
        font-size: 0.6875rem;
        padding: 3px 8px;
        top: 6px;
        right: 8px;
    }
    
    .pinkcode-related-course-link {
        padding: 12px;
        gap: 10px;
    }
    
    .pinkcode-related-course-icon {
        width: 34px;
        height: 34px;
    }
    
    .pinkcode-related-course-item:first-child .pinkcode-related-course-icon {
        width: 38px;
        height: 38px;
    }
    
    .pinkcode-related-course-title {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .pinkcode-course-home-content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .pinkcode-course-header-title {
        font-size: 1.25rem;
    }
    
    .pinkcode-progress-section {
        padding: var(--spacing-md);
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .pinkcode-content-section {
        padding: var(--spacing-md);
    }
    
    /* Quiz Section Small Mobile */
    .pinkcode-sidebar-section {
        padding: 12px;
    }
    
    .pinkcode-quiz-item {
        padding: 12px;
    }
    
    .pinkcode-quiz-icon {
        font-size: 1.5rem;
        min-width: 32px;
    }
    
    .pinkcode-quiz-title {
        font-size: 0.875rem;
    }
    
    .pinkcode-quiz-lesson {
        font-size: 0.6875rem;
    }
    
    .pinkcode-quiz-status-text {
        font-size: 0.6875rem;
    }
    
    .pinkcode-quizzes-toggle {
        padding: 12px;
        font-size: 0.875rem;
    }
    
    /* Related Courses Small Mobile */
    .pinkcode-related-course-item:first-child::before {
        font-size: 0.625rem;
        padding: 2px 6px;
        top: 4px;
        right: 6px;
    }
    
    .pinkcode-related-course-link {
        padding: 10px;
        gap: 8px;
    }
    
    .pinkcode-related-course-icon {
        width: 30px;
        height: 30px;
    }
    
    .pinkcode-related-course-item:first-child .pinkcode-related-course-icon {
        width: 34px;
        height: 34px;
    }
    
    .pinkcode-related-course-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .pinkcode-related-course-item:first-child .pinkcode-related-course-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .pinkcode-related-course-title {
        font-size: 0.875rem;
    }
    
    /* Better touch targets for mobile */
    .pinkcode-quiz-link,
    .pinkcode-quiz-locked,
    .pinkcode-related-course-link {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    /* Reduce animations on small screens */
    .pinkcode-related-course-item:first-child {
        animation: none;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* Focus States */
.pinkcode-btn-continue:focus,
.pinkcode-quick-link:focus,
.pinkcode-related-course-link:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pinkcode-course-header {
        border-bottom: 2px solid var(--color-white);
    }
    
    .pinkcode-sidebar-section {
        border: 1px solid var(--color-text);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .pinkcode-course-sidebar,
    .pinkcode-btn-continue,
    .pinkcode-wave-decoration {
        display: none;
    }
    
    .pinkcode-course-layout {
        grid-template-columns: 1fr;
    }
    
    .pinkcode-course-home-wrapper {
        background: white;
    }
}
