/* ===== Prop sections / color bars ===== */
.prop-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0.5rem;
}

.prop-section .trick-container {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    width: 100%;
}

.prop-details-frame {
    width: 100%;
    display: block;
}

.prop-color-bar {
    background: #ff4733;
    border-radius: 15px;
    align-self: stretch;
    flex-shrink: 0;
    width: 100px;
    min-height: 40px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.prop-color-bar * {
    box-sizing: border-box;
}

.prop-color-bar::before {
    content: '';
    position: relative;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    margin-right: 0;
}

.prop-color-bar[data-prop-type="clubs"]::before,
.prop-color-bar[data-prop-type="club_passing"]::before {
    background-image: url('/static/images/juggling_club.svg');
}

.prop-color-bar[data-prop-type="balls"]::before {
    background-image: url('/static/images/juggling_balls.png');
}

.prop-color-bar[data-prop-type="rings"]::before {
    background-image: url('/static/images/juggling_rings.png');
}

.prop-count {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.prop-count-text {
    color: #ffffff;
    text-align: center;
    font-family: "Inter-ExtraBold", sans-serif;
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 800;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Color variations for different prop counts */
.prop-color-bar[data-props="3"]::before,
.prop-color-bar[data-props="5"]::before,
.prop-color-bar[data-props="7"]::before,
.prop-color-bar[data-props="9"]::before,
.prop-color-bar[data-props="11"]::before,
.prop-color-bar[data-props="12"]::before,
.prop-color-bar[data-props="13"]::before {
    filter: brightness(0) invert(1);
}

.prop-color-bar[data-props="3"]  { background: #ff4733; }
.prop-color-bar[data-props="4"]  { background: #c0f564; }
.prop-color-bar[data-props="5"]  { background: #2601f6; }
.prop-color-bar[data-props="6"]  { background: #ff8c00; }
.prop-color-bar[data-props="7"]  { background: #f238a7; }
.prop-color-bar[data-props="8"]  { background: #00ced1; }
.prop-color-bar[data-props="9"]  { background: #8a2be2; }
.prop-color-bar[data-props="10"] { background: #ffd700; }
.prop-color-bar[data-props="11"] { background: #006400; }
.prop-color-bar[data-props="12"] { background: #ff1493; }
.prop-color-bar[data-props="13"] { background: #1e90ff; }

.prop-color-bar[data-props="3"] .prop-count-text,
.prop-color-bar[data-props="5"] .prop-count-text,
.prop-color-bar[data-props="7"] .prop-count-text,
.prop-color-bar[data-props="9"] .prop-count-text,
.prop-color-bar[data-props="11"] .prop-count-text,
.prop-color-bar[data-props="12"] .prop-count-text,
.prop-color-bar[data-props="13"] .prop-count-text {
    color: white;
}

.prop-color-bar[data-props="4"] .prop-count-text,
.prop-color-bar[data-props="6"] .prop-count-text,
.prop-color-bar[data-props="8"] .prop-count-text,
.prop-color-bar[data-props="10"] .prop-count-text {
    color: black;
}

/* ===== Prop selection (form) ===== */
.prop-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.prop-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
    min-width: 90px;
    justify-content: center;
    position: relative;
}

.prop-dropdown {
    position: relative;
}
.prop-dropdown-label {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font: inherit;
    color: var(--light-text);
    transition: all 0.2s ease;
}
.prop-dropdown-label:hover,
.prop-dropdown.open .prop-dropdown-label,
.prop-dropdown.has-selection .prop-dropdown-label {
    border-color: var(--primary-color);
    border-style: solid;
    color: var(--text-color);
}
.prop-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 0.5rem;
    min-width: 200px;
    flex-direction: column;
    gap: 0.4rem;
}
.prop-dropdown.open .prop-dropdown-menu {
    display: flex;
}
@media (hover: hover) and (pointer: fine) {
    .prop-dropdown:hover .prop-dropdown-menu {
        display: flex;
    }
}
.prop-dropdown-menu .prop-option {
    width: 100%;
    justify-content: flex-start;
}

.prop-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.prop-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(47, 186, 223, 0.1);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.prop-option-input {
    display: none;
}

.prop-option-name {
    font-weight: 400;
    color: var(--text-color);
    text-transform: capitalize;
}

.prop-option.selected .prop-option-name {
    font-weight: 700;
}

.prop-icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
.prop-count-text {
        font-size: 1.2rem;
    }

.prop-section {
        margin-bottom: 0.25rem;
    }

.prop-color-bar {
        width: 40px;
        min-height: 30px;
    }

.prop-color-bar::before {
        width: 20px;
        height: 20px;
    }

.prop-details-frame {
        padding: 3px 8px;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
.prop-color-bar {
        width: 40px;
        min-height: 30px;
    }

.prop-color-bar::before {
        width: 20px;
        height: 20px;
    }

.prop-count-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
.prop-color-bar {
        width: 80px;
        min-height: 35px;
    }

.prop-color-bar::before {
        width: 30px;
        height: 30px;
    }

.prop-count-text {
        font-size: 1.8rem;
    }
}
