/* Play Bar Component Styles */

/* Base Play Bar Container */
.play-bar {
    height: 45px;
    width: 100%;
    background: var(--color-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 400;
    position: relative;
}

.play-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.play-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo Styles */
.play-bar-logo {
    max-height: 35px;
    width: auto;
    display: block;
}

/* Game Name Styles */
.play-bar-game-name {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 12px;
}

/* Button Base Styles */
.play-bar-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
}

.play-bar-btn:hover {
    background: var(--color-light);
}

.play-bar-btn.active {
    color: var(--highlight-color);
}

.play-bar-btn.active:hover {
    background: var(--color-light);
    color: var(--highlight-color);
}

.play-bar-btn i {
    transition: color 0.2s ease;
}

/* Responsive Styles */

/* Mobile (<576px) */
@media (max-width: 575px) {
    .play-bar-game-name {
        display: none;
    }
    
    .play-bar-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .play-bar-logo {
        max-height: 30px;
    }
}

/* Tablet (576px-767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .play-bar-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    .play-bar-logo {
        max-height: 32px;
    }
}

/* Desktop (>=768px) - Standard sizes already defined above */

/* Controls Panel Styles */
.play-bar-controls-panel {
    position: absolute;
    bottom: 45px; /* Exactly at top edge of 45px Play Bar */
    right: 0; /* Flush with right edge */
    width: 90%; /* Responsive width based on container */
    max-width: 900px; /* Maximum width on large screens */
    max-height: 400px;
    background: var(--secondary-color);
    border: 1px solid var(--color-light);
    border-radius: 8px 8px 0 0; /* Rounded top corners only */
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3); /* Shadow above the panel */
    padding: 16px;
    z-index: 1000;
    overflow-y: auto;
}

.controls-panel-content h4 {
    color: var(--highlight-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-light);
}

.controls-list p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px 0;
    padding-left: 8px;
}

/* Responsive adjustments for Controls Panel - Bootstrap breakpoints */

/* Extra large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .play-bar-controls-panel {
        width: 900px; /* Fixed width on large screens */
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .play-bar-controls-panel {
        width: 85%; /* 85% of container width */
        max-width: 800px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .play-bar-controls-panel {
        width: 90%; /* 90% of container width */
        max-width: 700px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .play-bar-controls-panel {
        width: 95%; /* 95% of container width */
        max-height: 350px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .play-bar-controls-panel {
        width: 98%; /* Almost full width on mobile */
        max-height: 300px;
        padding: 12px; /* Reduced padding on mobile */
    }
    
    .controls-panel-content h4 {
        font-size: 16px; /* Smaller title on mobile */
    }
    
    .controls-list p {
        font-size: 13px; /* Smaller text on mobile */
    }
}
