/* ============================================= */
/* Quiz Battle Plugin – Hauptstylesheet          */
/* ============================================= */

.qbp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.qbp-error {
    color: #e74c3c;
    font-weight: bold;
    padding: 15px;
    background: #fadad7;
    border-radius: 8px;
    border-left: 5px solid #e74c3c;
}

.qbp-warning {
    color: #e67e22;
    background: #fdf3e7;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #e67e22;
}

/* ============================================= */
/* Quiz                                          */
/* ============================================= */

.qbp-quiz-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.qbp-quiz-container h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.qbp-question {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 5px solid #bdc3c7;
    transition: all 0.3s ease;
}

.qbp-question.correct {
    border-left-color: #27ae60;
    background: #d5f5e3;
}

.qbp-question.wrong {
    border-left-color: #e74c3c;
    background: #fadad7;
}

.qbp-question h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.qbp-answer-form label {
    display: block;
    margin: 10px 0;
    font-size: 1.1em;
}

.qbp-answer-form input[type="radio"] {
    margin-right: 10px;
}

.qbp-submit-answer {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
}

.qbp-submit-answer:hover {
    background: #2980b9;
}

.qbp-feedback {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

/* ============================================= */
/* Shop                                          */
/* ============================================= */

.qbp-shop {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qbp-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.qbp-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qbp-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.qbp-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qbp-item h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.qbp-item .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #27ae60;
    margin: 10px 0;
}

.qbp-item-type {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

.qbp-buy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s;
}

.qbp-buy-btn:hover:not(:disabled) {
    background: #219653;
}

.qbp-buy-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* ============================================= */
/* Ranking                                       */
/* ============================================= */

.qbp-ranking {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qbp-tabs {
    margin-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.qbp-ranking ol {
    padding-left: 25px;
}

.qbp-ranking li {
    padding: 12px 0;
    font-size: 1.1em;
    border-bottom: 1px solid #ecf0f1;
}

.qbp-ranking li:last-child {
    border-bottom: none;
}

.qbp-ranking a {
    color: #3498db;
    text-decoration: none;
}

.qbp-ranking a:hover {
    text-decoration: underline;
}

/* ============================================= */
/* Gruppen                                       */
/* ============================================= */

.qbp-groups {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qbp-current-group {
    background: #e8f4fc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

#qbp-create-group-form {
    margin: 20px 0;
}

#qbp-create-group-form input {
    padding: 12px;
    width: 300px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.qbp-group-list {
    list-style: none;
    padding: 0;
}

.qbp-group-list li {
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qbp-join-group-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ============================================= */
/* Profil & Customizations                       */
/* ============================================= */

.qbp-profile {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.qbp-profile-container {
    position: relative;
}

.qbp-profile-frame {
    border: 6px solid transparent;
    border-image: linear-gradient(45deg, #f1c40f, #e67e22) 1;
    border-radius: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
}

.qbp-badges {
    text-align: center;
    margin: 20px 0;
}

.qbp-badge {
    width: 60px;
    height: 60px;
    margin: 0 8px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-block;
    object-fit: cover;
}

.qbp-badge-text {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    margin: 8px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.qbp-custom-avatar {
    border-radius: 50%;
    border: 4px solid #3498db;
    object-fit: cover;
}

.qbp-name-highlight {
    color: #e67e22 !important;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
    font-size: 1.1em;
}

/* Gruppen-Theme (wenn Gruppe ein Highlight-Item hat) */
.qbp-group-theme .qbp-group-header {
    background: var(--qbp-group-color, #3498db);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -30px -30px 30px -30px;
}

/* Responsive */
@media (max-width: 768px) {
    .qbp-items-grid {
        grid-template-columns: 1fr;
    }

    .qbp-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    #qbp-create-group-form input {
        width: 100%;
        margin-bottom: 10px;
    }

    .qbp-group-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .qbp-join-group-btn {
        margin-top: 10px;
    }
}
       .qbp-quests {
    margin-top: 20px;
}

.qbp-quest {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #3498db;
}

.qbp-quest.completed {
    border-left-color: #27ae60;
    opacity: 0.8;
}

.qbp-progress-bar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.qbp-progress-bar > div {
    height: 100%;
    background: #3498db;
    transition: width 0.5s ease;
}

.qbp-quest.completed .qbp-progress-bar > div {
    background: #27ae60;
}