.hidden {
    display: none !important;
}

body.loading {
    visibility: hidden;
    opacity: 0;
}

/* Base styles for the "glassmorphism" effect */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 3.5px 3.5px 20px rgba(0, 0, 0, 0.5),
        inset -5px -5px 15px rgba(255, 255, 255, 0.063);
    transition: all 0.3s ease-in-out;
}

/* Super Ninja AI: Header Banner Styles */
.header-banner {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Super Ninja AI: Animated gradient background for header banner */
.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 210, 217, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(46, 107, 111, 0.2) 0%, transparent 50%); /* Updated purple to teal */
    z-index: -1;
    animation: radial-pulse 15s infinite ease-in-out;
    opacity: 0.7;
    pointer-events: none;
}

/* Super Ninja AI: Logo container styles */
.header-logo {
    width: 55px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.header-logo img {
    max-width: 110%;
    max-height: 100%;
    object-fit: contain;
}

/* Super Ninja AI: Text content styles */
.header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.header-name {
    font-family: 'Epilogue', sans-serif;
    font-weight: 750;
    font-size: 2rem;
    color: var(--teal-base);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Super Ninja AI: Fix for name display */
@media (min-width: 769px) {
    .header-name {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
}

.header-team,
.header-title {
    font-family: 'Albert Sans', sans-serif;
    margin: 0;
    line-height: 1.2;
}

/*
 * @keyframes for the background glow animation.
 * It shifts the background position to create a subtle, flowing glow.
 */
@keyframes background-glow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/*
 * @keyframes for the text gradient effect.
 * Shifts the background to make the iridescent text move.
 */
@keyframes text-glow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/*
 * @keyframes for the subtle radial gradient background.
 * Creates a dynamic, abstract grid pattern in the background.
 */
@keyframes radial-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/*
 * Root CSS variables for a consistent teal/purple color scheme.
 */
:root {
    /* New Color Palette (Dark Teal/Green) */
    --teal-base: #21dbd8;
    --teal-light: #86E0E6;
    --teal-dark: #016b86;
    --purple-dark: #1e4e52; /* Updated from a dark purple to a deep teal */
    --text-color: #E2E8F0;
    --card-text-color: #A0AEC0;
}

body {
    font-family: 'Albert Sans', sans-serif;
    background: #010e12;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6,
.iridescent-text {
    font-family: 'Epilogue', sans-serif;
    font-weight: 750;
}

.background-glow {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at 20% 80%, var(--teal-base) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(46, 107, 111, 0.3) 0%, transparent 40%); /* Updated purple to teal */
    animation: radial-pulse 20s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
}

.iridescent-text {
    background: linear-gradient(45deg, var(--teal-light), var(--teal-base), #2E6B6F); /* Updated gradient to remove purple */
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text-glow 5s ease-in-out infinite alternate;
}

/* Custom Scrollbar for WebKit Browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(8, 44, 46, 0.75);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    /* Darker, less saturated teal. Note the change in rgba value. */
    background: rgba(53, 131, 135, 0.6);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background-color 0.3s ease; /* This is what enables the hover effect */
}

::-webkit-scrollbar-thumb:hover {
    /* Brighter, but still less saturated teal on hover. */
    background: #61bac0;
}

/* Custom Scrollbar for Firefox */
html, body {
    scrollbar-color: #61bac0 rgba(10, 46, 48, 0.2);
    scrollbar-width: thin;
}

.pdp-container {
    width: 100%;
    flex: 1;
    display: flex;
    gap: 2rem;
    position: relative;
    margin-top: 1rem;
    
}

.pdp-nav-container {
    width: 315px;
    flex-shrink: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative; 
}

.pdp-nav-container.collapsed {
    width: 95px;
}

.nav-link {
    /* Base styles you want to keep */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: box-shadow 0.5s ease-in-out, color 0.5s ease-in-out;
}

.nav-link::after {
    /* This is the pseudo-element that holds the gradient glow */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--teal-base), var(--teal-dark));
    border-radius: 12px;
    opacity: 0; /* Starts as completely transparent, no glow */
    transition: opacity 0.5s ease-in-out; /* Animates the fade-in */
    z-index: -1;
}

.nav-link:hover {
    color: white; /* Changes text color on hover */
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 3.5px 3.5px 20px rgba(0, 0, 0, 0.5),
        inset -5px -5px 10px rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
    opacity: 1; /* Animates the gradient to fully visible on hover */
}

.nav-link.active {
    color: white;
    background: transparent; /* Remove the old background color */
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 3.5px 3.5px 20px rgba(0, 0, 0, 0.5),
        inset -5px -5px 10px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active::after {
    opacity: 0.5; /* This is the new change for a subtle glow */
}

.nav-link.active:hover::after {
    opacity: 1; /* The new rule to override the subtle glow on hover */
}



.pdp-nav-container.collapsed .nav-link {
    justify-content: center;
    gap: 0;
    padding: 1rem 0;
}

.pdp-nav-container.collapsed .nav-link span {
    display: none;
}

.nav-link svg {
    width: 24px;
    height: 24px;
}

/* New styles for the tabbed interface */
.tabs-container {
    display: flex;
    flex-wrap: wrap; /* Add this line */
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pre-tabs-container {
    display: flex;
    flex-wrap: wrap; /* Add this line */
    gap: 1rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a6babb;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: linear-gradient(45deg, var(--teal-base), var(--teal-dark));
    border-color: var(--teal-light);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.3),
        inset 3.5px 3.5px 20px rgba(0, 0, 0, 0.5),
        inset -5px -5px 10px rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* New styles for the collapsible cards within the Offense tab. */
.collapsible-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease-in-out;
    margin-bottom: 0.85rem;
    cursor: pointer;
}

.collapsible-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.collapsible-card.open .collapsible-content {
    display: block;
}

.collapsible-card.open .collapsible-header {
    background: rgba(82, 186, 191, 0.1);
}

/* Rotate the arrow icon when the card is active */
.collapsible-card.active .collapsible-header svg {
    transform: rotate(180deg);
}

/* Styles for the inner "Doing Great" and "Focus Areas" boxes */
.inner-content-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.teal-heading {
    color: #63D2D9;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.text-teal-heading {
    color: #63D2D9;
}

/* New Styles for Media Carousel */
.media-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 1rem;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    width: 100%;
    border-radius: 10px;
}

.media-slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    cursor: grab;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-slider::-webkit-scrollbar {
    display: none;
}

.media-slider:active {
    cursor: grabbing;
}

.media-slide {
    flex: 0 0 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
    background-color: rgba(0, 0, 0, 0.3);
    scroll-snap-align: center;
}

.media-slide img,
.media-slide iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

/* Fix for YouTube video aspect ratio and visibility */
.media-slide iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Make sure the collapsible cards themselves fill the grid columns */
.collapsible-card {
    width: 100%;
}

.collapse-button {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
    box-shadow: 0 0 15px rgba(82, 186, 191, 0.5), 0 0 5px rgba(82, 186, 191, 0.8);
}

.embed-container {
    position: relative;
    padding-bottom: 60%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #00000000;
}
.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.collapsible-card.prioritized-action-card {
    transition: background 0.5s ease-in-out;
}

.screener-active-bg {
    background: rgba(46, 107, 111, 0.5);
}

.hidden-tags {
    display: none;
}

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

/* Actions Library Specific Styles */

/* Style for the collapsible content when it's expanded */
.collapsible-content.expanded {
    max-height: 1000px; /* A large value to allow the transition to work. Adjust if needed. */
}

/* Style for the button when toggle is active */
#toggle-prioritized-button.prioritized-button-active {
    background-color: rgba(4, 88, 140, 0.423);
    color: white;
}

