/* === TEAM LIST STYLES === */

/* Team Size Control */
.team-size-control {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    text-align: center;
}

.team-size-control h3 {
    color: #3498db;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.size-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.size-btn {
    background: rgba(52, 73, 94, 0.6);
    color: #ecf0f1;
    border: 2px solid #7f8c8d;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.size-btn:hover {
    background: rgba(52, 152, 219, 0.6);
    border-color: #3498db;
    transform: translateY(-2px);
}

.size-btn.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Current Team Section */
.current-team-section {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.team-header h3 {
    color: #3498db;
    margin: 0;
    font-size: 1.4rem;
}

.team-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-more-btn, .clear-team-btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.add-more-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.add-more-btn:hover {
    background: linear-gradient(135deg, #27ae60, #219a52);
    transform: translateY(-2px);
}

.clear-team-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.clear-team-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

/* Team Grid */
.team-grid {
    display: grid;
    gap: 15px;
}

.team-member-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.team-member-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.2);
}

.member-image-container {
    flex-shrink: 0;
    width: 100px;        /* ← Změna ze 80px na 100px */
    height: 100px;       /* ← Změna ze 80px na 100px */
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;  /* ← Přidáno pro lepší styling */
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;  /* ← Přidáno pro hover efekt */
}

.team-member-card:hover .member-image {
    transform: scale(1.05);  /* ← Přidáno pro hover efekt */
}

.member-image-placeholder {
    font-size: 3rem;        /* ← Změna z 2.5rem na 3rem */
    color: #6c757d;
}

.member-info {
    flex: 1;
}

.member-name {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.member-type {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.member-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.member-stat {
    color: #495057;
    font-weight: 500;
}

.member-special {
    color: #3498db;
    font-size: 0.85rem;
    font-style: italic;
}

.member-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remove-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
}

/* Empty Team Message */
.empty-team-message {
    text-align: center;
    padding: 60px 20px;
    color: #ecf0f1;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-team-message h3 {
    margin: 0 0 15px 0;
    color: #3498db;
    font-size: 1.5rem;
}

.empty-team-message p {
    margin: 0 0 25px 0;
    color: #bdc3c7;
    font-size: 1.1rem;
}

.empty-add-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.empty-add-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f6391);
    transform: translateY(-2px);
}

/* Team Statistics */
.team-stats-section {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.team-stats-section h3 {
    color: #3498db;
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(52, 73, 94, 0.6);
    border: 2px solid #7f8c8d;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

.stat-label {
    display: block;
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    color: #3498db;
    font-size: 2rem;
    font-weight: bold;
}

/* Remove Confirmation Modal */
.remove-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.remove-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.remove-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.remove-modal-overlay.visible .remove-modal-content {
    transform: scale(1);
}

.remove-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3rem;
}

.remove-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.remove-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-remove-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-remove-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.cancel-remove-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cancel-remove-btn:hover {
    background: #7f8c8d;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.fixed-battle-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    border: 2px solid transparent;
}

.fixed-battle-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.fixed-battle-btn:active {
    transform: translateY(0);
}

/* Update existing fixed-back-btn to work with flex container */
.fixed-back-btn {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
    border: 2px solid transparent;
}

.fixed-back-btn:hover {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 73, 94, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.fixed-back-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .team-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-actions {
        justify-content: center;
    }
    
    .team-member-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .member-info {
        order: 2;
    }
    
    .member-actions {
        order: 3;
        flex-direction: row;
        justify-content: center;
    }
    
    .member-image-container {
        width: 80px;        /* ← Mobilní verze zůstává 80px */
        height: 80px;       /* ← Mobilní verze zůstává 80px */
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .size-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .size-btn {
        width: 200px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .fixed-back-btn, .fixed-battle-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .member-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .remove-modal-actions {
        flex-direction: column;
    }
    
    .fixed-back-btn, .fixed-battle-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
    
    .member-image-container {
        width: 70px;        /* ← Ještě menší pro malé mobily */
        height: 70px;
    }
    
    .member-image-placeholder {
        font-size: 2.5rem;  /* ← Menší emoji pro malé mobily */
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    font-size: 1.1em;
    font-weight: 500;
    transition: opacity 0.3s ease;
    max-width: 350px;
    word-wrap: break-word;
}

.notification-success {
    background: #27ae60;
}

.notification-warning {
    background: #f39c12;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* Mobile notification positioning */
@media (max-width: 768px) {
    .notification {
        top: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100vw - 40px);
        width: auto;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .notification {
        top: 15px;
        left: 15px;
        right: 15px;
        transform: none;
        max-width: none;
        width: auto;
        min-width: auto;
        text-align: center;
    }
}