/* Media Container Styling - Fully Responsive */
.dbxe-media-container {
    margin: 0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.dbxe-media-container .description {
    color: #50575e;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dbxe-notice-details {
    background: rgba(0, 0, 0, 0.03);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    border-left: 3px solid #2271b1;
}

html[dir="rtl"] .dbxe-notice-details,
body.rtl .dbxe-notice-details {
    border-left: none;
    border-right: 3px solid #2271b1;
}

.dbxe-notice-details ul {
    margin: 0.75rem 0 0 1.25rem;
    list-style-type: disc;
    padding: 0;
}

.dbxe-notice-details li {
    margin-bottom: 0.5rem;
    color: #50575e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dbxe-path {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8125rem;
    color: #646970;
    background: #f6f7f7;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    word-break: break-all;
    margin: 0.25rem 0;
}

/* Responsive Grid Layout */
.dbxe-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.dbxe-media-card {
    background: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dbxe-media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.dbxe-media-card-content {
    padding: 1rem;
}

.dbxe-media-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: #1d2327;
}

.dbxe-media-card-meta {
    font-size: 0.75rem;
    color: #646970;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
    .dbxe-media-container {
        padding: 1rem;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dbxe-media-container .media-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .dbxe-media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dbxe-notice-details {
        padding: 0.75rem;
        margin: 0.75rem 0;
    }

    .dbxe-path {
        font-size: 0.75rem;
        padding: 3px 6px;
        max-width: 100%;
        word-break: break-word;
    }
}