/* Styles for browse.html page - Hierarchical Navigation */

.browse-intro {
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Navigation sections */
.nav-section {
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(30, 36, 51, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

.nav-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    color: var(--text);
}

/* Room input */
.input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.input-row label {
    font-weight: 500;
    color: var(--text-dim);
}

.input-row input[type="text"] {
    padding: 10px 12px;
    min-width: 150px;
    flex: 1;
    max-width: 300px;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

/* Hexagon container for walls */
.hexagon-container {
    display: flex;
    justify-content: center;
    padding: 20px;

    /* Configurable hexagon properties */
    --hex-size: 300px;
    --hex-center: 110;
    --hex-inner-scale: 0.55;
    /* Adjust this to make trapezoids thinner (0.5-0.7 recommended) */
}

.hexagon-svg {
    width: var(--hex-size);
    height: var(--hex-size);
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hexagon-outline {
    fill: rgba(20, 25, 35, 0.5);
    stroke: rgba(100, 120, 200, 0.8);
    stroke-width: 3;
}

.hexagon-inner {
    fill: rgba(20, 25, 35, 0.8);
    stroke: rgba(80, 100, 180, 0.6);
    stroke-width: 2;
}

/* All segments share base styling */
.segment {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

/* Non-selectable segments - darker/grayed out */
.segment-disabled {
    fill: rgba(50, 60, 80, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
}

/* Selectable wall segments */
.wall {
    cursor: pointer;
}

/* Top segment (Wall 0) - Blue */
.wall[data-wall="0"] {
    fill: rgba(70, 130, 220, 0.6);
}

.wall[data-wall="0"]:hover,
.wall[data-wall="0"].hover {
    fill: rgba(100, 160, 255, 0.85);
    stroke: rgba(150, 200, 255, 0.9);
    stroke-width: 2.5;
}

/* Bottom-right segment (Wall 1) - Green */
.wall[data-wall="1"] {
    fill: rgba(80, 180, 100, 0.6);
}

.wall[data-wall="1"]:hover,
.wall[data-wall="1"].hover {
    fill: rgba(110, 220, 130, 0.85);
    stroke: rgba(150, 255, 180, 0.9);
    stroke-width: 2.5;
}

/* Bottom segment (Wall 2) - Orange */
.wall[data-wall="2"] {
    fill: rgba(220, 140, 60, 0.6);
}

.wall[data-wall="2"]:hover,
.wall[data-wall="2"].hover {
    fill: rgba(255, 170, 90, 0.85);
    stroke: rgba(255, 200, 130, 0.9);
    stroke-width: 2.5;
}

/* Top-left segment (Wall 3) - Purple */
.wall[data-wall="3"] {
    fill: rgba(150, 80, 180, 0.6);
}

.wall[data-wall="3"]:hover,
.wall[data-wall="3"].hover {
    fill: rgba(180, 110, 220, 0.85);
    stroke: rgba(210, 150, 255, 0.9);
    stroke-width: 2.5;
}

.wall:active {
    filter: brightness(1.2);
}

/* Shelves container - vertical stack */
.shelves-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.shelf-btn {
    padding: 16px 20px;
    background: rgba(80, 100, 180, 0.3);
    border: 2px solid rgba(80, 100, 180, 0.6);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.shelf-btn:hover {
    background: rgba(80, 100, 180, 0.5);
    border-color: rgba(120, 140, 220, 0.8);
    transform: translateX(4px);
}

.shelf-btn:active {
    transform: translateX(0);
}

/* Albums container - horizontal row */
.albums-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
}

.album-btn {
    padding: 14px 16px;
    background: rgba(120, 80, 150, 0.3);
    border: 2px solid rgba(120, 80, 150, 0.6);
    border-radius: 6px;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.album-btn:hover {
    background: rgba(120, 80, 150, 0.5);
    border-color: rgba(160, 120, 190, 0.8);
    transform: translateY(-2px);
}

.album-btn:active {
    transform: translateY(0);
}

/* Tracks container */
.tracks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.track-btn {
    padding: 12px 16px;
    background: rgba(150, 120, 80, 0.3);
    border: 2px solid rgba(150, 120, 80, 0.6);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-btn:hover {
    background: rgba(150, 120, 80, 0.5);
    border-color: rgba(190, 160, 120, 0.8);
    transform: translateY(-2px);
}

.track-btn:active {
    transform: translateY(0);
}

/* Breadcrumb navigation */
#breadcrumb {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(30, 36, 51, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 15px;
}

#breadcrumb a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

#breadcrumb a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

#breadcrumb span {
    color: var(--text);
}

/* Result container */
#resultContainer {
    padding: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hexagon-svg {
        width: 250px;
        height: 250px;
    }

    .shelves-container {
        max-width: 100%;
    }

    .albums-container {
        flex-wrap: wrap;
    }

    .tracks-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .input-row input[type="text"] {
        max-width: 100%;
    }
}