/* ========================================
   Matt's Swift Concurrency Lab Page Styles
   ======================================== */

.workshop-hero {
    background-image: url('assets/workshops/concurrency_lab.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 0 7rem;
    margin: 120px auto 0;
    max-width: 1000px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.5), 
        0 0 0 1px rgba(255, 255, 255, 0.2), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 120px rgba(250, 115, 67, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 600px;
}

.workshop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(30, 58, 138, 0.50) 0%, rgba(250, 115, 67, 0.50) 50%, rgba(30, 58, 138, 0.55) 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='parallel' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 0 0 L 60 0 M 0 20 L 60 20 M 0 40 L 60 40' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cpath d='M 0 0 L 0 60 M 20 0 L 20 60 M 40 0 L 40 60' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(250,115,67,0.2)'/%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(30,58,138,0.2)'/%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(250,115,67,0.2)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23parallel)'/%3E%3C/svg%3E");
    background-size: cover, 120px 120px;
    z-index: 1;
    pointer-events: none;
}

/* Parallel execution and concurrent task visualization */
.workshop-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(250, 115, 67, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(250, 115, 67, 0.2) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='taskGlow'%3E%3CfeGaussianBlur stdDeviation='4' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M 50 50 L 150 80 L 200 150 L 100 200 Z' fill='none' stroke='rgba(250,115,67,0.25)' stroke-width='2' stroke-dasharray='5,5'/%3E%3Cpath d='M 200 50 L 300 100 L 250 200 L 150 180 Z' fill='none' stroke='rgba(30,58,138,0.25)' stroke-width='2' stroke-dasharray='5,5'/%3E%3Ccircle cx='50' cy='50' r='4' fill='rgba(250,115,67,0.8)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='150' cy='80' r='3.5' fill='rgba(30,58,138,0.8)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='200' cy='150' r='4.5' fill='rgba(250,115,67,0.8)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='100' cy='200' r='3' fill='rgba(30,58,138,0.7)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='300' cy='100' r='3.5' fill='rgba(250,115,67,0.9)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='250' cy='200' r='3' fill='rgba(30,58,138,0.8)' filter='url(%23taskGlow)'/%3E%3Ccircle cx='150' cy='180' r='2.5' fill='rgba(250,115,67,0.7)' filter='url(%23taskGlow)'/%3E%3C/svg%3E");
    background-size: cover, cover, cover, 500px 500px;
    z-index: 1;
    pointer-events: none;
    animation: concurrentPulse 8s ease-in-out infinite alternate, concurrentFlow 20s linear infinite;
}

@keyframes concurrentFlow {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, -100% -100%, 50% 50%, 40% 60%;
    }
}

@keyframes concurrentPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Concurrent execution depth layer */
.workshop-hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 25% 35%, rgba(250, 115, 67, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 75% 65%, rgba(30, 58, 138, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(250, 115, 67, 0.12) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    animation: concurrentDepthPulse 12s ease-in-out infinite alternate;
    filter: blur(80px);
}

@keyframes concurrentDepthPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4) rotate(10deg);
        opacity: 0.85;
    }
}

.workshop-hero-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    height: 100%;
    text-align: center;
}

.workshop-hero-content::after {
    display: none;
}

.workshop-hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.workshop-hero-logo {
    height: 120px;
    width: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.instructor-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.workshop-hero-instructor {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--logo-orange);
    border-radius: 50%;
    position: relative;
}

.instructor-name-overlay {
    background: #F5E6D3;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    line-height: 1.1;
    border: 3px solid var(--logo-orange);
    margin: 0 auto;
    margin-top: 0.45rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 2;
    display: inline-block;
    width: fit-content;
}

.instructor-name {
    font-size: 0.95rem;
    font-weight: 700;
    /* font-family: var(--font-heading); */
    color: var(--logo-orange);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workshop-hero-instructor::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(250, 115, 67, 0.6), rgba(30, 58, 138, 0.6));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
}

