/*!
 * GameRanking Form Styles
 * CSS für neue Listen und Lösch-Formulare
 * =======================================
 */

/* Container für zentrierte Formulare */
.form-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 40px);
}

.form-page-container .container {
    max-width: 600px;
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

/* Input Styles */
input[type="text"], 
input[type="email"], 
input[type="password"], 
textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
    font-family: inherit;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Games List Container */
.games-list-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.games-list-container h3 {
    color: #0c4a6e;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Game Items */
.game-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.game-item:hover {
    border-color: #4f46e5;
    transform: translateY(-1px);
}

.game-item.adding {
    border-color: #10b981;
    background: #f0fdf4;
}

.game-item input[type="text"] {
    flex: 1;
    margin-right: 15px;
    margin-bottom: 0;
    padding: 10px 15px;
    font-size: 0.95rem;
}

/* Button Variations */
.btn-add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-add:hover, .btn-remove:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}

.action-buttons .btn {
    flex: 1;
    text-align: center;
    min-height: 50px;
}

/* Delete Confirmation Styles */
.delete-confirmation {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.delete-confirmation h3 {
    color: #991b1b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.delete-confirmation p {
    color: #7f1d1d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.delete-confirmation .warning {
    font-weight: 700;
    color: #991b1b;
    margin-top: 15px;
    font-size: 0.95rem;
}

/* Confirmation Buttons */
.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.confirmation-buttons .btn {
    min-width: 120px;
}

/* Game Counter */
.game-counter {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    border: 2px solid #8b5cf6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    color: #5b21b6;
    font-weight: 600;
}

/* Help Text */
.help-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

.help-text.important {
    color: #dc2626;
    font-weight: 600;
}

/* Animation for adding/removing games */
@keyframes gameAdded {
    from { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes gameRemoved {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-10px) scale(0.95); 
    }
}

.game-item.new {
    animation: gameAdded 0.3s ease-out;
}

.game-item.removing {
    animation: gameRemoved 0.3s ease-out;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.warning-box h3 {
    color: #92400e;
    margin-bottom: 10px;
}

.warning-box p {
    color: #78350f;
}

/* No Lists State */
.no-lists {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.no-lists svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-lists h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Button Secondary Style */
.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

/* Select Dropdown Enhancement */
select {
    cursor: pointer;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
}

/* Delete List Specific Styles */
.header.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.warning-box h3 {
    color: #92400e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.warning-box p {
    color: #78350f;
    font-weight: 500;
    margin: 0;
}

.help-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 5px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.no-lists {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.no-lists svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    display: block;
    color: #d1d5db;
}

.no-lists h3 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.no-lists p {
    margin-bottom: 30px;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #f9fafb;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

select option {
    padding: 10px;
    background: white;
    color: #374151;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-page-container {
        align-items: flex-start;
        padding-top: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .confirmation-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .game-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .game-item input[type="text"] {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .games-list-container {
        padding: 15px;
    }
}
