/* Immunity Zapisy - Full Width Landing Page */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.immunity-zapisy-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

.immunity-zapisy-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,107,53,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247,147,30,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.immunity-zapisy-header {
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.immunity-zapisy-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.immunity-zapisy-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    position: relative;
    z-index: 1;
}

.immunity-zapisy-header h2 {
    color: #fff;
    font-size: 56px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.immunity-zapisy-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 22px;
    margin: 15px 0 0 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.immunity-selection-screen {
    padding: 80px 40px;
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.immunity-selection-screen h3 {
    color: #fff;
    font-size: 42px;
    text-align: center;
    margin: 0 0 60px 0;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.immunity-zapisy-form {
    padding: 80px 40px;
    min-height: calc(100vh - 300px);
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Steps */
.immunity-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.immunity-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.immunity-step h3 {
    color: #fff;
    font-size: 36px;
    margin: 0 0 40px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Type Selection Cards */
.immunity-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    width: 100%;
}

.immunity-type-card {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 80px 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.immunity-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.1) 0%, rgba(247,147,30,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.immunity-type-card:hover::before {
    opacity: 1;
}

.immunity-type-card:hover {
    border-color: #ff6b35;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255,107,53,0.4);
}

.type-icon {
    font-size: 96px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.immunity-type-card h4 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.immunity-type-card p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

/* Form Groups */
.immunity-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.immunity-form-group label {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.immunity-form-group input[type="text"],
.immunity-form-group input[type="url"] {
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.3s;
}

.immunity-form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.immunity-form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}

.immunity-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.immunity-info {
    background: rgba(33,150,243,0.15);
    border: 1px solid rgba(33,150,243,0.3);
    border-left: 4px solid #2196f3;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #fff;
}

.immunity-info strong {
    color: #64b5f6;
}

.immunity-search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.immunity-search-wrapper input {
    flex: 1;
    min-width: 0;
}

.immunity-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.immunity-btn-select {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    width: 100%;
    position: relative;
    z-index: 1;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
}

.immunity-btn-select:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,107,53,0.5);
}

.immunity-btn-search {
    background: #2196f3;
    color: white;
    white-space: nowrap;
}

.immunity-btn-search:hover {
    background: #1976d2;
    box-shadow: 0 4px 15px rgba(33,150,243,0.4);
}

.immunity-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-size: 16px;
    padding: 16px 40px;
}

.immunity-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.5);
}

.immunity-btn-back {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    display: inline-block;
}

.immunity-btn-back:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.immunity-btn-add {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
}

.immunity-btn-add:hover {
    background: #45a049;
}

.immunity-btn-icon {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.immunity-btn-icon:hover {
    transform: scale(1.2);
}

.immunity-btn-danger {
    color: #f44336;
}

.immunity-search-results {
    margin-top: 15px;
    display: none;
}

.immunity-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-details strong {
    font-size: 16px;
    color: #333;
}

.player-details span {
    font-size: 13px;
    color: #666;
}

.immunity-selected-players {
    margin-top: 20px;
}

.immunity-selected-players h4 {
    color: #333;
    margin-bottom: 15px;
}

.immunity-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.immunity-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

.immunity-player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.immunity-player-item:hover {
    border-color: rgba(255,107,53,0.3);
    background: rgba(255,255,255,0.08);
}

.immunity-player-item.captain {
    border-color: #ffd700;
    background: rgba(255,215,0,0.1);
}

.immunity-player-item.reserve {
    opacity: 0.6;
}

.immunity-player-item .player-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.immunity-player-item .player-info {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.immunity-player-item .player-info strong {
    font-size: 15px;
}

.player-stats {
    font-size: 12px;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.captain-badge {
    background: #ffd700;
    color: #333;
}

.reserve-badge {
    background: #9e9e9e;
    color: white;
}

.player-actions {
    display: flex;
    gap: 5px;
}

.immunity-player-manual {
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.immunity-player-manual:hover {
    border-color: rgba(255,107,53,0.3);
    background: rgba(255,255,255,0.08);
}

.immunity-player-manual.reserve {
    opacity: 0.7;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-header .player-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
}

.player-header h4 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.immunity-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.immunity-btn-next {
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    display: block;
}

.immunity-message {
    padding: 18px 24px;
    border-radius: 12px;
    margin-top: 25px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.immunity-message.success {
    background: rgba(76,175,80,0.2);
    color: #4caf50;
    border: 1px solid rgba(76,175,80,0.4);
}

.immunity-message.error {
    background: rgba(244,67,54,0.2);
    color: #f44336;
    border: 1px solid rgba(244,67,54,0.4);
}

.immunity-message.info {
    background: rgba(33,150,243,0.2);
    color: #2196f3;
    border: 1px solid rgba(33,150,243,0.4);
}

.immunity-message.warning {
    background: rgba(255,193,7,0.2);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .immunity-zapisy-header h2 {
        font-size: 42px;
    }
    
    .immunity-selection-screen h3 {
        font-size: 32px;
    }
    
    .immunity-type-cards {
        gap: 30px;
    }
    
    .immunity-type-card {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .immunity-zapisy-header {
        padding: 60px 20px;
    }
    
    .immunity-zapisy-header h2 {
        font-size: 36px;
    }
    
    .immunity-zapisy-subtitle {
        font-size: 18px;
    }
    
    .immunity-zapisy-logo {
        max-width: 150px;
    }
    
    .immunity-selection-screen {
        padding: 60px 20px;
    }
    
    .immunity-selection-screen h3 {
        font-size: 28px;
    }
    
    .immunity-zapisy-form {
        padding: 40px 20px;
    }
    
    .immunity-type-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .immunity-type-card {
        padding: 50px 30px;
    }
    
    .type-icon {
        font-size: 72px;
    }
    
    .immunity-type-card h4 {
        font-size: 26px;
    }
    
    .immunity-type-card p {
        font-size: 16px;
    }
    
    .immunity-form-row {
        grid-template-columns: 1fr;
    }
    
    .immunity-search-wrapper {
        flex-direction: column;
    }
    
    .immunity-player-item {
        flex-wrap: wrap;
    }
    
    .immunity-step h3 {
        font-size: 26px;
    }
}
