body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Custom Tailwind Colors from the old site and new example */
.bg-primary-teal-dark { background-color: #006666; }
.text-primary-teal-dark { color: #006666; }
.border-primary-teal-dark { border-color: #006666; }

.bg-mid-teal { background-color: #0E7C7B; }
.text-mid-teal { color: #0E7C7B; }
.border-mid-teal { border-color: #0E7C7B; }

.bg-light-teal { background-color: #17A2A1; }
.text-light-teal { color: #17A2A1; }
.border-light-teal { border-color: #17A2A1; }

/* Hero section specific styles, using video background */
.hero {
    min-height: 100vh; /* Changed from height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Button styles from your example */
.cta-button {
    background-color: #37B9C7;
    color: #1a1a1a;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #2da1ae;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Fade-in on scroll styles */
[data-scroll-section] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll-section].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* NEW: Styles for the pickleball animation */
.pickleball-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* New class to hide the container when not scrolling */
.pickleball-container.is-hidden {
    opacity: 0;
}

/* Pickleball styles and animation */
.pickleball {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 30px;
    animation: bounce-and-rally 4s ease-in-out infinite;
}

/* New keyframes for a bouncing and rotating rally effect */
@keyframes bounce-and-rally {
    0% {
        transform: translateX(0) translateY(-40%) rotateZ(-10deg);
    }
    50% {
        transform: translateX(calc(100vw - 30px)) translateY(-60%) rotateZ(10deg);
    }
    100% {
        transform: translateX(0) translateY(-40%) rotateZ(-10deg);
    }
}

/* Symbiotic Triangle Styles */
.symbiotic-triangle-wrapper {
    position: relative;
    width: 320px;
    height: 277.12px;
    margin: 0 auto;
    overflow: hidden;
    cursor: pointer;
}

.triangle-segment-item {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    opacity: 1;
    display: block;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Community Segment (Top Triangle) */
.triangle-segment-item.community {
    background-color: #2C5F6C;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Brands Segment (Bottom-Left Triangle) */
.triangle-segment-item.brands {
    background-color: #4CAF50;
    clip-path: polygon(0% 100%, 50% 100%, 50% 50%);
}

/* Sponsorships Segment (Bottom-Right Triangle) */
.triangle-segment-item.sponsorships {
    background-color: #E67E22;
    clip-path: polygon(100% 100%, 50% 100%, 50% 50%);
}

/* Hover state classes for the animation */
.triangle-segment-item.is-faded-out {
    opacity: 0.2;
}

/* Disconnected animation classes */
.triangle-segment-item.is-disconnected.community {
    transform: translateY(-20px);
}
.triangle-segment-item.is-disconnected.brands {
    transform: translate(-20px, 20px);
}
.triangle-segment-item.is-disconnected.sponsorships {
    transform: translate(20px, 20px);
}

.triangle-text-label {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    width: 130px;
    padding: 8px 5px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    z-index: 3;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Positioning for each text label */
.triangle-text-label.community-label {
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
}
.triangle-text-label.brands-label {
    bottom: 10%;
    left: 25%;
    transform: translateX(-50%);
}
.triangle-text-label.sponsorships-label {
    bottom: 10%;
    right: 25%;
    transform: translateX(50%);
}

/* PBCL Logo Reveal */
#pbcl-logo-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 10;
    pointer-events: none;
    width: 150px;
    height: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1f1f1f;
    color: #e0e0e0;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close-button {
    position: absolute;
    top: -15px; /* Change from 10px to 0px */
    right: -15px; /* Change from 10px to 0px */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 1002; /* Ensure it's above the modal content */
}

/* Styling for modal forms and buttons to match the new theme */
.modal-content input, .modal-content textarea {
    background-color: #0d0d0d;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
}

.modal-content button {
    background-color: #37B9C7;
    color: #1a1a1a;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background-color: #2da1ae;
    transform: translateY(-2px);
}

/* Footer specific styles */
footer a {
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #37B9C7;
}

.social-icon {
    font-size: 1.5rem;
}

/* NEW Mobile menu styles */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Positions the menu off-screen to the right */
    width: 75%;
    height: 100vh;
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out; /* Smooth transition for the slide effect */
    z-index: 50;
    overflow-y: auto; /* Adds scroll if content is too long */
}

/* This class is added by your script.js to slide the menu into view */
#mobile-menu.is-active {
    right: 0;
}

/* Forum specific styles */
.forum-post {
    background-color: #1f1f1f;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.forum-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #37B9C7;
}

.forum-post-content {
    color: #e0e0e0;
}

/* Blog Post Admin Form */
#blog-admin-form textarea {
    min-height: 200px;
}

#blog-posts-container {
    min-height: 200px;
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #37B9C7;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* New styling for Admin and Log In button */
.admin-link, .login-button {
    cursor: pointer;
    transition: color 0.3s;
}

.admin-link:hover, .login-button:hover {
    color: #37B9C7;
}

/* Styling for the log out button */
#logout-button {
    background-color: #EF4444;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#logout-button:hover {
    background-color: #DC2626;
}
/* Pillar Modal Specific Styles */
.pillar-modal-content {
    max-width: 500px;
    padding: 2rem;
    position: relative;
}

.pillar-modal-content img {
    /* Style for the watermarked logo */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.1; /* Adjust opacity as needed */
    width: 200px; /* Adjust size as needed */
    pointer-events: none; /* Allows clicks on the content underneath */
}

/* Ensure content is above the watermark */
.pillar-modal-content h3, .pillar-modal-content p {
    position: relative;
    z-index: 10;
}
/*
 * Fix for ambassador images to prevent cropping.
 * This class ensures images fit within their container.
 */
.ambassador-image-class {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ambassador-image-container {
    width: 250px; /* Adjust as needed */
    height: 250px; /* Adjust as needed */
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto;
}

/* UPDATED: Styles for blog post images to fill the container, preventing empty space */
.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Center the Read More buttons */
.read-more-button-container {
 display: flex;
 justify-content: center;
 margin-top: 1rem; /* Adjust the spacing as needed */
}

.read-more-button {
 background-color: #37B9C7;
 color: #1a1a1a;
 padding: 0.75rem 2rem;
 border-radius: 9999px;
 font-weight: bold;
 transition: all 0.3s ease;
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.read-more-button:hover {
 background-color: #2da1ae;
 transform: translateY(-2px);
 box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}