/* Style for cards that are NOT prioritized when the toggle is on */
.faded-card {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}


/* Style to hide tags by default */
.tags-container.prioritized-tags-hidden {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Style to show tags when toggle is active */
.prioritized-card .tags-container {
    opacity: 1;
}

/* Existing and new styles for the pulsing glow and card backgrounds */
.prioritized-star-card {
    background: rgba(7, 112, 75, 0.632);
    animation: subtle-glow 3s infinite alternate;
    border: 2px solid rgba(0, 255, 0, 0.5);
}

.prioritized-no-star-card {
    background: rgba(4, 88, 140, 0.3);
}



/* New transition for the tags to fade in and out */
.prioritized-tags-hidden {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes subtle-glow {
    0% { box-shadow: 0 0 15px rgba(82, 196, 116, 0.6), inset 0 0 10px rgba(82, 196, 116, 0.4); }
    100% { box-shadow: 0 0 25px rgba(82, 196, 116, 0.8), inset 0 0 15px rgba(82, 196, 116, 0.6); }
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

/* Base style for prioritized tags */
.prioritized-tag {
    background-color: #1b9d60;
    color: white;
}

/* Faded and crossed-out style for non-prioritized tags */
.not-prioritized-tag {
    color: var(--card-text-color);
    text-decoration: line-through;
    background-color: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--card-text-color);
    opacity: 0.5;
}

/* Style for tags when the toggle is active */
.tags-container.prioritized-tags-visible {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Style for the faded-out collapsible card when toggle is active */
.faded-card {
    opacity: 0.5;
    pointer-events: none;
}

/* Add this class to your main stylesheet (style.css) */
.prioritized-card-star {
    background: rgba(7, 112, 75, 0.632);
    border: 2px solid rgba(0, 255, 0, 0.5);
}

/* Add to the end of your file */

.hot-spot {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
}

.hot-spot:hover,
.hot-spot.hover-glow {
    filter: drop-shadow(0 0 15px rgba(33, 219, 216, 0.8));
}

.hot-spot.locked {
    filter: drop-shadow(0 0 2rem #00d4ff) brightness(1.2);
    /* Note: We handle the scale and rotation with the animation now */
    animation: pop 1s ease-in-out forwards;
}



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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Animations with Rotation */
@keyframes pop {
    0% {
        transform: scale(1) rotateZ(0deg);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1) rotateZ(90deg);
    }
}

/* New Animation without Rotation */
@keyframes pop-no-rotate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.15);
    }
}

