/* MediaBank Reusable UI Components Styles */

/* General styles for sections */
.mb-page-section {
    margin-bottom: 3rem;
}

.mb-page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--mb-text-color);
}

.mb-page-description {
    font-size: 1.25rem;
    color: var(--mb-secondary-color);
    margin-bottom: 2rem;
}

/* Example container */
.mb-example-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--mb-border-color);
}

.mb-example-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--mb-text-color);
}

/* Player wrapper */
.mb-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

/* Code example */
.mb-code-example {
    background-color: #2d3748;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Modal styles */
.mb-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.mb-modal-content {
    background-color: var(--mb-background-color);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    text-align: center;
    position: relative;
}

.mb-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #4a5568;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* Popup styles */
.mb-popup-container {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--mb-background-color);
    border-radius: 0.5rem;
    padding: 1rem;
    z-index: 1000;
    border: 1px solid var(--mb-border-color);
}

.mb-popup-content {
    color: var(--mb-text-color);
}

.mb-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: transparent;
    color: var(--mb-text-color);
    border: none;
    cursor: pointer;
}

/* Enhanced UI improvements */
.mb-button:focus {
    outline: 2px solid var(--mb-accent-color);
    outline-offset: 2px;
}

.mb-button:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mb-page-title {
        font-size: 2rem;
    }

    .mb-page-description {
        font-size: 1rem;
    }

    .mb-example-container {
        padding: 1rem;
    }
}
