/* ============================================
   PAGE WRAPPER
============================================ */
.qp-royalty-page {
    max-width: 1200px;
    margin: 40px auto 120px auto;
    padding: 0 20px;
}

/* ============================================
   HERO
============================================ */
.qp-hero {
    text-align: center;
    margin-bottom: 40px;
}

.qp-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1b2124;
}

.qp-hero p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

/* ============================================
   PLATFORM GRID
============================================ */
.qp-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

.qp-platform {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
    padding: 24px 10px;
    border: transparent;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    overflow: visible;
}

.qp-platform:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 6px rgba(0,0,0,0.25);
}

.qp-platform i {
    font-size: 40px;
    color: #646464;
}

.qp-platform span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #222;
}

.qp-tooltip {
    position: fixed !important;
    background: #646464;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    z-index: 999999;
    opacity: 0.6;
    pointer-events: none;
    transform: translate(-50%, 0);
    white-space: normal;
    width: max-content;
    max-width: 240px;
}


/* Hover */
.qp-platform:hover .qp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

/* Result under icon */
.qp-platform-result {
    margin-top: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #646464;
}

/* Wrapper */
.qp-ranking {
    margin-top: 40px;
    text-align: center;
}

.qp-ranking-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
}

/* Flex-grid */
.qp-rank-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Item styling */
.qp-rank-item {
    width: 180px;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    transition: transform .2s ease, box-shadow .2s ease;
}

.qp-rank-item span {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
}

/* Hover effect */
.qp-rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Spotify highlight */
.spotify-highlight {
    border-color: #1db954;
    background: #ecfff4;
    color: #0d6b3f;
    box-shadow: 0 0 14px rgba(29,185,84,0.40);
}

/* container */
.qp-rank-item {
    position: relative;
}

/* icon stijl */
.qp-rank-flag {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1.1rem;
    font-weight: 900;
}

/* kleuren */
.qp-rank-flag.good {
    color: #1db954; /* Spotify green */
}

.qp-rank-flag.bad {
    color: #d61e1e; /* rood */
}

.qp-rank-flag.neutral {
    color: #999;
}

/* combineer met je bestaande highlight classes */
.spotify-highlight .qp-rank-flag {
    font-size: 1.3rem;
}


/* ============================================
   INPUT AREA
============================================ */
.qp-input-area {
    background: #ffffff;
    padding: 32px;
    border-radius: 14px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.qp-input-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.qp-input-row input {
    width: 260px;
    padding: 14px 16px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.qp-input-row select {
    padding: 14px 16px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.qp-output {
    font-size: 1.6rem;
    text-align: center;
    font-weight: 800;
    margin-bottom: 12px;
}

.qp-note {
    text-align: center;
    font-size: .9rem;
    color: #777;
}

/* Legend container */
.qp-ranking-legend {
    margin: 25px 0 10px 0;
    text-align: center;
}

.legend-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #646464;
    letter-spacing: 0.5px;
}

/* Legend items */
.legend-items {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

/* Icons share same colors as ranking flags */
.legend-icon {
    font-size: 1.1rem;
    font-weight: 900;
}

.legend-icon.good {
    color: #1db954; /* green */
}

.legend-icon.bad {
    color: #d61e1e; /* red */
}

.legend-icon.neutral {
    color: #999;
}

/* Slight alignment correction */
.legend-label {
    font-size: 0.9rem;
    color: #646464;
}


/* ============================================
   HOW TO
============================================ */
.qp-howto {
    margin-top: 60px;
}

.qp-howto h2 {
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.qp-howto ol li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

/* ============================================
   FAQ
============================================ */
.qp-faq {
    margin-top: 60px;
}

.qp-faq h2 {
    font-size: 1.9rem;
    margin-bottom: 20px;
}

.qp-faq-item {
    border-bottom: 1px solid #ddd;
    padding: 14px 0;
}

.qp-faq-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: #1b2124;
    cursor: pointer;
}

.qp-faq-answer {
    display: none;
    padding: 10px 2px;
    font-size: 1rem;
    color: #444;
}

.qp-faq-item.active .qp-faq-answer {
    display: block;
}

#currencySelect {
    min-width:125px;
}

#streamInput {
    min-width:300px;
}


/* ============================================
   Responsive
============================================ */
@media (max-width: 768px) {
    .qp-input-row {
        flex-direction: column;
        align-items: center;
    }

    .qp-input-row input,
    .qp-input-row select {
        width: 100%;
    }
}
