/**
 * Modern Gewinnspiel (Raffle) Styles for Klick-Game
 * Basierend auf dem Styleguide
 */

/* Gewinnspiel Container */
.gewinn-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.gewinn-card.kg-card:hover {
    transform: none;
    box-shadow: var(--kg-shadow-sm);
}

/* Header */
.gewinn-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px dashed #328727;
}

.gewinn-header h2 {
    color: #FFFFFF;
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gewinn-subtitle {
    color: #E7E7E7;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

/* Gewinnspiel Jackpot Display */
.gewinn-jackpot {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 2px solid #ff6600;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gewinn-jackpot h2 {
    background: linear-gradient(135deg, #ffffff 0%, #ff6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

/* Gewinnspiel Section */
.gewinn-section {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 2px solid #ff6600;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.gewinn-title {
    color: #fff;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px dashed #328727;
    font-weight: bold;
}

/* Gewinnspiel Table */
.gewinn-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.gewinn-table thead {
    background: linear-gradient(135deg, #595959 0%, #726B6C 100%);
}

.gewinn-table th {
    padding: 0.75rem;
    border: 1px solid #ff6600;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.gewinn-table td {
    padding: 0.75rem;
    border: 1px solid #595959;
    background: #635E5E;
    color: #fff;
    text-align: center;
    transition: background-color 0.2s;
}

.gewinn-table tr:hover td {
    background: #8B7D7D;
    cursor: pointer;
}

/* Gewinnspiel Button */
.gewinn-button {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c00 100%);
    border: 2px solid #ff6600;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 1rem;
}

.gewinn-button:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.4);
    transform: translateY(-2px);
}

/* Gewinnspiel Info Display */
.gewinn-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #635E5E;
    border: 1px solid #595959;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

.gewinn-select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #ff6600;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.gewinn-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.gewinn-info-label {
    color: #fff;
    font-weight: bold;
}

.gewinn-info-value {
    color: #ff6600;
    font-weight: bold;
}

/* Gewinnspiel Alerts */
.gewinn-alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
}

.gewinn-alert-success {
    background: linear-gradient(135deg, #1a3d1a 0%, #2d5a2d 100%);
    border: 2px solid #328727;
    color: #fff;
}

.gewinn-alert-error {
    background: linear-gradient(135deg, #3d1a1a 0%, #5a2d2d 100%);
    border: 2px solid #cc520d;
    color: #fff;
}

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

.gewinn-stat {
    background: #635E5E;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #595959;
}

.gewinn-stat-label {
    color: #BAB3B4;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gewinn-stat-value {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: bold;
}

.gewinn-stat-value.money {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Participation Form */
.gewinn-form {
    padding: 1.5rem;
    background: #726B6C;
}

.gewinn-form-group {
    margin-bottom: 1.5rem;
}

.gewinn-form-label {
    display: block;
    color: #E7E7E7;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.gewinn-form-input {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem;
    background: #BAB3B4;
    border: 1px solid #595959;
    border-radius: 4px;
    color: #000;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.gewinn-form-input:focus {
    outline: none;
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.gewinn-form-hint {
    display: block;
    color: #BAB3B4;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Submit Button */
.gewinn-submit {
    background: linear-gradient(135deg, #24BC06 0%, #01A60D 100%);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gewinn-submit:hover {
    background: linear-gradient(135deg, #04C111 0%, #24BC06 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.gewinn-submit:active {
    transform: translateY(0);
}

.gewinn-submit:disabled {
    background: #635E5E;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Alert Messages */
.gewinn-alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.gewinn-alert-success {
    background: rgba(36, 188, 6, 0.2);
    border-color: #24BC06;
    color: #E7E7E7;
}

.gewinn-alert-error {
    background: rgba(210, 37, 37, 0.2);
    border-color: #D22525;
    color: #E7E7E7;
}

.gewinn-alert-info {
    background: rgba(255, 102, 0, 0.2);
    border-color: #ff6600;
    color: #E7E7E7;
}

/* Teilnehmer List */
.gewinn-participants {
    padding: 1.5rem;
    background: #635E5E;
    border-top: 2px dashed #328727;
}

.gewinn-participants h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.gewinn-participant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gewinn-participant {
    background: #726B6C;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #595959;
    text-align: center;
    transition: all 0.2s ease;
}

.gewinn-participant:hover {
    background: #8B7D7D;
    border-color: #ff6600;
}

.gewinn-participant a {
    color: #BAB3B4;
    text-decoration: none;
    font-size: 0.875rem;
}

.gewinn-participant a:hover {
    color: #E7E7E7;
}

/* Winners Section */
.gewinn-winners {
    padding: 1.5rem;
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
}

.gewinn-winners h3 {
    color: #FFFFFF;
    border-bottom: 2px dashed #328727;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.gewinn-winner-item {
    background: #635E5E;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #FFD700;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gewinn-winner-name {
    color: #E7E7E7;
    font-weight: bold;
}

.gewinn-winner-amount {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.125rem;
}

.gewinn-winner-date {
    color: #BAB3B4;
    font-size: 0.875rem;
}

/* Rules */
.gewinn-rules {
    padding: 1.5rem;
    background: #726B6C;
    border-top: 1px solid #595959;
}

.gewinn-rules h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.gewinn-rules ul {
    list-style: none;
    padding: 0;
    color: #BAB3B4;
}

.gewinn-rules li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.gewinn-rules li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .gewinn-container {
        margin: 1rem 0.5rem;
        border-radius: 4px;
        padding: 0.5rem;
    }
    
    .gewinn-jackpot {
        padding: 1rem;
    }
    
    .gewinn-jackpot h2 {
        font-size: 1.25rem;
    }
    
    .gewinn-table th,
    .gewinn-table td {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .gewinn-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gewinn-section {
        padding: 1rem;
    }
    
    .gewinn-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .gewinn-jackpot h2 {
        font-size: 1rem;
    }
    
    .gewinn-container {
        padding: 0.25rem;
    }
    
    .gewinn-section {
        padding: 0.75rem;
    }
    
    .gewinn-table th,
    .gewinn-table td {
        padding: 0.4rem;
        font-size: 0.75rem;
    }
}

/* Animation for new participants */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gewinn-participant.new {
    animation: slideIn 0.3s ease;
}
