/* ==========================================
   DISCOVERY WORKSHOPS PAGE
   ========================================== */

/* Hero Section - Uses .hero-split from hero.css */

/* Security Cornerstones Diagram */
.cornerstones-diagram {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: 2rem;
    margin-top: -80px;
    --diagram-size: 550px;
}

.cornerstone-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(90px, 16vw, 130px);
    height: clamp(90px, 16vw, 130px);
    background: linear-gradient(135deg, rgba(254, 231, 78, 0.15), rgba(254, 231, 78, 0.05));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(254, 231, 78, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 40px rgba(254, 231, 78, 0.3), inset 0 0 30px rgba(254, 231, 78, 0.1);
    transition: transform 0.3s ease;
    padding: clamp(8px, 2.5vw, 16px);
}

.center-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(254, 231, 78, 0.5);
    animation: pulse-ring 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.5;
    }
}

.center-label {
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--color-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.cornerstone-item {
    position: absolute;
    --radius: 42%;
    --node-size: clamp(55px, 10vw, 75px);
    text-decoration: none;
    cursor: pointer;
}

/* Pentagon layout: Using trigonometry for perfect pentagon
   Angle formula: -90deg + (360deg/5 * index)
   Top node is at -90deg (pointing up) */
.cornerstone-1 {
    top: calc(50% - var(--radius) * sin(-90deg));
    left: calc(50% + var(--radius) * cos(-90deg));
    transform: translate(-50%, -50%);
}

.cornerstone-2 {
    top: calc(50% - var(--radius) * sin(-18deg));
    left: calc(50% + var(--radius) * cos(-18deg));
    transform: translate(-50%, -50%);
}

.cornerstone-3 {
    top: calc(50% - var(--radius) * sin(54deg));
    left: calc(50% + var(--radius) * cos(54deg));
    transform: translate(-50%, -50%);
}

.cornerstone-4 {
    top: calc(50% - var(--radius) * sin(126deg));
    left: calc(50% + var(--radius) * cos(126deg));
    transform: translate(-50%, -50%);
}

.cornerstone-5 {
    top: calc(50% - var(--radius) * sin(198deg));
    left: calc(50% + var(--radius) * cos(198deg));
    transform: translate(-50%, -50%);
}

.cornerstone-node {
    position: relative;
    width: var(--node-size);
    height: var(--node-size);
    background: linear-gradient(135deg, rgba(2, 2, 2, 0.9), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 231, 78, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(254, 231, 78, 0.2);
}

.cornerstone-node:hover {
    transform: scale(1.15);
    border-color: var(--color-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(254, 231, 78, 0.5);
}

.node-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 231, 78, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cornerstone-node:hover .node-glow {
    opacity: 1;
}

.node-icon {
    width: clamp(20px, 4vw, 32px);
    height: clamp(20px, 4vw, 32px);
    color: var(--color-yellow);
    transition: transform 0.3s ease;
}

.cornerstone-node:hover .node-icon {
    transform: rotate(10deg) scale(1.1);
}

.cornerstone-label {
    position: absolute;
    font-size: clamp(0.7rem, 1.3vw, 0.875rem);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Labels positioned outside each node */
.cornerstone-1 .cornerstone-label {
    top: calc(100% + 1.25rem);
    left: 50%;
    transform: translateX(-50%);
}

.cornerstone-2 .cornerstone-label {
    left: calc(100% + 1.5rem);
    top: 50%;
    transform: translateY(-50%);
}

.cornerstone-3 .cornerstone-label {
    left: calc(100% + 1.5rem);
    bottom: 0;
}

.cornerstone-4 .cornerstone-label {
    right: calc(100% + 1.5rem);
    bottom: 0;
}

.cornerstone-5 .cornerstone-label {
    right: calc(100% + 1.5rem);
    top: 50%;
    transform: translateY(-50%);
}

.cornerstone-item:hover .cornerstone-label {
    color: var(--color-yellow);
}

/* SVG Connection Lines */
.connection-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.connection-lines-svg line {
    filter: drop-shadow(0 0 4px rgba(254, 231, 78, 0.6));
}

.diagram-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(254, 231, 78, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 231, 78, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Intro Section */
.intro-section {
    background: var(--color-black);
    padding: 100px 0;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Workshop Sections */
.workshop-section {
    padding: 120px 0;
    position: relative;
}

.workshop-dark {
    background: linear-gradient(135deg, #000000 0%, #0d0d0d 100%);
}

.workshop-light {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.workshop-grid-reverse .workshop-visual {
    order: 1;
}

.workshop-grid-reverse .workshop-content {
    order: 2;
}

.workshop-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(254, 231, 78, 0.6);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.workshop-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.workshop-dark .workshop-title {
    color: var(--color-white);
}

.workshop-light .workshop-title {
    color: var(--color-white);
}

.workshop-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.workshop-description:last-of-type {
    margin-bottom: var(--space-8);
}

.workshop-dark .workshop-description {
    color: rgba(255, 255, 255, 0.7);
}

.workshop-light .workshop-description {
    color: rgba(255, 255, 255, 0.7);
}

.workshop-benefits h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.workshop-dark .workshop-benefits h4 {
    color: var(--color-yellow);
}

.workshop-light .workshop-benefits h4 {
    color: var(--color-yellow);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.workshop-dark .benefits-list li {
    color: rgba(255, 255, 255, 0.8);
}

.workshop-light .benefits-list li {
    color: rgba(255, 255, 255, 0.8);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--color-yellow);
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* Workshop Visual Cards */
.workshop-visual img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-yellow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(254, 231, 78, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(254, 231, 78, 0.05) 0%, transparent 50%);
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(254, 231, 78, 0.08), rgba(254, 231, 78, 0.03));
    backdrop-filter: blur(30px);
    border: 1px solid rgba(254, 231, 78, 0.3);
    border-radius: 24px;
    padding: 80px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(254, 231, 78, 0.05);
}

.cta-content {
    text-align: center;
    margin-bottom: 60px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto 48px;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(254, 231, 78, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-yellow);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Cornerstone List */
.cornerstones-list {
    display: none;
    width: 100%;
}

.cornerstone-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(2, 2, 2, 0.9), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(254, 231, 78, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.cornerstone-link:last-child {
    margin-bottom: 0;
}

.cornerstone-link:hover {
    border-color: var(--color-yellow);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(254, 231, 78, 0.2);
}

.cornerstone-link-icon {
    width: 40px;
    height: 40px;
    color: var(--color-yellow);
    flex-shrink: 0;
}

.cornerstone-link-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-split .hero-content {
        max-width: 100%;
    }

    .cornerstones-diagram {
        display: none;
    }

    .cornerstones-list {
        display: block;
    }

    .workshop-section {
        padding: 80px 0;
    }

    .workshop-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .workshop-content {
        order: 1 !important;
    }

    .workshop-visual {
        order: 2 !important;
    }

    .workshop-number {
        font-size: 3.5rem;
    }

    .workshop-title {
        margin-bottom: var(--space-5);
    }

    .cta-stats {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-card {
        padding: 60px 40px;
    }

    .intro-section {
        padding: 80px 0;
    }
}

@media (max-width: 640px) {
    .hero-split .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-split .hero-title-underline {
        width: clamp(200px, 80%, 300px);
    }

    .hero-split .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .cornerstone-link {
        padding: 16px;
        gap: 12px;
    }

    .cornerstone-link-icon {
        width: 32px;
        height: 32px;
    }

    .cornerstone-link-text {
        font-size: 0.85rem;
    }

    .intro-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2rem);
        margin-bottom: var(--space-4);
    }

    .intro-text {
        font-size: 1rem;
    }

    .workshop-section {
        padding: 60px 0;
    }

    .workshop-grid {
        gap: 32px;
    }

    .workshop-number {
        font-size: 3rem;
        margin-bottom: var(--space-1);
    }

    .workshop-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: var(--space-4);
    }

    .workshop-description {
        font-size: 1rem;
        margin-bottom: var(--space-3);
    }

    .workshop-description:last-of-type {
        margin-bottom: var(--space-5);
    }

    .workshop-visual img {
        border-radius: var(--radius-xl);
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: clamp(2rem, 7vw, 2.5rem);
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