/* Override for the Dunker Spots */
#dunker-trigger-left.locked,
#dunker-trigger-right.locked {
    animation-name: pop-no-rotate;
}

/* Video Thumbnail Styling */
.video-thumbnail-container {
    /* Remove 'width: 150px;' */
    flex-shrink: 0; /* Prevents thumbnails from shrinking */
    scroll-snap-align: start; /* Aligns each thumbnail to the start of the container */
    width: 100%; /* Make thumbnail container full width of its parent */
    /* Add this for responsive aspect ratio */
    aspect-ratio: 16/9;
    max-width: 300px; /* Optional: Sets a max width on desktop */
    position: relative;
    cursor: pointer;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.video-thumbnail-container:hover {
    transform: scale(1.02);
}

.video-thumbnail-container svg {
    color: #fff;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}


.video-thumbnail-container:hover svg {
    opacity: 1;
}


/* Modal Pop-up Styling */
.video-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease;
}

.video-modal-container.show {
    visibility: visible;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px; /* Larger size for desktop */
    margin: 0 20px;
    background: transparent;
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.close-modal-button {
    position: absolute;
    top: -25px;
    right: -25px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

/* Styling for the video title under the thumbnail */
.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Styling for the new description container in the modal */
.video-description-container {
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
}

/* Styling for modal navigation buttons */
.video-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.2s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-video {
    left: 20px;
}

.next-video {
    right: 20px;
}

/* Hide the buttons if only one video exists */
.video-nav-button.hidden {
    display: none;
}



@media (max-width: 768px) {
    .video-modal-content {
        width: 100%;
        margin: 0;
    }
    .close-modal-button {
        top: 5px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header-banner {
        padding: 0.75rem 1rem;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .header-logo {
        width: 30px;
        height: 60px;
        margin-right: 0.75rem;
    }

    .header-name {
        font-size: 1.8rem;
        white-space: normal;
    }

    .header-team,
    .header-title {
        font-size: 1rem;
    }

    .pdp-container {
        flex-direction: column;
        padding: 0.25rem;
        gap: 1rem;
        margin-top: 0.25rem;
    }

    .pdp-nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        padding: 2rem 1rem;
        border-radius: 0;
        border: none;
        transition: left 0.3s ease-in-out;
        background: rgba(8, 44, 46, 0.478);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(50px);
        box-shadow: 
            0 8px 32px 0 rgba(0, 0, 0, 0.3),
            inset 3.5px 3.5px 20px rgba(0, 0, 0, 0.5),
            inset -5px -5px 10px rgba(255, 255, 255, 0.1);
    }

    .pdp-nav-container.open {
        left: 0;
    }

    .collapse-button {
        margin: 0;
        z-index: 1001;
    }

    .pdp-nav-container .nav-link { 
        z-index: 1002;
    }
    .verse-container {
        display: flex;
        flex-direction: column;
        padding: 0 1rem;
        text-align: center;
    }

    .verse-text {
        text-align: left;
    }

    .verse-reference {
        margin-top: 0.5rem;
        text-align: right;
    }

    .bg-\[\#2E6B6F\] {
        margin-top: 0 !important;
    }
    .action-card-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .tags-container {
        justify-content: flex-start;
    }

    .action-name {
        margin-bottom: 0.5rem; /* Adds some space below the title */
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .pdp-nav-container {
        width: 70px;
    }
    .pdp-nav-container .nav-link span {
        display: none;
    }
}

@media (min-width: 1000px) {
  /* This is the breakpoint for desktop screens, often 'lg' in Tailwind CSS */
  .spot-triggers-container {
    flex-direction: column;
    align-items: center;
  }

  .spot-triggers-container > div {
    width: 100%;
    margin-bottom: 1rem; /* Adjust spacing as needed */
  }
}