/* Landing Container - Full Screen - Matching Website Style */
.landing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    z-index: 9998;
}

/* Background Layers for Crossfade */
.landing-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.landing-bg-layer.active {
    opacity: 0.6;

}


.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Landing Content - New Design - Full Screen */
.landing-content-new {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 3rem 3rem 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2.5rem;
    z-index: 5;
    overflow-y: auto;
}

.landing-subtitle-new {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Landing Sections */
.landing-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1rem;
}

.landing-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.landing-section:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 159, 28, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.landing-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.landing-section p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.landing-section .btn {
    margin-top: 1.5rem;
}

/* Media Queries for Landing Sections */
@media (max-width: 992px) {
    .landing-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-content {
        padding: 1.5rem;
    }

    .landing-title {
        font-size: 2.4rem;
    }

    .landing-subtitle {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .landing-content {
        padding: 1rem;
    }

    .landing-title {
        font-size: 2rem;
    }
}

/* ===================================================================
   NEW LANDING PAGE REDESIGN STYLES
   =================================================================== */

/* Welcome Header - Matching Website Style */
.landing-header-new {
    text-align: center;
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    margin-bottom: 1rem;
    height: auto;
    min-height: min-content;
}

.landing-header-new:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.landing-header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand-inline {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.btn-logout-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-logout-header:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.3);
}

.landing-header-main {
    width: 100%;
}

.landing-header-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

.landing-header-btn {
    min-width: 320px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border-radius: 16px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.3);
    font-weight: 700;
}

.landing-header-btn:hover {
    transform: translateY(-3px);
    background: var(--accent-secondary);
    box-shadow: 0 12px 35px rgba(var(--accent-primary-rgb), 0.5);
}

.landing-title-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.landing-title-new span {
    color: var(--accent-primary);
}

/* Top Action Buttons */
.landing-top-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
}

/* Single button styling */
.landing-top-actions .btn {
    min-width: 280px;
}

.landing-create-btn,
.landing-join-btn {
    min-width: 200px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.landing-create-btn {
    background: var(--gradient-button);
    border: none;
    color: var(--text-on-accent);
}

.landing-create-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
    color: var(--text-on-accent);
}

.landing-join-btn {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-on-accent);
}

.landing-join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-secondary-rgb), 0.4);
    color: var(--text-on-accent);
}

/* Main Cards Grid */
.landing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    padding: 0;
    max-width: 100%;
}

/* Feature Cards - Matching Website Style */
.landing-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.landing-feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.landing-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--accent-primary-rgb), 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
}

.landing-feature-card:hover::after {
    opacity: 1;
}

.card-icon-wrapper {
    flex-shrink: 0;
    z-index: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.landing-feature-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}



.card-content-wrapper {
    flex: 1;
    z-index: 1;
}

.landing-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.landing-feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    z-index: 1;
}

.landing-feature-card:hover .card-arrow {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Team Selector Panel - Matching Website Style */
.team-selector-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-top: 2px solid rgba(var(--accent-primary-rgb), 0.5);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 70vh;
    backdrop-filter: blur(20px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-close-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-panel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.panel-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    max-height: calc(70vh - 100px);
}

/* Teams List - Scrollable with Limits */
.teams-list-scrollable {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Custom Scrollbar - Matching Website Style */
.teams-list-scrollable::-webkit-scrollbar {
    width: 8px;
}

.teams-list-scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.teams-list-scrollable::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-primary-rgb), 0.5);
    border-radius: 4px;
}

.teams-list-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-primary-rgb), 0.7);
}

/* Team Item - Matching Website Style */
.team-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(var(--accent-primary-rgb), 0.5);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.15);
}

.team-item-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.team-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-item-info {
    flex: 1;
    min-width: 0;
}

.team-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-item-tag {
    display: inline-block;
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: var(--accent-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-item-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-item-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.team-item:hover .team-item-arrow {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Empty Teams Message - Matching Website Style */
.empty-teams-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

/* Slide Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Responsive Design for New Landing Page */
@media (max-width: 1200px) {
    .landing-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .teams-list-scrollable {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .landing-content-new {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .landing-container {
        position: fixed;
        width: 100vw;
        height: 100vh;
    }

    .landing-content-new {
        padding: 1.5rem;
        height: 100vh;
        justify-content: flex-start;
        padding-top: 2rem;
    }

    .landing-title-new {
        font-size: 1.8rem;
    }

    .landing-header-new {
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        height: auto;
        overflow: visible;
    }

    .landing-header-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .landing-brand-inline {
        font-size: 1.2rem;
    }

    .btn-logout-header {
        width: 100%;
        text-align: center;
    }

    .landing-header-btn {
        min-width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }

    .landing-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .landing-feature-card {
        padding: 1.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .teams-list-scrollable {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .landing-content-new {
        padding: 1rem;
        gap: 1.5rem;
    }

    .landing-title-new {
        font-size: 1.5rem;
    }

    .landing-header-new {
        padding: 1.5rem 1rem;
    }

    .landing-feature-card {
        padding: 1.25rem;
    }

    .landing-feature-card h3 {
        font-size: 1.2rem;
    }

    .landing-feature-card p {
        font-size: 0.85rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    .team-item {
        padding: 0.75rem;
    }

    .team-item-logo {
        width: 50px;
        height: 50px;
    }
}


/* ===================================================================
   LANDING PAGE KEYFRAME ANIMATIONS
   =================================================================== */

/* Gradient text animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}