.instructor-image-wrapper:hover .workshop-hero-instructor {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 5px rgba(250, 115, 67, 0.6),
        0 0 80px rgba(30, 58, 138, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.35);
}

.instructor-image-wrapper:hover .workshop-hero-instructor::before {
    opacity: 1;
}

.workshop-hero-content p {
    color: rgba(255, 255, 255, 1);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 800;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    opacity: 1;
    letter-spacing: 0.02em;
    line-height: 1.4;
    display: inline-block;
    padding: 0.875rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.workshop-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-hero {
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.workshop-hero h1 {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 6px 30px rgba(0, 0, 0, 0.5);
}

.workshop-hero .workshop-meta {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-base);
    font-weight: 500;
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    text-align: center;
}

.workshop-hero .workshop-meta span {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-shadow: 
        0 0 30px rgba(255, 255, 255, 0.7),
        0 0 60px rgba(255, 255, 255, 0.5),
        0 3px 12px rgba(0, 0, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(0, 0, 0, 0.4);
    transition: text-shadow 0.3s ease;
    position: relative;
    overflow: visible;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    font-size: var(--text-base);
    line-height: 1.6;
    display: block;
    text-align: center;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

.workshop-hero .workshop-meta span::before {
    display: none;
}

.workshop-hero .workshop-meta span:hover {
    background: none;
    border: none;
    box-shadow: none;
    transform: none;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 80px rgba(255, 255, 255, 0.6),
        0 3px 12px rgba(0, 0, 0, 0.8),
        0 1px 5px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(0, 0, 0, 0.4);
}

.workshop-hero .workshop-meta span:hover::before {
    display: none;
}

.rockieshome {
    display: none;
}

.rockiesworkshop {
    display: block;
}

.workshop-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.workshop-section {
    margin-bottom: 4rem;
}

.workshop-section h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.workshop-section h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.workshop-section p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.workshop-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.workshop-section ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.7;
}

.workshop-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.instructor-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.instructor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-info h3 {
    margin-top: 0;
}

.requirements-box {
    background: linear-gradient(135deg, rgba(250, 115, 67, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.requirements-box h3 {
    margin-top: 0;
    color: var(--primary);
}

.pricing-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pricing-tier {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--border);
}

.pricing-tier.current {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(250, 115, 67, 0.2);
}

.pricing-tier .tier-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pricing-tier .tier-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.tito-widget-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.tito-release {
    background-image: url('assets/workshops/concurrency_lab.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-x;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--workshop-shadow);
    transition: all 0.3s var(--workshop-easing);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.tito-release-description {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.tito-widget .tito-widget-form .tito-release .tito-release--title {
    color: #E0E0E0;
}

.tito-release > .tito-price-details-regular {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tito-price-details-regular {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 1rem;
}

.tito-release > .tito-quantity {
    flex-shrink: 0;
}

.tito-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    width: auto;
}

.tito-times {
    display: none;
}

.tito-widget .tito-widget-form .tito-release .tito-release-description .tito-release-description--combos {
    display: none;
}

@media (max-width: 768px) {
    .workshop-hero {
        padding: 5rem 0 6rem;
        margin: 100px 1rem 0;
        border-radius: 16px;
    }
    
    .workshop-hero-logo-wrapper {
        margin-bottom: 1rem;
    }
    
    .instructor-name-overlay {
        padding: 0.5rem 1rem;
        margin-top: 0.35rem;
        margin-bottom: 0.75rem;
        border-radius: 16px;
        border-width: 2.5px;
        max-width: 90%;
    }
    
    .instructor-name {
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
    
    .workshop-hero-content {
        padding: 0 1rem;
    }
    
    .workshop-hero .workshop-meta {
        gap: 0.3rem;
        font-size: var(--text-sm);
        bottom: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-width: 100%;
        text-align: center;
    }
    
    .workshop-hero .workshop-meta span {
        padding: 0;
        font-size: var(--text-sm);
        background: none;
        backdrop-filter: none;
        text-align: center;
        display: block;
    }
    
    .workshop-hero-cta {
        margin-bottom: 0.5rem;
    }
    
    .workshop-content {
        padding: 2rem 1rem;
    }
    
    .instructor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .instructor-image {
        margin: 0 auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .workshop-hero-cta {
        flex-direction: column;
    }
    
    .btn-hero,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
    }
    
    .tito-widget-container {
        padding: 0 0.125rem !important;
        margin: 2rem auto !important;
    }
    
    .tito-release {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem !important;
        margin-bottom: 1.5rem;
        background-size: cover !important;
        background-position: center !important;
        position: relative;
    }
    
    .tito-release::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 0;
        border-radius: 16px;
    }
    
    .tito-release > * {
        position: relative;
        z-index: 1;
    }
    
    .tito-release-description {
        width: 100%;
        order: 1;
    }
    
    .tito-release > .tito-price-details-regular {
        order: 2;
        width: 100%;
        align-items: center !important;
        padding: 0.25rem 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0;
        min-height: auto;
    }
    
    .tito-price-details-regular {
        width: 100%;
        align-items: center !important;
    }
    
    .tito-release > .tito-quantity {
        order: 3;
        width: 100%;
        margin-top: 0.75rem !important;
        justify-content: center;
        padding-top: 0;
    }
    
    .tito-quantity {
        width: 100%;
        justify-content: center;
    }
    
    .tito-widget .tito-widget-form .tito-release .tito-release--title {
        color: #0f172a !important;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        font-weight: 700;
    }
    
    .tito-release-description p,
    .tito-release-description div {
        color: rgba(15, 23, 42, 0.85);
        line-height: 1.6;
    }
    
    .tito-price-details-regular .tito-release--price {
        font-size: 1.75rem !important;
        font-weight: 700;
        color: var(--primary) !important;
    }
    
    .tito-quantity button,
    .tito-quantity a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .tito-form-actions {
        margin-top: 1.5rem;
    }
    
    .tito-widget .tito-form-actions .tito-submit {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem;
        font-weight: 700;
    }

    .tito-widget .tito-widget-form .tito-release .tito-details--waiting-list .tito-price, .tito-widget .tito-widget-form .tito-release .tito-price-details-donation .tito-price, .tito-widget .tito-widget-form .tito-release .tito-price-details-regular .tito-price {
        padding: 0.5rem;
        color: var(--primary);
        max-width: fit-content !important;
    }

    .tito-widget .tito-widget-form .tito-release .tito-release--title  {
        color:white !important;
    }

    .tito-widget .tito-widget-form .tito-release .tito-details--waiting-list, .tito-widget .tito-widget-form .tito-release .tito-price-details-donation, .tito-widget .tito-widget-form .tito-release .tito-price-details-regular {
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.20);
        box-shadow: 0 4px 24px 0 rgba(30, 41, 59, 0.6);
        backdrop-filter: blur(10px);
        color: #f4f5f6;
        padding: 1rem;
        max-width: fit-content !important;
        margin: 0 auto !important;
    }
}

.tito-widget .tito-widget-form .tito-release .tito-release--title > small {
    display: none;
}

.tito-widget .tito-widget-form .tito-release .tito-details--waiting-list, .tito-widget .tito-widget-form .tito-release .tito-price-details-donation, .tito-widget .tito-widget-form .tito-release .tito-price-details-regular {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 24px 0 rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    color: #f4f5f6;
    padding: 1rem;
    max-width: fit-content !important;
    margin-bottom:0.75rem;
}

.tito-widget .tito-widget-form .tito-release .tito-release--title  {
    padding: 1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: 0 4px 24px 0 rgba(30, 41, 59, 0.06);
    backdrop-filter: blur(10px);
    color: #f4f5f6;
}