/* ==================== GRUNDLEGENDE CONTAINER ==================== */

.puzzlebanner-rewards-wrapper {
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== BELOHNUNGSKARTEN ==================== */

.puzzlebanner-reward {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.puzzlebanner-reward.unlocked {
    border-color: #4CAF50;
}

/* ==================== BELOHNUNGSBILDER ==================== */

.reward-image-container {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reward-img-locked {
    filter: grayscale(100%) brightness(0.7) !important;
    transition: filter 0.3s ease;
}

.reward-img-unlocked {
    filter: none !important;
    transition: filter 0.3s ease;
}

/* ==================== LOCKED OVERLAY ==================== */

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* ==================== FORTSCHRITTSANZEIGE SPLIT ==================== */

.puzzle-progress-container-top {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 10px auto 20px auto !important;
    padding: 0 20px !important;
}

.puzzle-progress-container-top .progress {
    height: 35px !important;
    border-radius: 18px !important;
    width: 100% !important;
}

.puzzle-progress-container-top .progress-bar {
    border-radius: 18px !important;
}

.puzzle-progress-container-top #puzzle-progress-text {
    font-size: 18px !important;
    font-weight: bold !important;
}

.puzzle-progress-container-top h4 {
    font-size: 20px !important;
    margin: 0 0 15px 0 !important;
}

.puzzle-progress-container-top .progress-info {
    font-size: 13px !important;
    margin: 8px 0 0 0 !important;
}

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

@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-image-container {
        height: 150px;
    }
    
    .puzzlebanner-split-layout {
        flex-direction: column !important;
    }
    
    .puzzlebanner-rewards-left,
    .puzzlebanner-rewards-right {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==================== PUZZLE CONTAINER ==================== */

#puzzlebanner-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

.puzzlebanner-container {
    position: relative;
    margin: 20px auto;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.puzzlebanner-tray {
    position: relative;
    margin: 20px auto;
    background: #fff;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    min-height: 100px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ==================== PUZZLE PIECES ==================== */

.puzzlebanner-piece {
    cursor: grab;
    position: absolute;
    box-sizing: border-box;
    border: 2px solid rgba(76, 175, 80, 0.7);
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.puzzlebanner-piece:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.puzzlebanner-piece:active {
    cursor: grabbing;
}

/* ==================== WATERMARKS ==================== */

.puzzlebanner-tray-watermark,
.puzzlebanner-container-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    text-align: center;
    user-select: none;
}

/* ==================== SUCCESS BOX ==================== */

.puzzlebanner-success {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.puzzlebanner-success-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    position: relative;
}

#puzzlebanner-success-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

#puzzlebanner-success-close:hover {
    color: #333;
}

/* ==================== RESET BUTTON ==================== */

#puzzlebanner-reset {
    display: block;
    margin: 15px auto;
    padding: 10px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

#puzzlebanner-reset:hover {
    background: #45a049;
}

/* ==================== DRAG & DROP ==================== */

.drag-over {
    background-color: rgba(76, 175, 80, 0.1) !important;
    border-color: #4CAF50 !important;
}

/* ==================== BADGES ==================== */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

.locked-badge {
    background: #999;
    color: white;
}

.unlocked-badge {
    background: #4CAF50;
    color: white;
}
