/* Modales compartidos en feeds directorio */

.dl-modal,
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dl-modal.show,
.modal.show {
    display: flex;
}

.dl-modal-content {
    background: #1a1d29;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dl-form-group,
.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label,
.dl-form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select,
.dl-form-group input,
.dl-form-group textarea,
.dl-form-group select {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.modal .btn {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    color: #fff;
}

.modal .modal-content {
    background: #1a1d29;
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dl-modal .dl-btn {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.dl-modal .dl-btn-submit {
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    color: #fff;
}

.dl-modal .dl-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.header-actions .btn-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 0.75rem;
    opacity: 0.85;
}

.header-actions .btn-link.btn-reels {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    opacity: 1;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.4), rgba(139, 124, 248, 0.35));
    border: 1px solid rgba(255, 107, 157, 0.55);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.2);
}

.header-actions .btn-link.btn-reels:hover {
    color: #fff;
    filter: brightness(1.08);
}

.header-actions .btn-primary-sm,
.header-actions a.btn-primary-sm {
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    line-height: 1.25;
}

.header-actions a.btn-primary-sm:hover {
    filter: brightness(1.06);
    color: #fff;
}

.category-nav {
    text-align: center;
    margin: 0 1.25rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.category-nav a {
    color: #ff9ec8;
    text-decoration: none;
    margin: 0 0.5rem;
}

.category-nav a.active {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.category-nav a:hover {
    color: #ffb3cc;
}

.category-nav a.category-nav-reels {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 157, 0.5);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    margin-left: 0.35rem;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.3), rgba(139, 124, 248, 0.25));
    color: #fff !important;
    text-decoration: none !important;
}

.category-nav a.category-nav-reels:hover {
    filter: brightness(1.1);
    color: #fff !important;
}

#messageBox.success {
    color: #7dffa8;
    text-align: center;
    padding: 0.5rem;
}

#messageBox.error {
    color: #ff8a9b;
    text-align: center;
    padding: 0.5rem;
}

.form-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.5rem 0 1rem;
}
