/* ==========================================================================
   TEAM GENERATOR STYLES
   ========================================================================== */

/* ==========================================================================
   TEAM GENERATOR CENTER
   ========================================================================== */

.team-generator-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 500px;
}

/* ==========================================================================
   TEAMS DISPLAY AREA
   ========================================================================== */

.teams-display {
    flex: 1;
    width: 100%;
    max-width: 700px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.teams-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

body:not(.dark-mode) .teams-placeholder {
    color: #888;
}

.teams-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.teams-placeholder p {
    font-size: 14px;
    margin: 0;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
}

/* Team Cards */
.team-card {
    background: #1a1a1b;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .team-card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.team-card-animate {
    animation: teamCardPop 0.4s ease forwards;
    opacity: 0;
}

@keyframes teamCardPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--team-color, #ffbe4d);
}

.team-number {
    font-size: 16px;
    font-weight: 700;
    color: #040405;
}

.team-count {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.team-members {
    list-style: none;
    margin: 0;
    padding: 12px 16px;
}

.team-member {
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid var(--team-color, #ffbe4d);
}

body:not(.dark-mode) .team-member {
    background: #f5f5f5;
}

.team-member:last-child {
    margin-bottom: 0;
}

.team-member:hover {
    background: rgba(255, 255, 255, 0.1);
}

body:not(.dark-mode) .team-member:hover {
    background: #eee;
}

/* Teams Loading State */
.teams-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}

body:not(.dark-mode) .teams-loading {
    color: #666;
}

.teams-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 190, 77, 0.2);
    border-top-color: #ffbe4d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.teams-loading p {
    font-size: 14px;
    margin: 0;
}

/* ==========================================================================
   GENERATE BUTTON
   ========================================================================== */

.generate-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ffbe4d 0%, #ffa726 100%);
    border: none;
    border-radius: 50px;
    color: #040405;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 190, 77, 0.3);
    margin: 24px 0;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 190, 77, 0.4);
}

.generate-button:active {
    transform: translateY(-1px);
}

.generate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   TEAM COUNT SECTION
   ========================================================================== */

.team-count-section {
    padding-bottom: 16px !important;
}

.team-count-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.team-count-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

body:not(.dark-mode) .team-count-btn {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.team-count-btn:hover {
    background: #ffbe4d;
    border-color: #ffbe4d;
    color: #040405;
}

.team-count-btn:active {
    transform: scale(0.95);
}

.team-count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.team-count-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #ffbe4d;
}

.team-count-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

body:not(.dark-mode) .team-count-label {
    color: #888;
}

.team-count-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 12px 0 0 0;
}

body:not(.dark-mode) .team-count-hint {
    color: #999;
}

/* ==========================================================================
   FULLSCREEN MODE
   ========================================================================== */

body.team-generator-fullscreen {
    overflow: hidden;
}

.team-generator-center.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #0a0a0b;
    padding: 20px;
    justify-content: center;
}

body:not(.dark-mode) .team-generator-center.fullscreen-mode {
    background: #f5f5f5;
}

.team-generator-center.fullscreen-mode .teams-display {
    max-width: 900px;
    max-height: 70vh;
    overflow-y: auto;
}

.team-generator-center.fullscreen-mode .wheel-title {
    display: none;
}

.team-generator-center.fullscreen-mode .wheel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.team-generator-center.fullscreen-mode .generate-button {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1400px) {
    .teams-display {
        max-width: 600px;
    }
}

@media (max-width: 1200px) {
    .teams-display {
        max-width: 500px;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 992px) {
    .team-generator-center {
        padding: 15px;
        min-height: auto;
    }

    .teams-display {
        min-height: 280px;
        padding: 15px;
    }

    .teams-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .generate-button {
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .teams-display {
        min-height: 250px;
    }

    .team-card {
        padding: 14px;
    }

    .team-member {
        padding: 6px 10px;
        font-size: 13px;
    }

    .generate-button {
        padding: 12px 28px;
        font-size: 14px;
    }

    .team-count-value {
        font-size: 40px;
    }

    .team-count-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .teams-display {
        min-height: 220px;
        padding: 10px;
    }

    .teams-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .team-card {
        padding: 12px;
    }

    .generate-button {
        padding: 12px 24px;
        font-size: 14px;
        margin: 16px 0;
    }

    .team-count-controls {
        gap: 12px;
    }

    .team-count-value {
        font-size: 36px;
    }

    .team-count-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .teams-display {
        min-height: 200px;
    }

    .teams-placeholder svg {
        width: 48px;
        height: 48px;
    }

    .teams-placeholder p {
        font-size: 13px;
    }

    .team-card {
        padding: 10px;
    }

    .team-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .team-number {
        font-size: 14px;
    }

    .team-member {
        padding: 5px 8px;
        font-size: 12px;
    }
}
